Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. // ----
  2. // Sass (v3.4.11)
  3. // Compass (v1.0.3)
  4. // ----
  5.  
  6. $colors: (
  7. color--primary : #2a94d6,
  8. color--success : #43b66a,
  9. color--error : #c06057,
  10. color--warning : #e6b739,
  11. color--info : #47cfd2,
  12. color--black : #4B4B4F,
  13. color--gray : #97979c,
  14. );
  15.  
  16. $xx-light : 40%;
  17. $x-light : 20%;
  18. $light : 10%;
  19. $dark : 5%;
  20. $x-dark : 10%;
  21. $xx-dark : 20%;
  22.  
  23. @mixin generate-colors($color, $name) {
  24. #{'$'+$name}--xx-light: lighten($color, $xx-light);
  25. #{'$'+$name}--x-light: lighten($color, $x-light);
  26. #{'$'+$name}--light: lighten($color, $light);
  27. #{'$'+$name}: $color;
  28. #{'$'+$name}--dark: darken($color, $dark);
  29. #{'$'+$name}--x-dark: darken($color, $x-dark);
  30. #{'$'+$name}--xx-dark: darken($color, $xx-dark)
  31. }
  32.  
  33. removethesebrackets {
  34. @each $theme, $color in $colors {
  35. @include generate-colors($color, $theme);
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement