Values, Units and Colours
Pixels, em, rem, %, ch, viewport units, every colour format from hex to oklch, CSS variables and calc/min/max/clamp, explained from zero.
Every CSS declaration ends in a value: 16px, 1.5rem, 50%, #2563eb, var(--brand), clamp(1rem, 2vw, 2rem). This phase teaches what those values really mean, so you choose them on purpose instead of copying them.
You'll start with the CSS pixel and why it is not a dot on your screen, then the relative units (em, rem, %, ch, ex) that let a design grow with the reader's font size, and the viewport units (vw, vh, dvh and friends) with the famous mobile address bar problem.
Then colour: names, hex, rgb(), hsl(), transparency, currentColor, and the modern tools (oklch(), color-mix(), relative colours, contrast). You'll finish with custom properties (CSS variables) for theming and the maths functions calc(), min(), max() and clamp() for fluid, responsive sizes.
Practise this phase
Hands-on exercises: write the code, see your page live, and press Check to have it tested automatically.