These are chat archives for LearnBoost/stylus

2nd
Dec 2016
Michael Bøcker-Larsen
@mblarsen
Dec 02 2016 10:58

I'm have keys in a hash that are background pointing to color:

blue = #aabbcc
red = #00aacc

colors = { blue: red } 

for k, v in colors
  .{k}
    background-color: k
    color: v

The color works but not the background.

.blue {
    background-color: 'blue';
    color: #00aacc
}

Is there a way to get the value rather than the string?

Michael Bøcker-Larsen
@mblarsen
Dec 02 2016 11:05
Oh convert(k) :)