ant-design / antd-style

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

怎么获取当前antd包裹的ConfigProvider传入的主题模式 #34

Closed qc-z closed 1 year ago

qc-z commented 1 year ago

使用antd的ConfigProvider包裹并切换主题, 没有使用ThemeProvider包裹,在使用createStyles的时候怎么获取当前antd的主题模式, 在createStyles里面的参数appearance一直都是light

arvinxx commented 1 year ago

Antd 的cp不感知主题的概念。需要用themeprovider的