YELLOW for shadcn/ui

YELLOW is a shadcn/ui theme built around a vivid deep yellow primary color (#464307) with vivid deep green accents (#294607). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep yellow primary (#464307) on a yellow-tinted background (#0e0d07).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0d07black
Foreground
#090802black
#fcfcf8snow
Card
#fcfcfcsnow
#111109black
Card foreground
#040401black
#fdfdfbsnow
Popover
#fcfcfcsnow
#111109black
Popover foreground
#040401black
#fdfdfbsnow
Primary
#464307darkolivegreen
#464307darkolivegreen
Primary foreground
#ebe22dgold
#ebe22dgold
Secondary
#462307maroon
#462307maroon
Secondary foreground
#f4ba8aburlywood
#f4ba8aburlywood
Muted
#ede2d9antiquewhite
#261b12black
Muted foreground
#61564cdimgray
#b3a79edarkgray
Accent
#294607darkgreen
#294607darkgreen
Accent foreground
#96eb2dgreenyellow
#96eb2dgreenyellow
Destructive
#d70c09red
#f51d19red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#f4f4f1whitesmoke
#2b2a22darkslategray
Input
#f4f4f1whitesmoke
#2b2a22darkslategray
Ring
#464307darkolivegreen
#464307darkolivegreen

Contrast

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

Light mode
Text on background20.05:1AAA
Text on card20.08:1AAA
Primary button7.49:1AAA
Secondary button8.13:1AAA
Muted text5.59:1AA
Accent7.19:1AAA
Destructive5.30:1AA
Dark mode
Text on background18.91:1AAA
Text on card18.66:1AAA
Primary button7.49:1AAA
Secondary button8.13:1AAA
Muted text7.15:1AAA
Accent7.19:1AAA
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.132 0.02 107.033);
  --muted: oklch(0.919 0.017 61.943);
  --muted-foreground: oklch(0.46 0.021 61.557);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.105 0.016 107.033);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.105 0.016 107.033);
  --border: oklch(0.965 0.004 104.04);
  --input: oklch(0.965 0.004 104.04);
  --primary: oklch(0.374 0.076 106.301);
  --primary-foreground: oklch(0.892 0.181 106.273);
  --secondary: oklch(0.299 0.066 55.236);
  --secondary-foreground: oklch(0.831 0.092 60.349);
  --accent: oklch(0.358 0.093 131.795);
  --accent-foreground: oklch(0.855 0.224 131.933);
  --destructive: oklch(0.556 0.224 29.075);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.374 0.076 106.301);
  --chart-1: oklch(0.374 0.076 106.301);
  --chart-2: oklch(0.299 0.066 55.236);
  --chart-3: oklch(0.358 0.093 131.795);
  --chart-4: oklch(0.335 0.076 54.43);
  --chart-5: oklch(0.378 0.077 106.29);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.014 105.445);
  --foreground: oklch(0.989 0.005 104.06);
  --muted: oklch(0.233 0.024 60.513);
  --muted-foreground: oklch(0.736 0.019 61.85);
  --popover: oklch(0.173 0.016 105.404);
  --popover-foreground: oklch(0.995 0.003 104.015);
  --card: oklch(0.173 0.016 105.404);
  --card-foreground: oklch(0.995 0.003 104.015);
  --border: oklch(0.284 0.015 104.853);
  --input: oklch(0.284 0.015 104.853);
  --primary: oklch(0.374 0.076 106.301);
  --primary-foreground: oklch(0.892 0.181 106.273);
  --secondary: oklch(0.299 0.066 55.236);
  --secondary-foreground: oklch(0.831 0.092 60.349);
  --accent: oklch(0.358 0.093 131.795);
  --accent-foreground: oklch(0.855 0.224 131.933);
  --destructive: oklch(0.618 0.242 28.679);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.374 0.076 106.301);
  --chart-1: oklch(0.374 0.076 106.301);
  --chart-2: oklch(0.299 0.066 55.236);
  --chart-3: oklch(0.358 0.093 131.795);
  --chart-4: oklch(0.335 0.076 54.43);
  --chart-5: oklch(0.378 0.077 106.29);
}