How do you efficiently class text elements in CSS?
Summary: How do you generally go about grouping text elements in css?
Hey, I'm working on my portfolio website and doing it with HTML/CSS to help differentiate as a Product Designer. I'm relatively new with CSS but one of the things that I was wondering is how to go about text and classes
I initially started off with using a root font sizing and things of that sort so I can just edit the root on screen dimension changes.
After this I began creating relatively straightforward classes. As I was just following how Figma was going about this (since I created the mock).
Later on after I got a bit more comfortable I began playing around with styling of this sort, to try and deal with multiple classes. At this point instead of classing everything, I'm beginning to look for re-usability and trying to minimize the number of classes in the code.
Overall my question is how does an experienced dev go about grouping font classes and elements to be efficient. What are some of the things I should be doing like should I be passing colors via inherit and such?
Hey, I'm working on my portfolio website and doing it with HTML/CSS to help differentiate as a Product Designer. I'm relatively new with CSS but one of the things that I was wondering is how to go about text and classes
I initially started off with using a root font sizing and things of that sort so I can just edit the root on screen dimension changes.
After this I began creating relatively straightforward classes. As I was just following how Figma was going about this (since I created the mock).
Later on after I got a bit more comfortable I began playing around with styling of this sort, to try and deal with multiple classes. At this point instead of classing everything, I'm beginning to look for re-usability and trying to minimize the number of classes in the code.
Overall my question is how does an experienced dev go about grouping font classes and elements to be efficient. What are some of the things I should be doing like should I be passing colors via inherit and such?
