Precious for shadcn/ui

Precious is a shadcn/ui theme built around an orange primary color (#ecb693) with yellow accents (#ece393). The light mode uses a neutral background (#fefcfb). Dark mode keeps the orange primary (#ecb693) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#fefcfbsnow
#040201black
Foreground
#000000black
#ffffffwhite
Card
#fefcfbsnow
#040201black
Card foreground
#000000black
#ffffffwhite
Popover
#fefcfbsnow
#040201black
Popover foreground
#000000black
#ffffffwhite
Primary
#ecb693burlywood
#ecb693burlywood
Primary foreground
#41210bmaroon
#41210bmaroon
Secondary
#ec939clightcoral
#ec939clightcoral
Secondary foreground
#410b11maroon
#410b11maroon
Muted
#eae1e2gainsboro
#1e1516black
Muted foreground
#75575adimgray
#a88a8drosybrown
Accent
#ece393khaki
#ece393khaki
Accent foreground
#413c0bdarkolivegreen
#413c0bdarkolivegreen
Destructive
#9d3106saddlebrown
#f75e22tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ecb693burlywood
#ecb693burlywood

Contrast

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

Light mode
Text on background20.54:1AAA
Text on card20.54:1AAA
Primary button8.08:1AAA
Secondary button7.17:1AAA
Muted text5.00:1AA
Accent8.50:1AAA
Destructive7.29:1AAA
Dark mode
Text on background20.68:1AAA
Text on card20.68:1AAA
Primary button8.08:1AAA
Secondary button7.17:1AAA
Muted text5.69:1AA
Accent8.50:1AAA
Destructive6.57:1AA

CSS variables

Paste this into your globals.css to use Precious in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 56.401);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.917 0.01 10.328);
  --muted-foreground: oklch(0.489 0.041 12.003);
  --popover: oklch(0.993 0.002 56.401);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.993 0.002 56.401);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.817 0.079 55.03);
  --primary-foreground: oklch(0.287 0.059 51.713);
  --secondary: oklch(0.756 0.108 13.493);
  --secondary-foreground: oklch(0.252 0.082 19.991);
  --accent: oklch(0.905 0.101 102.742);
  --accent-foreground: oklch(0.35 0.065 102.822);
  --destructive: oklch(0.471 0.151 37.758);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.817 0.079 55.03);
  --chart-1: oklch(0.817 0.079 55.03);
  --chart-2: oklch(0.756 0.108 13.493);
  --chart-3: oklch(0.905 0.101 102.742);
  --chart-4: oklch(0.784 0.094 12.894);
  --chart-5: oklch(0.818 0.082 54.96);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.092 0.011 65.344);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.207 0.015 11.75);
  --muted-foreground: oklch(0.662 0.037 11.37);
  --popover: oklch(0.092 0.011 65.344);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0.011 65.344);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.817 0.079 55.03);
  --primary-foreground: oklch(0.287 0.059 51.713);
  --secondary: oklch(0.756 0.108 13.493);
  --secondary-foreground: oklch(0.252 0.082 19.991);
  --accent: oklch(0.905 0.101 102.742);
  --accent-foreground: oklch(0.35 0.065 102.822);
  --destructive: oklch(0.675 0.199 39.227);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.817 0.079 55.03);
  --chart-1: oklch(0.817 0.079 55.03);
  --chart-2: oklch(0.756 0.108 13.493);
  --chart-3: oklch(0.905 0.101 102.742);
  --chart-4: oklch(0.784 0.094 12.894);
  --chart-5: oklch(0.818 0.082 54.96);
}