Councilor for shadcn/ui

Councilor is a shadcn/ui theme built around a violet primary color (#9a7dd4) with purple accents (#c57dd4). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the violet primary (#9a7dd4) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#040307black
Foreground
#040208black
#ffffffwhite
Card
#f9f7fdghostwhite
#040307black
Card foreground
#040208black
#ffffffwhite
Popover
#f9f7fdghostwhite
#040307black
Popover foreground
#040208black
#ffffffwhite
Primary
#9a7dd4mediumpurple
#9a7dd4mediumpurple
Primary foreground
#000000black
#000000black
Secondary
#7d8bd4mediumpurple
#7d8bd4mediumpurple
Secondary foreground
#080a17black
#080a17black
Muted
#f0f1f4whitesmoke
#0b0b0fblack
Muted foreground
#545763dimgray
#9c9eabdarkgray
Accent
#c57dd4orchid
#c57dd4orchid
Accent foreground
#140817black
#140817black
Destructive
#95300esaddlebrown
#d24314chocolate
Destructive foreground
#fce2damistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9a7dd4mediumpurple
#9a7dd4mediumpurple

Contrast

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

Light mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button6.24:1AA
Secondary button6.12:1AA
Muted text6.37:1AA
Accent6.73:1AA
Destructive6.28:1AA
Dark mode
Text on background20.54:1AAA
Text on card20.54:1AAA
Primary button6.24:1AA
Secondary button6.12:1AA
Muted text7.37:1AAA
Accent6.73:1AA
Destructive4.60:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.008 301.369);
  --foreground: oklch(0.1 0.021 302.008);
  --muted: oklch(0.958 0.004 277.198);
  --muted-foreground: oklch(0.459 0.02 276.616);
  --popover: oklch(0.98 0.008 301.369);
  --popover-foreground: oklch(0.1 0.021 302.008);
  --card: oklch(0.98 0.008 301.369);
  --card-foreground: oklch(0.1 0.021 302.008);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.652 0.129 298.103);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.656 0.109 274.398);
  --secondary-foreground: oklch(0.15 0.028 273.427);
  --accent: oklch(0.696 0.145 320.76);
  --accent-foreground: oklch(0.161 0.037 320.842);
  --destructive: oklch(0.456 0.143 36.981);
  --destructive-foreground: oklch(0.932 0.03 39.339);
  --ring: oklch(0.652 0.129 298.103);
  --chart-1: oklch(0.652 0.129 298.103);
  --chart-2: oklch(0.656 0.109 274.398);
  --chart-3: oklch(0.696 0.145 320.76);
  --chart-4: oklch(0.687 0.098 274.854);
  --chart-5: oklch(0.648 0.136 297.851);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.014 301.833);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.153 0.007 276.595);
  --muted-foreground: oklch(0.702 0.018 276.894);
  --popover: oklch(0.105 0.014 301.833);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.105 0.014 301.833);
  --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.652 0.129 298.103);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.656 0.109 274.398);
  --secondary-foreground: oklch(0.15 0.028 273.427);
  --accent: oklch(0.696 0.145 320.76);
  --accent-foreground: oklch(0.161 0.037 320.842);
  --destructive: oklch(0.583 0.187 36.599);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.652 0.129 298.103);
  --chart-1: oklch(0.652 0.129 298.103);
  --chart-2: oklch(0.656 0.109 274.398);
  --chart-3: oklch(0.696 0.145 320.76);
  --chart-4: oklch(0.687 0.098 274.854);
  --chart-5: oklch(0.648 0.136 297.851);
}