Tepid for shadcn/ui

Tepid is a shadcn/ui theme built around a muted deep blue primary color (#202c32) with muted deep orange accents (#322620). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the muted deep blue primary (#202c32) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#030607black
Foreground
#030d11black
#fcfdfdwhite
Card
#f3f9fcaliceblue
#04090bblack
Card foreground
#02090dblack
#ffffffwhite
Popover
#f7fbfdghostwhite
#030607black
Popover foreground
#030d11black
#fcfdfdwhite
Primary
#202c32darkslategray
#202c32darkslategray
Primary foreground
#b4c6cflightsteelblue
#b4c6cflightsteelblue
Secondary
#322620darkslategray
#322620darkslategray
Secondary foreground
#cfbdb4silver
#cfbdb4silver
Muted
#f1e8e4linen
#1b120eblack
Muted foreground
#535150darkslategray
#afadacdarkgray
Accent
#322620darkslategray
#322620darkslategray
Accent foreground
#cfbdb4silver
#cfbdb4silver
Destructive
#d42811firebrick
#ee462ftomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#202c32darkslategray
#202c32darkslategray

Contrast

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

Light mode
Text on background18.84:1AAA
Text on card18.84:1AAA
Primary button8.14:1AAA
Secondary button8.10:1AAA
Muted text6.55:1AA
Accent8.10:1AAA
Destructive5.09:1AA
Dark mode
Text on background19.96:1AAA
Text on card20.02:1AAA
Primary button8.14:1AAA
Secondary button8.10:1AAA
Muted text8.23:1AAA
Accent8.10:1AAA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.005 228.816);
  --foreground: oklch(0.149 0.02 226.501);
  --muted: oklch(0.938 0.012 48.602);
  --muted-foreground: oklch(0.437 0.003 48.656);
  --popover: oklch(0.985 0.005 228.816);
  --popover-foreground: oklch(0.149 0.02 226.501);
  --card: oklch(0.978 0.007 228.85);
  --card-foreground: oklch(0.134 0.017 222.79);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.284 0.02 229.925);
  --primary-foreground: oklch(0.817 0.023 229.153);
  --secondary: oklch(0.28 0.021 47.946);
  --secondary-foreground: oklch(0.812 0.024 48.409);
  --accent: oklch(0.28 0.021 47.946);
  --accent-foreground: oklch(0.812 0.024 48.409);
  --destructive: oklch(0.563 0.209 30.972);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.284 0.02 229.925);
  --chart-1: oklch(0.284 0.02 229.925);
  --chart-2: oklch(0.28 0.021 47.946);
  --chart-3: oklch(0.28 0.021 47.946);
  --chart-4: oklch(0.311 0.024 47.914);
  --chart-5: oklch(0.285 0.022 230.13);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.117 0.01 223.639);
  --foreground: oklch(0.993 0.001 228.768);
  --muted: oklch(0.193 0.017 47.798);
  --muted-foreground: oklch(0.749 0.003 48.702);
  --popover: oklch(0.117 0.01 223.639);
  --popover-foreground: oklch(0.993 0.001 228.768);
  --card: oklch(0.134 0.011 223.974);
  --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.284 0.02 229.925);
  --primary-foreground: oklch(0.817 0.023 229.153);
  --secondary: oklch(0.28 0.021 47.946);
  --secondary-foreground: oklch(0.812 0.024 48.409);
  --accent: oklch(0.28 0.021 47.946);
  --accent-foreground: oklch(0.812 0.024 48.409);
  --destructive: oklch(0.635 0.209 30.885);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.284 0.02 229.925);
  --chart-1: oklch(0.284 0.02 229.925);
  --chart-2: oklch(0.28 0.021 47.946);
  --chart-3: oklch(0.28 0.021 47.946);
  --chart-4: oklch(0.311 0.024 47.914);
  --chart-5: oklch(0.285 0.022 230.13);
}