首页 > 解决方案 > 如何在顺风 css 中使用颜色或 css/scss 中的材质 ui

问题描述

我为顺风 css 和材质 ui 颜色找到了这种顺风颜色。这些颜色很好地命名为 100 - 900 和 A100 - 400,就像字体一样。我认为直接在 scss 或 css 文件上使用它们会很好。我该怎么做/是否有我可以使用的导入文件?

标签: csssassmaterial-uimaterializetailwind-css

解决方案


我建议使用LESS 和 TailWindCSS来从Mixin中受益。

使用手写笔

// index.styl
$codeBackground = theme('colors.pink.800')

a
 @apply text-yellow-600 !important
 background $codeBackground !important

输出在此处输入图像描述


推荐阅读