Ultimate for shadcn/ui

Ultimate is a shadcn/ui theme built around a muted deep teal primary color (#090b0a) with muted deep orange accents (#0b0a09). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep teal primary (#090b0a) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#ffffffwhite
#010403black
Foreground
#03120cblack
#f8fbfamintcream
Card
#fcfcfcsnow
#020806black
Card foreground
#020d09black
#fcfdfdwhite
Popover
#ffffffwhite
#010403black
Popover foreground
#03120cblack
#f8fbfamintcream
Primary
#090b0ablack
#090b0ablack
Primary foreground
#9baba5darkgray
#9baba5darkgray
Secondary
#0a090bblack
#0a090bblack
Secondary foreground
#a59babdarkgray
#a59babdarkgray
Muted
#ece5f1lavender
#160e1ablack
Muted foreground
#67586fdimgray
#9f90a7darkgray
Accent
#0b0a09black
#0b0a09black
Accent foreground
#aba59bdarkgray
#aba59bdarkgray
Destructive
#7c0903maroon
#ea1106red
Destructive foreground
#fdb8b4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#090b0ablack
#090b0ablack

Contrast

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

Light mode
Text on background19.16:1AAA
Text on card19.31:1AAA
Primary button8.22:1AAA
Secondary button7.43:1AAA
Muted text5.31:1AA
Accent8.07:1AAA
Destructive6.66:1AA
Dark mode
Text on background19.77:1AAA
Text on card19.80:1AAA
Primary button8.22:1AAA
Secondary button7.43:1AAA
Muted text6.29:1AA
Accent8.07:1AAA
Destructive4.59:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.164 0.027 169.423);
  --muted: oklch(0.93 0.018 313.489);
  --muted-foreground: oklch(0.482 0.042 313.072);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.164 0.027 169.423);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.146 0.023 171.862);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.148 0.003 172.055);
  --primary-foreground: oklch(0.728 0.02 171.739);
  --secondary: oklch(0.144 0.004 313.523);
  --secondary-foreground: oklch(0.703 0.026 313.375);
  --accent: oklch(0.147 0.003 81.762);
  --accent-foreground: oklch(0.725 0.016 81.491);
  --destructive: oklch(0.374 0.147 29.772);
  --destructive-foreground: oklch(0.846 0.081 22.315);
  --ring: oklch(0.148 0.003 172.055);
  --chart-1: oklch(0.148 0.003 172.055);
  --chart-2: oklch(0.144 0.004 313.523);
  --chart-3: oklch(0.147 0.003 81.762);
  --chart-4: oklch(0.178 0.007 313.355);
  --chart-5: oklch(0.148 0.005 171.932);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.012 172.845);
  --foreground: oklch(0.987 0.003 172.478);
  --muted: oklch(0.182 0.026 312.7);
  --muted-foreground: oklch(0.673 0.039 313.254);
  --popover: oklch(0.099 0.012 172.845);
  --popover-foreground: oklch(0.987 0.003 172.478);
  --card: oklch(0.124 0.016 172.845);
  --card-foreground: oklch(0.993 0.002 172.527);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.148 0.003 172.055);
  --primary-foreground: oklch(0.728 0.02 171.739);
  --secondary: oklch(0.144 0.004 313.523);
  --secondary-foreground: oklch(0.703 0.026 313.375);
  --accent: oklch(0.147 0.003 81.762);
  --accent-foreground: oklch(0.725 0.016 81.491);
  --destructive: oklch(0.592 0.237 29.539);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.148 0.003 172.055);
  --chart-1: oklch(0.148 0.003 172.055);
  --chart-2: oklch(0.144 0.004 313.523);
  --chart-3: oklch(0.147 0.003 81.762);
  --chart-4: oklch(0.178 0.007 313.355);
  --chart-5: oklch(0.148 0.005 171.932);
}