Advertisement
Guest User

Untitled

a guest
May 31st, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SAS 0.58 KB | None | 0 0
  1. $colormap: (
  2.     green: (
  3.         background: #86c351,
  4.         hover: #78b04a,
  5.         txt: #78b05f
  6.     ),
  7.     blue: (
  8.         background: #00b3e0,
  9.         hover: #0097be,
  10.         txt: #0097ff,
  11.     ),
  12.     red: (
  13.         background: #ff5817,
  14.         hover: #da4912,
  15.         txt: #da4912
  16.   ),
  17.   white:(
  18.     background: #fff,
  19.     hover: #eee,
  20.     txt: #ddd
  21.   ),
  22.   black:(
  23.     background: #010101,
  24.     hover: #444,
  25.     txt: #333
  26.   )
  27. );
  28. @function color($color, $variant){
  29.   $setColor: map-get($colormap, $color);
  30.     @return map-get($setColor, $variant);
  31. }
  32.  
  33. body{
  34. background: color(white, background);
  35. color: color(black,txt);
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement