ant-design/ant-design
在 GitHub 查看Make font sizes based on rem instead of px (number) for theme
Open
#38,915 创建于 2022年11月23日
Inactivehelp wanted
描述
What problem does this feature solve?
Font sizes are today marked as number type and therefore only px is allowed. If they can be made as string we could either pass a px or a rem or a pc as values to it
What does the proposed API look like?
fontSize*: string | undefined