CSS architecture
noun
say it: “SEE ESS ESS AR-kih-tek-cher” /ˌsiː ɛs ˈɛs ˈɑːrkɪtɛktʃər/
The plan a team follows for organizing its CSS (how classes are named, which files hold what, and which rules win) so the styles stay easy to change as a site grows.
What is CSS architecture?
CSS architecture is how a team organizes its CSS so it stays easy to change as the site grows: naming rules, file structure and layers.
@layer reset, tokens, components, utilities;
/* reset.css, tokens.css, components/*.css, utilities.css */
In a sentence
- “Our bike shop's stylesheet had grown to 3,000 lines, so we agreed on a CSS architecture before adding the rental pages.”
- “With a clear CSS architecture, a new teammate knew the button styles lived in components/button.css.”
Level: Master · More CSS terms at this level
Updated