Gallon for shadcn/ui

Gallon is a shadcn/ui theme built around a near-white primary color (#f6fefc) with near-white accents (#fef6f8). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#f6fefc) on a neutral background (#030706).

Color palette

TokenLightDark
Background
#ffffffwhite
#030706black
Foreground
#020807black
#f9fbfbghostwhite
Card
#fcfcfcsnow
#050a09black
Card foreground
#010404black
#fcfdfdwhite
Popover
#fcfcfcsnow
#050a09black
Popover foreground
#010404black
#fcfdfdwhite
Primary
#f6fefcmintcream
#f6fefcmintcream
Primary foreground
#0c5043darkslategray
#0c5043darkslategray
Secondary
#fef6f8snow
#fef6f8snow
Secondary foreground
#a91933brown
#a91933brown
Muted
#efececlinen
#131011black
Muted foreground
#4e3c3fdarkslategray
#c3b1b4silver
Accent
#fef6f8snow
#fef6f8snow
Accent foreground
#a91933brown
#a91933brown
Destructive
#88140cdarkred
#dd2113crimson
Destructive foreground
#fbcfcbpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6fefcmintcream
#f6fefcmintcream

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card20.13:1AAA
Primary button9.12:1AAA
Secondary button6.87:1AA
Muted text8.72:1AAA
Accent6.87:1AA
Destructive6.91:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.54:1AAA
Primary button9.12:1AAA
Secondary button6.87:1AA
Muted text9.23:1AAA
Accent6.87:1AA
Destructive4.90:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.015 184.067);
  --muted: oklch(0.944 0.004 4.411);
  --muted-foreground: oklch(0.376 0.026 6.081);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.099 0.012 184.067);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.099 0.012 184.067);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.99 0.008 184.091);
  --primary-foreground: oklch(0.387 0.067 176.733);
  --secondary: oklch(0.98 0.008 4.535);
  --secondary-foreground: oklch(0.476 0.175 18.494);
  --accent: oklch(0.98 0.008 4.535);
  --accent-foreground: oklch(0.476 0.175 18.494);
  --destructive: oklch(0.404 0.151 29.56);
  --destructive-foreground: oklch(0.89 0.05 22.927);
  --ring: oklch(0.99 0.008 184.091);
  --chart-1: oklch(0.99 0.008 184.091);
  --chart-2: oklch(0.98 0.008 4.535);
  --chart-3: oklch(0.98 0.008 4.535);
  --chart-4: oklch(1.01 0.004 184.204);
  --chart-5: oklch(0.99 0.008 184.082);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.008 184.164);
  --foreground: oklch(0.986 0.002 184.246);
  --muted: oklch(0.178 0.005 5.113);
  --muted-foreground: oklch(0.777 0.021 5.021);
  --popover: oklch(0.139 0.01 184.164);
  --popover-foreground: oklch(0.993 0.001 184.279);
  --card: oklch(0.139 0.01 184.164);
  --card-foreground: oklch(0.993 0.001 184.279);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.99 0.008 184.091);
  --primary-foreground: oklch(0.387 0.067 176.733);
  --secondary: oklch(0.98 0.008 4.535);
  --secondary-foreground: oklch(0.476 0.175 18.494);
  --accent: oklch(0.98 0.008 4.535);
  --accent-foreground: oklch(0.476 0.175 18.494);
  --destructive: oklch(0.574 0.22 29.698);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.99 0.008 184.091);
  --chart-1: oklch(0.99 0.008 184.091);
  --chart-2: oklch(0.98 0.008 4.535);
  --chart-3: oklch(0.98 0.008 4.535);
  --chart-4: oklch(1.01 0.004 184.204);
  --chart-5: oklch(0.99 0.008 184.082);
}