Cascading Style Sheets (CSS)
Synonyms: stylesheets, CSS styling, style rules, web styling language, CSS custom properties
Definition
Use cases
- The 4px drift: You spec 16px padding, the developer eyeballs it, and every card ships a little tight. Multiply that across a product and the whole thing feels off without anyone knowing why.
- The dark-mode scramble: A team hard-coded hex values everywhere. Adding dark mode now means hunting through hundreds of files instead of swapping one token set.
- The responsive surprise: A layout looks perfect in the desktop mockup and collapses on a phone because nobody planned how it reflows. Reading CSS layout catches that before QA does.
How it's used in practice
- Speak it enough to spec it: You don't need to write production CSS, but knowing selectors, the box model, and units makes your handoffs precise.
- Design in tokens, not hex codes: Define colors, spacing, and type as named variables so one change updates everywhere.
- Plan for reflow: Think in flexible grids and breakpoints. The page has to survive every screen size.
- Respect user settings: Use relative units like rem so type scales when someone bumps their browser font size to read.
- Review in the browser: Check the built component against the design live, not just against the Figma file.
Challenges & limitations
- Browser inconsistency: The same CSS can render differently across browsers and versions, so "done" in one place isn't done everywhere.
- It's a real skill: Specificity, the cascade, and layout have genuine depth. Half-knowing CSS produces confident-but-wrong specs.
- Boundary blur: How much CSS a designer should own is a team question with no single right answer.
Free resources
- CSS-Tricks: What Are Design Tokens? — how tokens capture low-level values and keep visual systems consistent across platforms
- Penpot: Design Tokens and CSS Variables — the bridge between platform-agnostic tokens and CSS custom properties in the browser

