Prudent for shadcn/ui

Prudent is a shadcn/ui theme built around a vivid cyan primary color (#037fb0) with vivid orange accents (#b03403). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the vivid cyan primary (#037fb0) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#020303black
Foreground
#061013black
#ffffffwhite
Card
#f3f9fcaliceblue
#030607black
Card foreground
#050c10black
#ffffffwhite
Popover
#f3f9fcaliceblue
#030607black
Popover foreground
#050c10black
#ffffffwhite
Primary
#037fb0darkcyan
#037fb0darkcyan
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#b03403firebrick
#b03403firebrick
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e2e0dfgainsboro
#201e1dblack
Muted foreground
#5d5b5bdimgray
#a4a3a2darkgray
Accent
#b03403firebrick
#b03403firebrick
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c52e0dfirebrick
#d8330eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#037fb0darkcyan
#037fb0darkcyan

Contrast

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

Light mode
Text on background18.50:1AAA
Text on card18.56:1AAA
Primary button4.51:1AA
Secondary button6.30:1AA
Muted text5.11:1AA
Accent6.30:1AA
Destructive5.58:1AA
Dark mode
Text on background20.66:1AAA
Text on card20.33:1AAA
Primary button4.51:1AA
Secondary button6.30:1AA
Muted text6.59:1AA
Accent6.30:1AA
Destructive4.78:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.005 223.184);
  --foreground: oklch(0.163 0.017 223.737);
  --muted: oklch(0.907 0.003 43.098);
  --muted-foreground: oklch(0.474 0.002 43.093);
  --popover: oklch(0.979 0.008 223.212);
  --popover-foreground: oklch(0.15 0.015 221.899);
  --card: oklch(0.979 0.008 223.212);
  --card-foreground: oklch(0.15 0.015 221.899);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.562 0.118 234.718);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.507 0.168 37.121);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.507 0.168 37.121);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.539 0.191 33.124);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.562 0.118 234.718);
  --chart-1: oklch(0.562 0.118 234.718);
  --chart-2: oklch(0.507 0.168 37.121);
  --chart-3: oklch(0.507 0.168 37.121);
  --chart-4: oklch(0.538 0.179 36.927);
  --chart-5: oklch(0.566 0.12 235.172);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.006 219.6);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.237 0.005 42.966);
  --muted-foreground: oklch(0.716 0.002 43.108);
  --popover: oklch(0.117 0.008 219.6);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.117 0.008 219.6);
  --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.562 0.118 234.718);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.507 0.168 37.121);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.507 0.168 37.121);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.577 0.206 33.056);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.562 0.118 234.718);
  --chart-1: oklch(0.562 0.118 234.718);
  --chart-2: oklch(0.507 0.168 37.121);
  --chart-3: oklch(0.507 0.168 37.121);
  --chart-4: oklch(0.538 0.179 36.927);
  --chart-5: oklch(0.566 0.12 235.172);
}