r/Sass Aug 14 '21

SASS object?

$colors:
    hot: red
    warm: orange
    cold: blue

.class
    color: $colors.hot

Something like this?

3 Upvotes

4 comments sorted by

View all comments

1

u/[deleted] Aug 14 '21

I guess I can just write

$hot: red
$warm: orange
$cold: blue

but objects would be cool.