J
J
Johnny Smith2018-11-16 00:19:54
css
Johnny Smith, 2018-11-16 00:19:54

Are global styles and BEM incompatible concepts?

Basic element styles (those that need to be redefined later) do not correspond to the BEM concept?
Can I write base styles for the body and then cascade them to other elements on the page. Or in BEM I have to set the font, color, etc. every time. for each block. Those. cascading inheritance is not about BEM?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
profesor08, 2018-11-16
@profesor08

Use a preprocessor. Set global styles for body, they will be inherited.

R
Roman Sokhin, 2018-11-16
@roamn

Hello.
You can set the base font and color.
If you need to use a custom font somewhere, you can create a block for this option and the font-face modifier to use in the desired blocks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question