Voter for shadcn/ui

Voter is a shadcn/ui theme built around a muted light teal primary color (#cee3de) with muted light cyan accents (#cedee3). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted light teal primary (#cee3de) on a neutral background (#020807).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#020807black
Foreground
#010907black
#fcfdfdwhite
Card
#fcfdfdwhite
#020807black
Card foreground
#010907black
#fcfdfdwhite
Popover
#fcfdfdwhite
#020807black
Popover foreground
#010907black
#fcfdfdwhite
Primary
#cee3degainsboro
#cee3degainsboro
Primary foreground
#2e5249darkslategray
#2e5249darkslategray
Secondary
#cee3d4lightgrey
#cee3d4lightgrey
Secondary foreground
#2e5237darkslategray
#2e5237darkslategray
Muted
#e9edealinen
#121613black
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#cedee3gainsboro
#cedee3gainsboro
Accent foreground
#2e4852darkslategray
#2e4852darkslategray
Destructive
#db0000red
#ff2929crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cee3degainsboro
#cee3degainsboro

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button6.49:1AA
Secondary button6.56:1AA
Muted text5.22:1AA
Accent7.00:1AAA
Destructive5.22:1AA
Dark mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button6.49:1AA
Secondary button6.56:1AA
Muted text6.79:1AA
Accent7.00:1AAA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 180.903);
  --foreground: oklch(0.127 0.018 180.946);
  --muted: oklch(0.941 0.006 154.417);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(0.994 0.002 180.903);
  --popover-foreground: oklch(0.127 0.018 180.946);
  --card: oklch(0.994 0.002 180.903);
  --card-foreground: oklch(0.127 0.018 180.946);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.9 0.024 180.201);
  --primary-foreground: oklch(0.407 0.044 177.352);
  --secondary: oklch(0.897 0.031 153.9);
  --secondary-foreground: oklch(0.402 0.061 151.427);
  --accent: oklch(0.89 0.019 221.506);
  --accent-foreground: oklch(0.385 0.036 222.824);
  --destructive: oklch(0.56 0.23 29.234);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.9 0.024 180.201);
  --chart-1: oklch(0.9 0.024 180.201);
  --chart-2: oklch(0.897 0.031 153.9);
  --chart-3: oklch(0.89 0.019 221.506);
  --chart-4: oklch(0.918 0.025 154.042);
  --chart-5: oklch(0.902 0.026 180.12);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.015 180.948);
  --foreground: oklch(0.994 0.002 180.902);
  --muted: oklch(0.197 0.009 153.725);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0.125 0.015 180.948);
  --popover-foreground: oklch(0.994 0.002 180.902);
  --card: oklch(0.125 0.015 180.948);
  --card-foreground: oklch(0.994 0.002 180.902);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.9 0.024 180.201);
  --primary-foreground: oklch(0.407 0.044 177.352);
  --secondary: oklch(0.897 0.031 153.9);
  --secondary-foreground: oklch(0.402 0.061 151.427);
  --accent: oklch(0.89 0.019 221.506);
  --accent-foreground: oklch(0.385 0.036 222.824);
  --destructive: oklch(0.642 0.244 27.641);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.9 0.024 180.201);
  --chart-1: oklch(0.9 0.024 180.201);
  --chart-2: oklch(0.897 0.031 153.9);
  --chart-3: oklch(0.89 0.019 221.506);
  --chart-4: oklch(0.918 0.025 154.042);
  --chart-5: oklch(0.902 0.026 180.12);
}