Home › Forums › CSS › CSS styling which way is better › Reply To: CSS styling which way is better
December 28, 2015 at 12:03 pm
#236220
Paulie_D
Member
If the color of white is a part of a color scheme then it does, perhaps make sense to use a separate class.
BUT it’s the name of the class that’s important…it has to be meaningful and descriptive at the same time without being overspecific.
So
.brand_color-light {
color: white;
}
.brand_color-alert {
color: red;
}
.brand_color-success {
color: green;
}
would, perhaps be better practice.