mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2025-07-07 18:59:18 +08:00
feat: add theme and style
This commit is contained in:
13
components/theme/themes/shared/genControlHeight.ts
Normal file
13
components/theme/themes/shared/genControlHeight.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import type { HeightMapToken, SeedToken } from '../../interface'
|
||||
|
||||
const genControlHeight = (token: SeedToken): HeightMapToken => {
|
||||
const { controlHeight } = token
|
||||
|
||||
return {
|
||||
controlHeightSM: controlHeight * 0.75,
|
||||
controlHeightXS: controlHeight * 0.5,
|
||||
controlHeightLG: controlHeight * 1.25
|
||||
}
|
||||
}
|
||||
|
||||
export default genControlHeight
|
Reference in New Issue
Block a user