You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
701 B
23 lines
701 B
2 years ago
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||
|
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,
|
||
|
},
|
||
|
};
|
||
|
};
|
||
|
|
||
|
// ============================== Export ==============================
|
||
|
export default genComponentStyleHook('App', (token) => [genBaseStyle(token)]);
|