ant-design-vue
ant-design-vue copied to clipboard
4.x 版本定制主题,tailwindicss 如何使用使用定制主题
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
按照定制主题中文档的 const { useToken } = theme; const { token } = useToken(); 方法去取框架中的css变量,然后使用tailwindicss 给元素加上带有变量的类,发现没有生效
如:
html 表现:bg-[#xxxxxx] 的值渲染上去了,但是css 没生效
What does the proposed API look like?
macOs:12.6.7,Vue:3.3.4、浏览器: chrom 119
建议转换成css var变量来使用
建议转换成css var变量来使用
怎么转成 css变量?有现成的库吗?
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days