mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
20ae690b14
* refactor: Checkbox support cssinjs * chore: clean up * chore: clean up
16 lines
475 B
TypeScript
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;
|
|
});
|