Democracy for shadcn/ui

Democracy is a shadcn/ui theme built around a vivid cyan primary color (#0ca7e4) with vivid orange accents (#e4490c). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid cyan primary (#0ca7e4) on a cyan-tinted background (#040d10).

Color palette

TokenLightDark
Background
#ffffffwhite
#040d10black
Foreground
#051014black
#f4f9famintcream
Card
#ffffffwhite
#040d10black
Card foreground
#051014black
#f4f9famintcream
Popover
#ffffffwhite
#040d10black
Popover foreground
#051014black
#f4f9famintcream
Primary
#0ca7e4deepskyblue
#0ca7e4deepskyblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e4490corangered
#e4490corangered
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f5f1efwhitesmoke
#100b0ablack
Muted foreground
#524e4cdarkslategray
#b3afaddarkgray
Accent
#e4490corangered
#e4490corangered
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ca4802chocolate
#f75802orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0ca7e4deepskyblue
#0ca7e4deepskyblue

Contrast

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

Light mode
Text on background19.25:1AAA
Text on card19.25:1AAA
Primary button2.75:1Fail
Secondary button3.99:1AA Large
Muted text7.33:1AAA
Accent3.99:1AA Large
Destructive4.73:1AA
Dark mode
Text on background18.49:1AAA
Text on card18.49:1AAA
Primary button2.75:1Fail
Secondary button3.99:1AA Large
Muted text8.97:1AAA
Accent3.99:1AA Large
Destructive3.29:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.165 0.019 223.647);
  --muted: oklch(0.961 0.005 43.08);
  --muted-foreground: oklch(0.427 0.007 42.993);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.165 0.019 223.647);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.165 0.019 223.647);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.686 0.142 234.147);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.619 0.2 37.478);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.619 0.2 37.478);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.575 0.177 40.72);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.686 0.142 234.147);
  --chart-1: oklch(0.686 0.142 234.147);
  --chart-2: oklch(0.619 0.2 37.478);
  --chart-3: oklch(0.619 0.2 37.478);
  --chart-4: oklch(0.648 0.21 37.394);
  --chart-5: oklch(0.691 0.145 234.682);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.15 0.016 221.773);
  --foreground: oklch(0.978 0.005 223.181);
  --muted: oklch(0.157 0.008 42.747);
  --muted-foreground: oklch(0.756 0.006 43.06);
  --popover: oklch(0.15 0.016 221.773);
  --popover-foreground: oklch(0.978 0.005 223.181);
  --card: oklch(0.15 0.016 221.773);
  --card-foreground: oklch(0.978 0.005 223.181);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.686 0.142 234.147);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.619 0.2 37.478);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.619 0.2 37.478);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.667 0.208 40.232);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.686 0.142 234.147);
  --chart-1: oklch(0.686 0.142 234.147);
  --chart-2: oklch(0.619 0.2 37.478);
  --chart-3: oklch(0.619 0.2 37.478);
  --chart-4: oklch(0.648 0.21 37.394);
  --chart-5: oklch(0.691 0.145 234.682);
}