Careeroza
Organizing CSS
A Scalable Structure
styles/
base/ reset.css, typography.css, variables.css
layout/ header.css, grid.css, footer.css
components/ button.css, card.css, modal.css
utilities/ spacing.css, visually-hidden.css
main.css imports everything in this orderOrder matters because of the cascade: generic rules first (reset, variables, base), specific last (components, utilities).
Frameworks and Tools
| Tool | What it is |
|---|---|
| Sass / SCSS | preprocessor: variables, mixins, nesting, partials |
| PostCSS / Autoprefixer | adds vendor prefixes and modern-CSS fallbacks |
| Tailwind CSS | utility-first classes (flex p-4 text-center) in the HTML |
| Bootstrap | ready-made components and grid |
| CSS Modules | class names scoped per component (React, Next.js) |
Tip: Learn plain CSS well first: every framework is just CSS underneath.