F
F
falcone52021-12-28 18:36:36
Sass
falcone5, 2021-12-28 18:36:36

Alternative to global variables in project?

Tell me, I'm still new to web development. There is a project based on BEM, which is assembled from components. Each component is independent. The project has a ready-made set of colors (there are 8 of them) and fonts (there are 2 of them). Whether to register them as variables, for example, in the variables.scss file, but then the components that use these variables will become dependent on this file. And if you pull the component into another project, you will have to drag variables.scss as well, as I understand it?
Are there any ideas to do without "global" variables?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question