Helmet for shadcn/ui

Helmet is a shadcn/ui theme built around a vivid yellow primary color (#f1c950) with vivid green accents (#c9f150). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the vivid yellow primary (#f1c950) on a yellow-tinted background (#100d05).

Color palette

TokenLightDark
Background
#fdfbf7snow
#100d05black
Foreground
#110e03black
#fdfdfcwhite
Card
#fdfbf7snow
#100d05black
Card foreground
#110e03black
#fdfdfcwhite
Popover
#fdfbf7snow
#100d05black
Popover foreground
#110e03black
#fdfdfcwhite
Primary
#f1c950sandybrown
#f1c950sandybrown
Primary foreground
#0e0b01black
#0e0b01black
Secondary
#f17950coral
#f17950coral
Secondary foreground
#0e0401black
#0e0401black
Muted
#eee9e7linen
#181311black
Muted foreground
#5a4e49darkolivegreen
#b6a9a5darkgray
Accent
#c9f150greenyellow
#c9f150greenyellow
Accent foreground
#0b0e01black
#0b0e01black
Destructive
#9b3208saddlebrown
#ed4c0corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f1c950sandybrown
#f1c950sandybrown

Contrast

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

Light mode
Text on background18.69:1AAA
Text on card18.69:1AAA
Primary button12.35:1AAA
Secondary button7.29:1AAA
Muted text6.65:1AA
Accent14.99:1AAA
Destructive7.36:1AAA
Dark mode
Text on background19.09:1AAA
Text on card19.09:1AAA
Primary button12.35:1AAA
Secondary button7.29:1AAA
Muted text8.09:1AAA
Accent14.99:1AAA
Destructive3.71:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 91.459);
  --foreground: oklch(0.163 0.024 94.257);
  --muted: oklch(0.937 0.006 39.466);
  --muted-foreground: oklch(0.433 0.018 39.31);
  --popover: oklch(0.989 0.006 91.459);
  --popover-foreground: oklch(0.163 0.024 94.257);
  --card: oklch(0.989 0.006 91.459);
  --card-foreground: oklch(0.163 0.024 94.257);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.848 0.143 90.4);
  --primary-foreground: oklch(0.149 0.026 96.843);
  --secondary: oklch(0.706 0.158 38.892);
  --secondary-foreground: oklch(0.127 0.025 51.818);
  --accent: oklch(0.9 0.187 122.364);
  --accent-foreground: oklch(0.156 0.032 119.03);
  --destructive: oklch(0.468 0.148 38.103);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.848 0.143 90.4);
  --chart-1: oklch(0.848 0.143 90.4);
  --chart-2: oklch(0.706 0.158 38.892);
  --chart-3: oklch(0.9 0.187 122.364);
  --chart-4: oklch(0.726 0.145 39.05);
  --chart-5: oklch(0.854 0.146 90.246);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.018 93.668);
  --foreground: oklch(0.993 0.001 91.416);
  --muted: oklch(0.191 0.009 39.288);
  --muted-foreground: oklch(0.745 0.015 39.389);
  --popover: oklch(0.159 0.018 93.668);
  --popover-foreground: oklch(0.993 0.001 91.416);
  --card: oklch(0.159 0.018 93.668);
  --card-foreground: oklch(0.993 0.001 91.416);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.848 0.143 90.4);
  --primary-foreground: oklch(0.149 0.026 96.843);
  --secondary: oklch(0.706 0.158 38.892);
  --secondary-foreground: oklch(0.127 0.025 51.818);
  --accent: oklch(0.9 0.187 122.364);
  --accent-foreground: oklch(0.156 0.032 119.03);
  --destructive: oklch(0.638 0.207 37.421);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.848 0.143 90.4);
  --chart-1: oklch(0.848 0.143 90.4);
  --chart-2: oklch(0.706 0.158 38.892);
  --chart-3: oklch(0.9 0.187 122.364);
  --chart-4: oklch(0.726 0.145 39.05);
  --chart-5: oklch(0.854 0.146 90.246);
}