【发布时间】:2017-03-01 05:36:44
【问题描述】:
我想要一个文件来存储我将在我的 css 样式中使用的颜色和其他一些设置。因为我不想在不同的文件中多次指定相同的颜色。如何使用 css 模块实现这一目标?
例如: 设置.css
$primary-color: #785372;
$secondary-corlor: #22b390;
按钮/styles.css
.button {
background: $primary-color;
display: flex;
}
【问题讨论】: