S
S
Sketch012018-02-22 02:46:10
css
Sketch01, 2018-02-22 02:46:10

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

1 answer(s)
E
Egor Lavrenov, 2018-02-22
@Sketch01

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 question

Ask a Question

731 491 924 answers to any question