Tan for shadcn/ui

Tan is a shadcn/ui theme built around a vivid blue primary color (#0580eb) with vivid indigo accents (#050ceb). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid blue primary (#0580eb) on a blue-tinted background (#040b10).

Color palette

TokenLightDark
Background
#fbfdfewhite
#040b10black
Foreground
#040b11black
#f9fafaghostwhite
Card
#f7fafdghostwhite
#050d14black
Card foreground
#03080dblack
#fcfcfdwhite
Popover
#f7fafdghostwhite
#050d14black
Popover foreground
#03080dblack
#fcfcfdwhite
Primary
#0580ebdodgerblue
#0580ebdodgerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#05ebe3darkturquoise
#05ebe3darkturquoise
Secondary foreground
#012322black
#012322black
Muted
#dce5e5gainsboro
#1a2323black
Muted foreground
#586a69dimgray
#95a7a6darkgray
Accent
#050cebblue
#050cebblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#cd3513firebrick
#ed5c3btomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0580ebdodgerblue
#0580ebdodgerblue

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.20:1AAA
Primary button3.98:1AA Large
Secondary button11.06:1AAA
Muted text4.45:1AA Large
Accent9.29:1AAA
Destructive5.08:1AA
Dark mode
Text on background18.96:1AAA
Text on card19.03:1AAA
Primary button3.98:1AA Large
Secondary button11.06:1AAA
Muted text6.35:1AA
Accent9.29:1AAA
Destructive6.17:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 244.122);
  --foreground: oklch(0.143 0.019 240.07);
  --muted: oklch(0.915 0.011 194.576);
  --muted-foreground: oklch(0.508 0.021 194.027);
  --popover: oklch(0.984 0.005 244.155);
  --popover-foreground: oklch(0.129 0.016 236.286);
  --card: oklch(0.984 0.005 244.155);
  --card-foreground: oklch(0.129 0.016 236.286);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.6 0.186 253.472);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.848 0.146 190.563);
  --secondary-foreground: oklch(0.232 0.039 191.569);
  --accent: oklch(0.43 0.291 264.494);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.561 0.194 33.417);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.6 0.186 253.472);
  --chart-1: oklch(0.6 0.186 253.472);
  --chart-2: oklch(0.848 0.146 190.563);
  --chart-3: oklch(0.43 0.291 264.494);
  --chart-4: oklch(0.889 0.153 190.549);
  --chart-5: oklch(0.603 0.191 253.858);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.017 240.538);
  --foreground: oklch(0.985 0.001 244.1);
  --muted: oklch(0.249 0.014 193.764);
  --muted-foreground: oklch(0.714 0.02 194.282);
  --popover: oklch(0.155 0.02 243.351);
  --popover-foreground: oklch(0.992 0 244.095);
  --card: oklch(0.155 0.02 243.351);
  --card-foreground: oklch(0.992 0 244.095);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.6 0.186 253.472);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.848 0.146 190.563);
  --secondary-foreground: oklch(0.232 0.039 191.569);
  --accent: oklch(0.43 0.291 264.494);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.658 0.186 34.149);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.6 0.186 253.472);
  --chart-1: oklch(0.6 0.186 253.472);
  --chart-2: oklch(0.848 0.146 190.563);
  --chart-3: oklch(0.43 0.291 264.494);
  --chart-4: oklch(0.889 0.153 190.549);
  --chart-5: oklch(0.603 0.191 253.858);
}