Part 2: Letting the cascade work
Container queries let the card component decide its own layout, so it looks right in a sidebar and in a three-column grid without extra classes.
- Define tokens for space, colour, and type
- Style prose elements once, globally
- Use container queries for reusable components
- Check contrast in light and dark mode