mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 17:09:46 +08:00
c4b8c9df93
* refactor: genStyleHooks * chore: update sciprt * refactor: affix * refactor: select * chore: update * refactor: update * refactor: update * refactor: done * chore: code clean * chore: code clean * chore: fix lint * chore: decrease size limit * chore: code clean * chore: code clean * chore: remove export
25 lines
779 B
TypeScript
25 lines
779 B
TypeScript
import type { FullToken, GenerateStyle, GetDefaultToken } from '../../theme/internal';
|
|
import { genStyleHooks } 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 const prepareComponentToken: GetDefaultToken<'App'> = () => ({});
|
|
|
|
// ============================== Export ==============================
|
|
export default genStyleHooks('App', genBaseStyle, prepareComponentToken);
|