Answer the question
In order to leave comments, you need to log in
Fonts and classes?
If we assume there is a font family, is it normal to set classes for them, and to enter classes into HTML?
Example:
ff_h{font-family: 'Helvetica Neue';}
.ff_n-light{font-family: 'Helvetica Neue Light';}
.ff_n-bold{font-family: 'Helvetica Neue Bold';}
.ff_n_c-bold {font-family: 'Helvetica Neue Condensed Bold';}
.ff_n_c-black{ font-family: 'Helvetica Neue Cond Black';}
Answer the question
In order to leave comments, you need to log in
Read about BEM, excellent and understandable documentation from Russian developers in Russian.
What you want to do has the right to life, this is, if I'm not mistaken, Atomic CSS, but it is less popular than BEM, and clogging up HTML with a bunch of classes is not good
Read about BAM here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question