Driving Half Pearl Lusta for shadcn/ui

Driving Half Pearl Lusta is a shadcn/ui theme built around a light yellow primary color (#f2ebd9) with light blue accents (#d9e0f2). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the light yellow primary (#f2ebd9) on a neutral background (#080602).

Color palette

TokenLightDark
Background
#fcfbf8snow
#080602black
Foreground
#080702black
#ffffffwhite
Card
#fcfbf8snow
#080602black
Card foreground
#080702black
#ffffffwhite
Popover
#fcfbf8snow
#080602black
Popover foreground
#080702black
#ffffffwhite
Primary
#f2ebd9antiquewhite
#f2ebd9antiquewhite
Primary foreground
#261f0dblack
#261f0dblack
Secondary
#d9e0f2lavender
#d9e0f2lavender
Secondary foreground
#263b73midnightblue
#263b73midnightblue
Muted
#ced4e3lightgrey
#1c2131darkslategray
Muted foreground
#494a4bdarkslategray
#b4b5b6silver
Accent
#d9e0f2lavender
#d9e0f2lavender
Accent foreground
#263b73midnightblue
#263b73midnightblue
Destructive
#731607maroon
#e12b0eorangered
Destructive foreground
#fabcb2lightpink
#ffffffwhite
Border
#eeededwhitesmoke
#1f1f1eblack
Input
#eeededwhitesmoke
#1f1f1eblack
Ring
#f2ebd9antiquewhite
#f2ebd9antiquewhite

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button13.79:1AAA
Secondary button8.10:1AAA
Muted text5.97:1AA
Accent8.10:1AAA
Destructive6.99:1AA
Dark mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button13.79:1AAA
Secondary button8.10:1AAA
Muted text7.78:1AAA
Accent8.10:1AAA
Destructive4.60:1AA

CSS variables

Paste this into your globals.css to use Driving Half Pearl Lusta in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.003 90.146);
  --foreground: oklch(0.125 0.016 95.47);
  --muted: oklch(0.87 0.023 269.891);
  --muted-foreground: oklch(0.408 0.002 270.083);
  --popover: oklch(0.987 0.003 90.146);
  --popover-foreground: oklch(0.125 0.016 95.47);
  --card: oklch(0.987 0.003 90.146);
  --card-foreground: oklch(0.125 0.016 95.47);
  --border: oklch(0.947 0.001 90.126);
  --input: oklch(0.947 0.001 90.126);
  --primary: oklch(0.942 0.026 90.306);
  --primary-foreground: oklch(0.244 0.033 89.896);
  --secondary: oklch(0.906 0.027 269.858);
  --secondary-foreground: oklch(0.366 0.1 266.499);
  --accent: oklch(0.906 0.027 269.858);
  --accent-foreground: oklch(0.366 0.1 266.499);
  --destructive: oklch(0.363 0.13 31.66);
  --destructive-foreground: oklch(0.849 0.074 28.626);
  --ring: oklch(0.942 0.026 90.306);
  --chart-1: oklch(0.942 0.026 90.306);
  --chart-2: oklch(0.906 0.027 269.858);
  --chart-3: oklch(0.906 0.027 269.858);
  --chart-4: oklch(0.934 0.018 269.95);
  --chart-5: oklch(0.943 0.027 90.314);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.013 94.838);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.251 0.031 268.713);
  --muted-foreground: oklch(0.772 0.002 270.104);
  --popover: oklch(0.124 0.013 94.838);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.013 94.838);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.239 0.002 90.177);
  --input: oklch(0.239 0.002 90.177);
  --primary: oklch(0.942 0.026 90.306);
  --primary-foreground: oklch(0.244 0.033 89.896);
  --secondary: oklch(0.906 0.027 269.858);
  --secondary-foreground: oklch(0.366 0.1 266.499);
  --accent: oklch(0.906 0.027 269.858);
  --accent-foreground: oklch(0.366 0.1 266.499);
  --destructive: oklch(0.588 0.219 31.354);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.942 0.026 90.306);
  --chart-1: oklch(0.942 0.026 90.306);
  --chart-2: oklch(0.906 0.027 269.858);
  --chart-3: oklch(0.906 0.027 269.858);
  --chart-4: oklch(0.934 0.018 269.95);
  --chart-5: oklch(0.943 0.027 90.314);
}