如何在 tailwind css 中使用颜色或在 css/scss 中使用材质 ui

coo*_*ool 0 css sass materialize material-ui tailwind-css

我发现这个顺风颜色适用于顺风 css 和材质ui 颜色。就像字体一样,它们的颜色从 100 - 900 到 A100 - 400 都有很好的命名。我认为直接在 scss 或 css 文件上使用它们会很好。我该怎么做/有我可以使用的导入文件吗?

wpp*_*ber 5

我建议将LESS 与 TailWindCSS 结合使用,以从Mixin中受益。

使用手写笔

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

a
 @apply text-yellow-600 !important
 background $codeBackground !important
Run Code Online (Sandbox Code Playgroud)

输出在此输入图像描述