Tomatillo for shadcn/ui

Tomatillo is a shadcn/ui theme built around a vivid deep yellow primary color (#7d7b08) with vivid deep purple accents (#7b087d). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid deep yellow primary (#7d7b08) on a yellow-tinted background (#0b0b05).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#0b0b05black
Foreground
#131306black
#ffffffwhite
Card
#fcfcf8snow
#0e0e06black
Card foreground
#0f0f05black
#ffffffwhite
Popover
#fdfdfcwhite
#0b0b05black
Popover foreground
#131306black
#ffffffwhite
Primary
#7d7b08olive
#7d7b08olive
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#087d7bteal
#087d7bteal
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d6e5e5gainsboro
#1a2929darkslategray
Muted foreground
#495f5fdarkslategray
#a0b6b5darkgray
Accent
#7b087dpurple
#7b087dpurple
Accent foreground
#fabcfblavender
#fabcfblavender
Destructive
#c83214firebrick
#ea4a2achocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7d7b08olive
#7d7b08olive

Contrast

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

Light mode
Text on background18.40:1AAA
Text on card18.66:1AAA
Primary button4.47:1AA Large
Secondary button4.98:1AA
Muted text5.27:1AA
Accent6.30:1AA
Destructive5.37:1AA
Dark mode
Text on background19.77:1AAA
Text on card19.34:1AAA
Primary button4.47:1AA Large
Secondary button4.98:1AA
Muted text7.09:1AAA
Accent6.30:1AA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.002 105.658);
  --foreground: oklch(0.182 0.024 107.74);
  --muted: oklch(0.912 0.016 195.665);
  --muted-foreground: oklch(0.468 0.026 195.016);
  --popover: oklch(0.995 0.002 105.658);
  --popover-foreground: oklch(0.182 0.024 107.74);
  --card: oklch(0.989 0.005 105.7);
  --card-foreground: oklch(0.166 0.021 107.712);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.565 0.12 108.567);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.533 0.09 192.854);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.413 0.185 327.472);
  --accent-foreground: oklch(0.871 0.108 325.911);
  --destructive: oklch(0.548 0.191 32.804);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.565 0.12 108.567);
  --chart-1: oklch(0.565 0.12 108.567);
  --chart-2: oklch(0.533 0.09 192.854);
  --chart-3: oklch(0.413 0.185 327.472);
  --chart-4: oklch(0.577 0.097 192.833);
  --chart-5: oklch(0.572 0.122 108.565);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.015 107.411);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.266 0.021 194.676);
  --muted-foreground: oklch(0.759 0.024 195.428);
  --popover: oklch(0.145 0.015 107.411);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.162 0.017 107.371);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.565 0.12 108.567);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.533 0.09 192.854);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.413 0.185 327.472);
  --accent-foreground: oklch(0.871 0.108 325.911);
  --destructive: oklch(0.631 0.202 33.155);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.565 0.12 108.567);
  --chart-1: oklch(0.565 0.12 108.567);
  --chart-2: oklch(0.533 0.09 192.854);
  --chart-3: oklch(0.413 0.185 327.472);
  --chart-4: oklch(0.577 0.097 192.833);
  --chart-5: oklch(0.572 0.122 108.565);
}