Custom Properties (CSS Variables): The Token System Every Project Needs
Use CSS custom properties as design tokens: primitive, semantic and component tiers, dark mode, @property, fallbacks, and the…
Category
CSS, or Cascading Style Sheets, is the language that controls how HTML looks: layout, colour, typography, spacing and animation. Modern CSS handles most layouts with Flexbox and Grid, and adds custom properties, container queries, blend modes and pseudo-elements that once needed JavaScript or extra markup. Knowing how the cascade and specificity work is what keeps stylesheets predictable as a site grows.
21 articles
Use CSS custom properties as design tokens: primitive, semantic and component tiers, dark mode, @property, fallbacks, and the…
Advanced CSS selectors explained: the four combinators, attribute operators, structural and form pseudo-classes, and :is(), :where() and :not().
The CSS box model explained: box-sizing, margin collapse, display types, formatting contexts, containing blocks, and a fix for…
CSS cascade specificity inheritance explained: how the browser sorts declarations, scores selectors, and falls back when nothing matches.
Web design has witnessed revolutionary innovations, and CSS Grid Layout is one of the vital advancements in this…
CSS blend modes let you combine layers, images and colors in the browser the way you would in…
Pseudo elements and pseudo classes let you style states and parts of an element that plain selectors cannot…