3 for shadcn/ui

3 is a shadcn/ui theme built around a vivid yellow primary color (#efba0b) with muted light yellow accents (#d8d6cf). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#efba0b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#100d04black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#100d04black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#100d04black
#ffffffwhite
Primary
#efba0borange
#efba0borange
Primary foreground
#2c2202black
#2c2202black
Secondary
#e3e3e3gainsboro
#33322edarkslategray
Secondary foreground
#4b4a49darkslategray
#cdcbc6lightgrey
Muted
#f3f3f1whitesmoke
#0e0d0cblack
Muted foreground
#68655adimgray
#a5a297darkgray
Accent
#d8d6cflightgrey
#514d3ddarkolivegreen
Accent foreground
#413e35darkslategray
#e5e3dcgainsboro
Destructive
#d7120ffirebrick
#db130fred
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eeece8linen
#1d1c16black
Input
#eeece8linen
#1d1c16black
Ring
#efba0borange
#efba0borange

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 button8.71:1AAA
Secondary button6.89:1AA
Muted text5.25:1AA
Accent7.34:1AAA
Destructive5.28:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.71:1AAA
Secondary button7.91:1AAA
Muted text7.58:1AAA
Accent6.60:1AA
Destructive5.09:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.161 0.021 95.12);
  --muted: oklch(0.964 0.002 92.682);
  --muted-foreground: oklch(0.505 0.017 92.945);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.161 0.021 95.12);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.161 0.021 95.12);
  --border: oklch(0.944 0.006 92.724);
  --input: oklch(0.944 0.006 92.724);
  --primary: oklch(0.813 0.165 87.541);
  --primary-foreground: oklch(0.257 0.05 91.903);
  --secondary: oklch(0.916 0.001 92.663);
  --secondary-foreground: oklch(0.41 0.002 92.703);
  --accent: oklch(0.876 0.009 92.759);
  --accent-foreground: oklch(0.363 0.015 93.013);
  --destructive: oklch(0.556 0.221 28.892);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.813 0.165 87.541);
  --chart-1: oklch(0.813 0.165 87.541);
  --chart-2: oklch(0.916 0.001 92.663);
  --chart-3: oklch(0.876 0.009 92.759);
  --chart-4: oklch(0.939 0 92.661);
  --chart-5: oklch(0.821 0.167 87.131);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.161 0.004 92.871);
  --muted-foreground: oklch(0.711 0.015 92.855);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.224 0.011 93.059);
  --input: oklch(0.224 0.011 93.059);
  --primary: oklch(0.813 0.165 87.541);
  --primary-foreground: oklch(0.257 0.05 91.903);
  --secondary: oklch(0.317 0.008 92.886);
  --secondary-foreground: oklch(0.842 0.007 92.737);
  --accent: oklch(0.419 0.025 93.107);
  --accent-foreground: oklch(0.915 0.009 92.753);
  --destructive: oklch(0.565 0.225 28.901);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.813 0.165 87.541);
  --chart-1: oklch(0.813 0.165 87.541);
  --chart-2: oklch(0.317 0.008 92.886);
  --chart-3: oklch(0.419 0.025 93.107);
  --chart-4: oklch(0.348 0.009 92.893);
  --chart-5: oklch(0.821 0.167 87.131);
}