Simple Dark for shadcn/ui

Simple Dark is a shadcn/ui theme built around a vivid cyan primary color (#00bfff) with muted blue accents (#464d53). The light mode uses a blue-tinted background (#232629). Dark mode keeps the vivid cyan primary (#00bfff) on a blue-tinted background (#232629).

Color palette

TokenLightDark
Background
#232629darkslategray
#232629darkslategray
Foreground
#dededegainsboro
#dededegainsboro
Card
#1e2124black
#1e2124black
Card foreground
#ebebeblinen
#ebebeblinen
Popover
#1c1f21black
#1c1f21black
Popover foreground
#f7f7f7whitesmoke
#f7f7f7whitesmoke
Primary
#00bfffdeepskyblue
#00bfffdeepskyblue
Primary foreground
#002633black
#002633black
Secondary
#2d4953darkslategray
#2d4953darkslategray
Secondary foreground
#cddee4gainsboro
#cddee4gainsboro
Muted
#2b3036darkslategray
#2b3036darkslategray
Muted foreground
#a6b0b9darkgray
#a6b0b9darkgray
Accent
#464d53darkslategray
#464d53darkslategray
Accent foreground
#e3e5e8gainsboro
#e3e5e8gainsboro
Destructive
#f0553dtomato
#f0553dtomato
Destructive foreground
#000000black
#000000black
Border
#333333darkslategray
#333333darkslategray
Input
#3b3b3bdarkslategray
#3b3b3bdarkslategray
Ring
#00bfffdeepskyblue
#00bfffdeepskyblue

Contrast

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

Light mode
Text on background11.26:1AAA
Text on card13.53:1AAA
Primary button7.48:1AAA
Secondary button6.90:1AA
Muted text6.01:1AA
Accent6.83:1AA
Destructive6.06:1AA
Dark mode
Text on background11.26:1AAA
Text on card13.53:1AAA
Primary button7.48:1AAA
Secondary button6.90:1AA
Muted text6.01:1AA
Accent6.83:1AA
Destructive6.06:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.268 0.007 248.098);
  --foreground: oklch(0.9 0 188.746);
  --muted: oklch(0.308 0.013 248.257);
  --muted-foreground: oklch(0.753 0.017 248.058);
  --popover: oklch(0.236 0.006 248.081);
  --popover-foreground: oklch(0.977 0 180);
  --card: oklch(0.247 0.006 248.087);
  --card-foreground: oklch(0.939 0 180);
  --border: oklch(0.321 0 180);
  --input: oklch(0.351 0 167.471);
  --primary: oklch(0.756 0.153 231.503);
  --primary-foreground: oklch(0.251 0.048 225.292);
  --secondary: oklch(0.388 0.038 221.061);
  --secondary-foreground: oklch(0.891 0.02 219.695);
  --accent: oklch(0.415 0.013 248.14);
  --accent-foreground: oklch(0.922 0.004 247.862);
  --destructive: oklch(0.655 0.196 31.419);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.756 0.153 231.503);
  --chart-1: oklch(0.756 0.153 231.503);
  --chart-2: oklch(0.388 0.038 221.061);
  --chart-3: oklch(0.415 0.013 248.14);
  --chart-4: oklch(0.419 0.042 221.108);
  --chart-5: oklch(0.762 0.156 231.962);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.268 0.007 248.098);
  --foreground: oklch(0.9 0 188.746);
  --muted: oklch(0.308 0.013 248.257);
  --muted-foreground: oklch(0.753 0.017 248.058);
  --popover: oklch(0.236 0.006 248.081);
  --popover-foreground: oklch(0.977 0 180);
  --card: oklch(0.247 0.006 248.087);
  --card-foreground: oklch(0.939 0 180);
  --border: oklch(0.321 0 180);
  --input: oklch(0.351 0 167.471);
  --primary: oklch(0.756 0.153 231.503);
  --primary-foreground: oklch(0.251 0.048 225.292);
  --secondary: oklch(0.388 0.038 221.061);
  --secondary-foreground: oklch(0.891 0.02 219.695);
  --accent: oklch(0.415 0.013 248.14);
  --accent-foreground: oklch(0.922 0.004 247.862);
  --destructive: oklch(0.655 0.196 31.419);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.756 0.153 231.503);
  --chart-1: oklch(0.756 0.153 231.503);
  --chart-2: oklch(0.388 0.038 221.061);
  --chart-3: oklch(0.415 0.013 248.14);
  --chart-4: oklch(0.419 0.042 221.108);
  --chart-5: oklch(0.762 0.156 231.962);
}