ant-design/ant-design

Make font sizes based on rem instead of px (number) for theme

Open

#38,915 创建于 2022年11月23日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)TypeScript (98,031 star) (54,612 fork)batch import
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

贡献者指南