ant-design/components/_util/theme/util.tsx
二货机器人 20ae690b14
refactor: Cssinjs checkbox (#34247)
* refactor: Checkbox support cssinjs

* chore: clean up

* chore: clean up
2022-03-01 21:12:00 +08:00

16 lines
475 B
TypeScript

/* eslint-disable import/prefer-default-export */
import { CSSObject } from '@ant-design/cssinjs';
import type { DerivativeToken } from '.';
export const resetComponent = (token: DerivativeToken): CSSObject => ({
boxSizing: 'border-box',
margin: 0,
padding: 0,
color: token.textColor,
fontSize: token.fontSize,
// font-variant: @font-variant-base;
lineHeight: token.lineHeight,
listStyle: 'none',
// font-feature-settings: @font-feature-settings-base;
});