Let Users Pick ANY Color and Your WHOLE Website CHANGES!

Coding2GO on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateWeb Development8 min

About this video

A short CSS tutorial showing how to build a colour picker that lets users personalise an app's theme. It uses the oklch() colour format and relative colours with the from keyword to derive shades, highlights and backgrounds from one chosen base colour. It is aimed at developers who want flexible light and dark neutral colour systems.

What you’ll learn

  • Build a colour picker that sets an app's base theme colour
  • Derive shades and backgrounds from one colour with relative colour syntax
  • Apply oklch() colours in CSS for consistent light and dark themes