ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

4.x 版本定制主题,tailwindicss 如何使用使用定制主题

Open siegaii opened this issue 1 year ago • 2 comments

  • [ ] 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

siegaii avatar Dec 11 '23 01:12 siegaii

建议转换成css var变量来使用

aibayanyu20 avatar Dec 11 '23 05:12 aibayanyu20

建议转换成css var变量来使用

怎么转成 css变量?有现成的库吗?

chenxiaoleizi avatar Jan 07 '24 14:01 chenxiaoleizi

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

github-actions[bot] avatar Mar 08 '24 02:03 github-actions[bot]