mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(ConfigProvider): supplement the type declaration of ConfigProviderThemeVars (#12264)
* feat: supplement the type declaration of ConfigProviderThemeVars * feat: change to hump * feat: change to hump --------- Co-authored-by: xieyezi <202202409@any3.com>
This commit is contained in:
parent
e67d8aa0cf
commit
7c7202d0da
@ -1,4 +1,77 @@
|
|||||||
export type ConfigProviderThemeVars =
|
type BaseThemeVars = {
|
||||||
|
// Color Palette
|
||||||
|
black?: string;
|
||||||
|
white?: string;
|
||||||
|
gray1?: string;
|
||||||
|
gray2?: string;
|
||||||
|
gray3?: string;
|
||||||
|
gray4?: string;
|
||||||
|
gray5?: string;
|
||||||
|
gray6?: string;
|
||||||
|
gray7?: string;
|
||||||
|
gray8?: string;
|
||||||
|
red?: string;
|
||||||
|
blue?: string;
|
||||||
|
orange?: string;
|
||||||
|
orangeDark?: string;
|
||||||
|
orangeLight?: string;
|
||||||
|
green?: string;
|
||||||
|
|
||||||
|
// Gradient Colors
|
||||||
|
gradientRed?: string;
|
||||||
|
gradientOrange?: string;
|
||||||
|
|
||||||
|
// Component Colors
|
||||||
|
primaryColor?: string;
|
||||||
|
successColor?: string;
|
||||||
|
dangerColor?: string;
|
||||||
|
warningColor?: string;
|
||||||
|
textColor?: string;
|
||||||
|
textColor2?: string;
|
||||||
|
textColor3?: string;
|
||||||
|
activeColor?: string;
|
||||||
|
activeOpacity?: number;
|
||||||
|
disabledOpacity?: number;
|
||||||
|
background?: string;
|
||||||
|
background2?: string;
|
||||||
|
|
||||||
|
// Padding
|
||||||
|
paddingBase?: string;
|
||||||
|
paddingXs?: string;
|
||||||
|
paddingSm?: string;
|
||||||
|
paddingMd?: string;
|
||||||
|
paddingLg?: string;
|
||||||
|
paddingXl?: string;
|
||||||
|
|
||||||
|
// Font
|
||||||
|
fontSizexs?: string;
|
||||||
|
fontSizeSm?: string;
|
||||||
|
fontSizeMd?: string;
|
||||||
|
fontSizeLg?: string;
|
||||||
|
fontBold?: number;
|
||||||
|
lineHeightXs?: string;
|
||||||
|
lineHeightSm?: string;
|
||||||
|
lineHeightMd?: string;
|
||||||
|
lineHeightLg?: string;
|
||||||
|
baseFont?: string;
|
||||||
|
priceFont?: string;
|
||||||
|
|
||||||
|
// Animation
|
||||||
|
durationBase?: string;
|
||||||
|
durationFast?: string;
|
||||||
|
easeOut?: string;
|
||||||
|
easeIn?: string;
|
||||||
|
|
||||||
|
// Border
|
||||||
|
borderColor?: string;
|
||||||
|
borderWidth?: string;
|
||||||
|
radiusSm?: string;
|
||||||
|
radiusMd?: string;
|
||||||
|
radiusLg?: string;
|
||||||
|
radiusMax?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ConfigProviderThemeVars = BaseThemeVars &
|
||||||
import('../action-bar').ActionBarThemeVars &
|
import('../action-bar').ActionBarThemeVars &
|
||||||
import('../action-bar-button').ActionBarButtonThemeVars &
|
import('../action-bar-button').ActionBarButtonThemeVars &
|
||||||
import('../action-bar-icon').ActionBarIconThemeVars &
|
import('../action-bar-icon').ActionBarIconThemeVars &
|
||||||
|
Loading…
x
Reference in New Issue
Block a user