diff --git a/color.scss b/color.scss index b30da84..c6e80c2 100644 --- a/color.scss +++ b/color.scss @@ -1,59 +1,8 @@ -.ok { - color: #5cff56; -} - -.warning { - color: #ff4b41; -} - -.favorite { - color: #d16059; -} - -.green { - background: #61BD6D; -} - -.red { - background: #D14841; -} - -.blue { - background: #2C82C9; -} - -.orange { - background: #FBA026; -} - -.lightblue { - background: #54ACD2; -} - -.yellow { - background: #FAC51C; -} - -.purple { - background: #553982; -} - -.pink { - background: #ffa6e3; -} - -.grey { - background: #dcdcdc; -} - -.darkred { - background: #B8312F; -} - -.darkgreen { - background: #41A85F; -} - -.darkblue { - background: #2969B0; +@each $tuple in + 'ok' #5cff56, 'warning' #ff4b41, 'favorite' #d16059, 'green' #61BD6D, 'red' #D14841, 'blue' #2C82C9, + 'orange' #FBA026, 'lightblue' #54ACD2, 'yellow' #FAC51C, 'purple' #553982, 'pink' #ffa6e3, 'grey' #dcdcdc, + 'darkred' #B8312F, 'darkgreen' #41A85F, 'darkblue' #2969B0 { + .#{nth($tuple, 1)} { + background: #{nth($tuple, 2)}; + } }