mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
9aec72c395
* chore: remove useless tsx support * add * add * style * fix lint * fix lint * fix lint * update locale entry * update locale entry * update locale entry * delete useless style
23 lines
701 B
TypeScript
23 lines
701 B
TypeScript
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)]);
|