Wont for shadcn/ui

Wont is a shadcn/ui theme built around a vivid deep yellow primary color (#120f02) with vivid deep green accents (#0d1202). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep yellow primary (#120f02) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#ffffffwhite
#070603black
Foreground
#040301black
#fdfdfcwhite
Card
#ffffffwhite
#070603black
Card foreground
#040301black
#fdfdfcwhite
Popover
#ffffffwhite
#070603black
Popover foreground
#040301black
#fdfdfcwhite
Primary
#120f02black
#120f02black
Primary foreground
#c5a31bgoldenrod
#c5a31bgoldenrod
Secondary
#120702black
#120702black
Secondary foreground
#e9875dcoral
#e9875dcoral
Muted
#efeceblinen
#141110black
Muted foreground
#524a47darkslategray
#b8b0addarkgray
Accent
#0d1202black
#0d1202black
Accent foreground
#92c51byellowgreen
#92c51byellowgreen
Destructive
#aa1109firebrick
#f43d34tomato
Destructive foreground
#fee8e7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#120f02black
#120f02black

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button7.88:1AAA
Secondary button7.64:1AAA
Muted text7.37:1AAA
Accent9.25:1AAA
Destructive6.43:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button7.88:1AAA
Secondary button7.64:1AAA
Muted text8.81:1AAA
Accent9.25:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.011 98.988);
  --muted: oklch(0.946 0.003 44.945);
  --muted-foreground: oklch(0.417 0.011 44.722);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.1 0.011 98.988);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.1 0.011 98.988);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.167 0.027 98.014);
  --primary-foreground: oklch(0.727 0.143 93.059);
  --secondary: oklch(0.144 0.025 53.274);
  --secondary-foreground: oklch(0.721 0.133 43.453);
  --accent: oklch(0.172 0.034 121.948);
  --accent-foreground: oklch(0.761 0.188 126.49);
  --destructive: oklch(0.469 0.184 29.429);
  --destructive-foreground: oklch(0.948 0.024 21.221);
  --ring: oklch(0.167 0.027 98.014);
  --chart-1: oklch(0.167 0.027 98.014);
  --chart-2: oklch(0.144 0.025 53.274);
  --chart-3: oklch(0.172 0.034 121.948);
  --chart-4: oklch(0.183 0.037 46.172);
  --chart-5: oklch(0.168 0.028 98.108);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.01 97.964);
  --foreground: oklch(0.994 0.002 95.058);
  --muted: oklch(0.181 0.005 44.713);
  --muted-foreground: oklch(0.764 0.01 44.853);
  --popover: oklch(0.123 0.01 97.964);
  --popover-foreground: oklch(0.994 0.002 95.058);
  --card: oklch(0.123 0.01 97.964);
  --card-foreground: oklch(0.994 0.002 95.058);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.167 0.027 98.014);
  --primary-foreground: oklch(0.727 0.143 93.059);
  --secondary: oklch(0.144 0.025 53.274);
  --secondary-foreground: oklch(0.721 0.133 43.453);
  --accent: oklch(0.172 0.034 121.948);
  --accent-foreground: oklch(0.761 0.188 126.49);
  --destructive: oklch(0.638 0.22 28.271);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.167 0.027 98.014);
  --chart-1: oklch(0.167 0.027 98.014);
  --chart-2: oklch(0.144 0.025 53.274);
  --chart-3: oklch(0.172 0.034 121.948);
  --chart-4: oklch(0.183 0.037 46.172);
  --chart-5: oklch(0.168 0.028 98.108);
}