Choose the websitebuilder project folder to add or remove color families. You can also choose its src folder to add or import families. Both options save to src/styles/themes/colors.css.
This requires a browser that supports the File System Access API, such as Chrome or Edge, and a secure connection or localhost. Files are read locally and are not uploaded.
The editor remembers your folder for this tab and reconnects after a development-page reload. If your browser asks for permission again, select Reconnect project; you do not need to find the folder again.
Choose one or more plain-text UTF-8 files ending in .txt or .css, up to 1 MB combined. Use one declaration per line in the format--color-FAMILY-SHADE: oklch(L% C H);. L is lightness (0-100%), C is chroma (0 or greater), and H is hue (0-360 degrees). Include the semicolon after every color.
Each family needs all 11 shades: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950. Use a unique lowercase family name starting with a letter, with letters, numbers, and single hyphens between words (up to 60 characters). Do not use built-in names such as blue or red, existing family names, or the reserved names custom, theme, none, and solid. Do not repeat a shade within the same family.
For multiple families, put each complete set in the same file or select several files together using Ctrl-click (Command-click on Mac) or Shift-click. Every family needs a different name. CSS wrappers such as :root are optional; JSON, commas, and code fences are not needed.
Choose your project folder or its src folder, then use Import color familiesbelow. Review families using the selector, then click Save all imported families to colors.css to save every family from all selected files at once. Your name and shade edits are included. Nothing is saved if any family is invalid or already exists. Use Add family to save only the selected family instead.
Example .txt file with two complete families
--color-ocean-blue-50: oklch(98% 0.01 240);
--color-ocean-blue-100: oklch(95% 0.025 240);
--color-ocean-blue-200: oklch(90% 0.05 240);
--color-ocean-blue-300: oklch(83% 0.085 240);
--color-ocean-blue-400: oklch(74% 0.12 240);
--color-ocean-blue-500: oklch(65% 0.15 240);
--color-ocean-blue-600: oklch(55% 0.15 240);
--color-ocean-blue-700: oklch(46% 0.125 240);
--color-ocean-blue-800: oklch(38% 0.1 240);
--color-ocean-blue-900: oklch(30% 0.075 240);
--color-ocean-blue-950: oklch(22% 0.055 240);
--color-orchid-bloom-50: oklch(98% 0.01 310);
--color-orchid-bloom-100: oklch(95% 0.025 310);
--color-orchid-bloom-200: oklch(90% 0.05 310);
--color-orchid-bloom-300: oklch(83% 0.085 310);
--color-orchid-bloom-400: oklch(74% 0.12 310);
--color-orchid-bloom-500: oklch(65% 0.15 310);
--color-orchid-bloom-600: oklch(55% 0.15 310);
--color-orchid-bloom-700: oklch(46% 0.125 310);
--color-orchid-bloom-800: oklch(38% 0.1 310);
--color-orchid-bloom-900: oklch(30% 0.075 310);
--color-orchid-bloom-950: oklch(22% 0.055 310);
Download example color-families.txt