ant-design / antd-style

css-in-js library with antd v5 token system
https://ant-design.github.io/antd-style/
MIT License
187 stars 29 forks source link

👑 [需求] 是否可以有继承的机制 #133

Open anyone-yuren opened 6 months ago

anyone-yuren commented 6 months ago

🥰 需求描述

如一个公共组件,里面包含组件的基础样式,在实际使用的时候,希望能在变体中重写基础样式。

🧐 解决方案

🚑 其他信息

arvinxx commented 6 months ago

有 stylish 来实现这个需求,不过目前的使用上还没完全想好,因此文档没有透出。如果需要可以查阅下我们的使用案例 https://github.com/lobehub/lobe-ui/blob/master/src/styles/theme/customStylish.ts