2023-11-13 15:34:37 +08:00
|
|
|
import type { FullToken, GenerateStyle, GetDefaultToken } from '../../theme/internal';
|
2023-11-29 17:23:45 +08:00
|
|
|
import { genStyleHooks } from '../../theme/internal';
|
2022-12-06 17:45:10 +08:00
|
|
|
|
|
|
|
export type ComponentToken = {};
|
|
|
|
|
|
|
|
interface AppToken extends FullToken<'App'> {}
|
|
|
|
|
|
|
|
// =============================== Base ===============================
|
|
|
|
const genBaseStyle: GenerateStyle<AppToken> = (token) => {
|
|
|
|
const { componentCls, colorText, fontSize, lineHeight, fontFamily } = token;
|
|
|
|
return {
|
|
|
|
[componentCls]: {
|
|
|
|
color: colorText,
|
|
|
|
fontSize,
|
|
|
|
lineHeight,
|
|
|
|
fontFamily,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-11-13 15:34:37 +08:00
|
|
|
export const prepareComponentToken: GetDefaultToken<'App'> = () => ({});
|
|
|
|
|
2022-12-06 17:45:10 +08:00
|
|
|
// ============================== Export ==============================
|
2023-11-29 17:23:45 +08:00
|
|
|
export default genStyleHooks('App', genBaseStyle, prepareComponentToken);
|