Commit b100400b999e7d5125fad4b0bb523496e11dd4a2

Authored by 刘汉宸
1 parent 1c191c87

style: 修改SCSS变量支持导出到JS

Showing 1 changed file with 21 additions and 1 deletions   Show diff stats
examples/styles/variables.scss
... ... @@ -16,4 +16,24 @@ $black: #000;
16 16 $text: #314659;
17 17 $border: #e8e8e8;
18 18 $border-light: rgba(#e8e8e8, 0.2);
19   -$background: #fff;
20 19 \ No newline at end of file
  20 +$background: #fff;
  21 +
  22 +:export {
  23 + primary: $primary;
  24 + blue: #2f54eb;
  25 + blue-light: #69c0ff;
  26 + blue-hover: #e6f7ff;
  27 + red: #f5222d;
  28 + green: #26aa58;
  29 + green-light: #5edd8e;
  30 + orange: #ff9852;
  31 + gray: #343434;
  32 + grey: #8c8c8c;
  33 + purple: #722ed1;
  34 + cyan: #13c2c2;
  35 + black: #000;
  36 + text: #314659;
  37 + border: #e8e8e8;
  38 + border-light: rgba(#e8e8e8, 0.2);
  39 + background: #fff;
  40 +}
21 41 \ No newline at end of file
... ...