Veto for shadcn/ui

Veto is a shadcn/ui theme built around a vivid yellow primary color (#95910e) with vivid purple accents (#910e95). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the vivid yellow primary (#95910e) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#fcfcf8snow
#040401black
Foreground
#0c0c03black
#fbfbf8snow
Card
#fcfcf8snow
#040401black
Card foreground
#0c0c03black
#fbfbf8snow
Popover
#fcfcf8snow
#040401black
Popover foreground
#0c0c03black
#fbfbf8snow
Primary
#95910eolive
#95910eolive
Primary foreground
#000000black
#000000black
Secondary
#0e9591darkcyan
#0e9591darkcyan
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#cee9e8gainsboro
#163130darkslategray
Muted foreground
#577070dimgray
#8fa8a8darkgray
Accent
#910e95darkmagenta
#910e95darkmagenta
Accent foreground
#fadafclavender
#fadafclavender
Destructive
#a21010firebrick
#eb3333crimson
Destructive foreground
#fde8e8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#95910eolive
#95910eolive

Contrast

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

Light mode
Text on background19.03:1AAA
Text on card19.03:1AAA
Primary button6.32:1AA
Secondary button3.65:1AA Large
Muted text4.14:1AA Large
Accent6.11:1AA
Destructive6.80:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button6.32:1AA
Secondary button3.65:1AA Large
Muted text5.49:1AA
Accent6.11:1AA
Destructive4.16:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 104.891);
  --foreground: oklch(0.15 0.021 107.275);
  --muted: oklch(0.913 0.028 194.226);
  --muted-foreground: oklch(0.526 0.03 193.73);
  --popover: oklch(0.989 0.005 104.891);
  --popover-foreground: oklch(0.15 0.021 107.275);
  --card: oklch(0.989 0.005 104.891);
  --card-foreground: oklch(0.15 0.021 107.275);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.639 0.134 107.383);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.607 0.102 190.969);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.468 0.209 326.639);
  --accent-foreground: oklch(0.925 0.057 325.002);
  --destructive: oklch(0.455 0.177 28.15);
  --destructive-foreground: oklch(0.947 0.023 17.563);
  --ring: oklch(0.639 0.134 107.383);
  --chart-1: oklch(0.639 0.134 107.383);
  --chart-2: oklch(0.607 0.102 190.969);
  --chart-3: oklch(0.468 0.209 326.639);
  --chart-4: oklch(0.648 0.109 190.943);
  --chart-5: oklch(0.647 0.136 107.36);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.015 107.462);
  --foreground: oklch(0.988 0.004 104.879);
  --muted: oklch(0.292 0.033 192.705);
  --muted-foreground: oklch(0.713 0.029 194.048);
  --popover: oklch(0.104 0.015 107.462);
  --popover-foreground: oklch(0.988 0.004 104.879);
  --card: oklch(0.104 0.015 107.462);
  --card-foreground: oklch(0.988 0.004 104.879);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.639 0.134 107.383);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.607 0.102 190.969);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.468 0.209 326.639);
  --accent-foreground: oklch(0.925 0.057 325.002);
  --destructive: oklch(0.613 0.219 26.615);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.639 0.134 107.383);
  --chart-1: oklch(0.639 0.134 107.383);
  --chart-2: oklch(0.607 0.102 190.969);
  --chart-3: oklch(0.468 0.209 326.639);
  --chart-4: oklch(0.648 0.109 190.943);
  --chart-5: oklch(0.647 0.136 107.36);
}