ITCSS (Inverted Triangle CSS) Layer Model
You'll learn how ITCSS organizes CSS from generic to specific using a layered approach that naturally manages specificity.
The Core Idea
ITCSS (Inverted Triangle CSS) is a CSS architecture that organizes your stylesheets into layers ordered by specificity—starting with the most generic, far-reaching styles at the top, and ending with the most explicit, localized styles at the bottom. Think of it as an inverted triangle: wide at the top (affecting everything) and narrow at the bottom (affecting specific elements).
This approach solves the specificity wars that plague many projects. By structuring your imports in the right order, you ensure that generic styles get applied first and can be progressively overridden by more specific ones without needing to increase selector complexity artificially.
The Seven Layers
ITCSS typically uses these layers, loaded in this exact order:
- Settings – Variables and configuration (custom properties)
- Tools – Mixins and functions (if using preprocessors)
- Generic – Resets, normalize, box-sizing rules
- Elements – Bare HTML element styles (no classes)
- Objects – Layout patterns, structure (OOCSS principles)
- Components – Specific UI components (BEM blocks)
- Utilities – Helper classes that override everything
Each layer naturally has more specificity than the one above it. Your main stylesheet becomes a series of organized imports, making it crystal clear where any style should live.
Why It Works
By maintaining this order through your file structure and imports, you avoid specificity conflicts. A utility class can safely override a component style because it's loaded later, not because you added !important or chained selectors.
Key Takeaway: ITCSS organizes CSS files from generic to specific in a predictable layer order, letting file position manage specificity instead of complex selectors.