Answer the question
In order to leave comments, you need to log in
How to set background color parameter in mixins?
mixin color-group(color, description, value)
.color-group
.color-group__color(style={background:`color`}) ---?
h2.color-group__description=description
p.color-group__value=value
+color-group('#1F2041', 'Текст', 'Еще какой то текст')
+color-group(другой цвет, .. , ..)
+color-group(и еще другой, .. , ..)
Answer the question
In order to leave comments, you need to log in
mixin color-group(color, description, value)
.color-group
.color-group__color(style={background: color})
h2.color-group__description= description
p.color-group__value= value
+color-group('#1F2041', 'Текст', 'Еще какой то текст')
+color-group('#ccc', 'Текст 2', 'Еще какой то текст 2')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question