css - 如何在顺风 css 中使用颜色或 css/scss 中的材质 ui
问题描述
我为顺风 css 和材质 ui 颜色找到了这种顺风颜色。这些颜色很好地命名为 100 - 900 和 A100 - 400,就像字体一样。我认为直接在 scss 或 css 文件上使用它们会很好。我该怎么做/是否有我可以使用的导入文件?
解决方案
我建议使用LESS 和 TailWindCSS来从Mixin中受益。
使用手写笔:
// index.styl
$codeBackground = theme('colors.pink.800')
a
@apply text-yellow-600 !important
background $codeBackground !important
推荐阅读
- reactjs - 新的 create-react-app 无法编译 sass
- mysql - 与 5.7.26 版本相比,8.0.17 版本的 MySQL 查询执行时间较长
- r - 如何从变量名中删除子字符串?
- prometheus - 使用 metric 值查询 prometheus 标签值
- arrays - 在 Mongo 中,如何将 $IN 条件与来自另一个字段的值一起使用?
- typescript - 是否可以自动检测“任何”类型的重播?
- python-3.x - 搜索 Socket 主机并显示它们的 IP 地址 Python
- java - 以 ArrayList 作为返回类型的 AsyncTask
- php - PHP xdebug 已加载,但从不连接,也从不记录任何内容
- vue.js - 测试使用 Vuetify 的 NuxtJS 组件