2023-11-13 15:34:37 +08:00
|
|
|
import type { FullToken, GenerateStyle, GetDefaultToken } from '../../theme/internal';
|
2022-12-06 17:45:10 +08:00
|
|
|
import { genComponentStyleHook } from '../../theme/internal';
|
|
|
|
|
|
|
|
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-13 15:34:37 +08:00
|
|
|
export default genComponentStyleHook<'App'>('App', genBaseStyle, prepareComponentToken);
|