Radar for shadcn/ui

Radar is a shadcn/ui theme built around a muted deep teal primary color (#304545) with muted deep yellow accents (#454530). The light mode uses a neutral background (#f6fdfd). Dark mode keeps the muted deep teal primary (#304545) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f6fdfdmintcream
#000000black
Foreground
#010404black
#f4fafamintcream
Card
#f2fcfcazure
#030303black
Card foreground
#000000black
#f8fcfcmintcream
Popover
#f6fdfdmintcream
#000000black
Popover foreground
#010404black
#f4fafamintcream
Primary
#304545darkslategray
#304545darkslategray
Primary foreground
#ccdbdblightgrey
#ccdbdblightgrey
Secondary
#453045darkslategray
#453045darkslategray
Secondary foreground
#dbccdblightgrey
#dbccdblightgrey
Muted
#e5dce5gainsboro
#231a23black
Muted foreground
#574c57dimgray
#b3a8b3darkgray
Accent
#454530darkslategray
#454530darkslategray
Accent foreground
#dbdbcclightgrey
#dbdbcclightgrey
Destructive
#cd200afirebrick
#f6523ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#304545darkslategray
#304545darkslategray

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card20.17:1AAA
Primary button7.11:1AAA
Secondary button7.75:1AAA
Muted text6.08:1AA
Accent7.00:1AAA
Destructive5.52:1AA
Dark mode
Text on background19.90:1AAA
Text on card20.01:1AAA
Primary button7.11:1AAA
Secondary button7.75:1AAA
Muted text7.37:1AAA
Accent7.00:1AAA
Destructive6.17:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 195.847);
  --foreground: oklch(0.101 0.013 194.303);
  --muted: oklch(0.904 0.016 325.221);
  --muted-foreground: oklch(0.431 0.023 325.47);
  --popover: oklch(0.99 0.007 195.847);
  --popover-foreground: oklch(0.101 0.013 194.303);
  --card: oklch(0.985 0.011 195.783);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.373 0.026 194.781);
  --primary-foreground: oklch(0.881 0.017 195.644);
  --secondary: oklch(0.342 0.046 325.97);
  --secondary-foreground: oklch(0.862 0.027 325.316);
  --accent: oklch(0.384 0.033 107.052);
  --accent-foreground: oklch(0.888 0.021 106.024);
  --destructive: oklch(0.544 0.207 30.832);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.373 0.026 194.781);
  --chart-1: oklch(0.373 0.026 194.781);
  --chart-2: oklch(0.342 0.046 325.97);
  --chart-3: oklch(0.384 0.033 107.052);
  --chart-4: oklch(0.37 0.051 325.988);
  --chart-5: oklch(0.378 0.03 194.627);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.006 195.862);
  --muted: oklch(0.233 0.022 325.728);
  --muted-foreground: oklch(0.744 0.021 325.29);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.982 0.006 195.862);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.988 0.004 195.899);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.373 0.026 194.781);
  --primary-foreground: oklch(0.881 0.017 195.644);
  --secondary: oklch(0.342 0.046 325.97);
  --secondary-foreground: oklch(0.862 0.027 325.316);
  --accent: oklch(0.384 0.033 107.052);
  --accent-foreground: oklch(0.888 0.021 106.024);
  --destructive: oklch(0.661 0.204 30.648);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.373 0.026 194.781);
  --chart-1: oklch(0.373 0.026 194.781);
  --chart-2: oklch(0.342 0.046 325.97);
  --chart-3: oklch(0.384 0.033 107.052);
  --chart-4: oklch(0.37 0.051 325.988);
  --chart-5: oklch(0.378 0.03 194.627);
}