Section 6: Lab: Building Palettes with HSL and OKLCH
- Why HSL and OKLCH are easier than HEX when adjusting lightness
- Build around 9 to 10 shades of the main colour, plus status colours
- Greys with a slight tint so the page feels alive
- OKLCH, relative colour and color-mix() for generating shades in code
- Lab: build a sample brand palette and replace every colour on the page
Section 7: Lab: Contrast, Accessibility and Dark Mode
- WCAG 2.2 contrast: 4.5:1 for normal text and 3:1 for large text
- Never rely on colour alone, and design clearly visible focus states
- Dark mode with color-scheme and light-dark(), not just inverted colours
- Checking with DevTools and Lighthouse
- Lab: fix faint, hard-to-read text and add dark mode to the sample page
Section 8: Lab: Creating Depth with Light and Shadow
- A consistent light source and its effect on top and bottom edges
- A shadow scale for the elevation of elements
- Two-part shadows that look natural
- Flat depth with colour, and overlapping elements
- Lab: give dropdowns, modals and cards a clear elevation order
Section 9: Lab: Images and Finishing Details
- Keep text over images legible with overlays, reduced image contrast or text shadow
- aspect-ratio and object-fit for user-uploaded images, and sensible icon sizes
- Use fewer borders: separate with shadows, backgrounds or spacing instead
- Accent borders, subtle background patterns and empty states that invite action
- Lab: rework the hero section, a table and an empty list page of the sample system
Section 10: Workshop: A Before-and-After Page Rework
- Workshop: choose a landing page, a dashboard or a page from your own website
- Review it with the checklist, then improve hierarchy, spacing, typography and colour in turn
- Test on mobile and check contrast and dark mode
- Present the before and after, explaining the reason for each change