Design Integration

Using Shift CSS colors in Figma and other design tools

The Hue-Based Advantage

Shift CSS generates entire color palettes from single hue values (0-360°). This means designers only need 7 numbers to recreate your complete theme in any design tool:

TokenDefault Hue
Primary250
Secondary180
Accent30
Success145
Warning45
Danger25
Neutral250

Use the Theme Generator to customize these values and export them.

Figma Workflow Options

For perceptually accurate colors that match your CSS, use Figma plugins that understand OKLCH:

Derek’s OKLCH Variables Syncs CSS containing oklch() values directly to Figma variables. Export CSS from the Theme Generator and paste it into the plugin.

OKLCH Palette Generator Build color scales from hue values with the same perceptual uniformity as Shift CSS.

Option 2: Use Hue Values Directly

The Theme Generator exports hue values (0-360°) that you can use with any OKLCH-aware tool:

  1. Export JSON from the Theme Generator
  2. Use the hue values with the OKLCH Palette Generator plugin
  3. Or enter values manually using the lightness/chroma table below

Option 3: Manual Recreation

Recreate the Shift CSS color system in any design tool that supports OKLCH. Use these lightness and chroma values with your custom hue:

StepLightness (L)Chroma (C)
500.97780.0108
1000.93560.0321
2000.88110.0636
3000.82670.0951
4000.74220.1211
5000.64780.1472
6000.57330.1383
7000.46890.1178
8000.39440.0894
9000.32000.0720
9500.23780.0540

For example, to create primary-500 with a hue of 280:

oklch(0.6478 0.1472 280)

Other Design Tools

Sketch

Sketch supports OKLCH natively in its color picker. Enter values directly using the lightness/chroma table above with your chosen hue.

Adobe XD / Illustrator

These tools don’t support OKLCH natively. Use oklch.com to convert your OKLCH values to hex, then enter the hex codes manually.

Penpot

Penpot supports OKLCH in its color picker. Enter values directly using the format oklch(L C H) with the values from the table above.

Keeping Design and Code in Sync

The simplest workflow:

  1. Designer adjusts hues in the Theme Generator
  2. Designer shares the URL (contains all hue values)
  3. Developer copies CSS from the same URL
  4. Both design and code use identical color values

The Theme Generator’s shareable URLs encode all customizations, making handoff seamless.

Search