element-variables.scss 725 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * I think element-ui's default theme color is too light for long-term use.
  3. * So I modified the default color and you can modify it to your liking.
  4. **/
  5. /* theme color */
  6. $--color-primary: #1890ff;
  7. $--color-success: #13ce66;
  8. $--color-warning: #ffba00;
  9. $--color-danger: #ff4949;
  10. $--button-font-weight: 400;
  11. $--border-color-light: #dfe4ed;
  12. $--border-color-lighter: #e6ebf5;
  13. $--table-border:1px solid#dfe6ec;
  14. /* icon font path, required */
  15. $--font-path: '~element-ui/lib/theme-chalk/fonts';
  16. @import "~element-ui/packages/theme-chalk/src/index";
  17. // the :export directive is the magic sauce for webpack
  18. // https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
  19. :export {
  20. theme: $--color-primary;
  21. }