Answer the question
In order to leave comments, you need to log in
Is it right to put colors, fonts into one .sass file and connect them to ReactJS components?
src:
-- sass:
_fonts.sass
_colors.sass
_main.sass (include all files from the sass folder here) I
store all my components in the components folder, is it correct if I include styles in the components like this:
@import '../sass/main.sass'
Answer the question
In order to leave comments, you need to log in
Yes, it's all a matter of taste. There is nothing criminal in your approach.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question