How to name my custom properties semantically

Hello everyone, I would like some help and suggestions for articles that I can read about how I can name my custom properties in a better way. Instead of just naming the colors like: --red, --blue, --cyan, etc. I want to learn a better way of how I can name them, I heard that I should name the colors as primary, secondary (accent), neutral.
No description
No description
8 Replies
Chaves
ChavesOP14mo ago
No description
Chaves
ChavesOP14mo ago
My custom properties look like this
ἔρως
ἔρως14mo ago
do you use sass?
Chaves
ChavesOP14mo ago
No
ἔρως
ἔρως14mo ago
well, i don't see any issues with naming your colors what they are
ἔρως
ἔρως14mo ago
The Component, Element, Modifier Design Pattern | Aten Design Group
The Component, Element, Modifier pattern increases the reusability and maintainability of CSS code by scoping CSS styles to particular components through the use of class naming conventions.
ἔρως
ἔρως14mo ago
but if you used sass, you could make a function that creates a variable and would make everything much simpler
Chaves
ChavesOP14mo ago
Thanks brother
Want results from more Discord servers?
Add your server