Kit for shadcn/ui

Kit is a shadcn/ui theme built around a deep violet primary color (#1a0b28) with muted light violet accents (#c4b6d2). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the deep violet primary (#1a0b28) on a neutral background (#050307).

Color palette

TokenLightDark
Background
#fcfbfewhite
#050307black
Foreground
#0d0515black
#faf8fcghostwhite
Card
#faf8fcghostwhite
#08050ablack
Card foreground
#0a0410black
#fcfcfdwhite
Popover
#fcfbfewhite
#050307black
Popover foreground
#0d0515black
#faf8fcghostwhite
Primary
#1a0b28black
#1a0b28black
Primary foreground
#b388ddmediumpurple
#b388ddmediumpurple
Secondary
#d6d0dclightgrey
#333234darkslategray
Secondary foreground
#3d3446darkslategray
#cccbcdlightgrey
Muted
#ede9f2lavender
#120d16black
Muted foreground
#453c4edarkslategray
#bab1c3silver
Accent
#c4b6d2silver
#403946darkslategray
Accent foreground
#2b2136darkslategray
#d9d5ddgainsboro
Destructive
#b52e0dfirebrick
#ef4115orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1a0b28black
#1a0b28black

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.11:1AAA
Primary button6.66:1AA
Secondary button7.83:1AAA
Muted text8.71:1AAA
Accent8.01:1AAA
Destructive6.22:1AA
Dark mode
Text on background19.43:1AAA
Text on card19.77:1AAA
Primary button6.66:1AA
Secondary button7.89:1AAA
Muted text9.26:1AAA
Accent7.64:1AAA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 308.422);
  --foreground: oklch(0.139 0.037 306.752);
  --muted: oklch(0.939 0.013 308.309);
  --muted-foreground: oklch(0.372 0.032 307.498);
  --popover: oklch(0.99 0.003 308.422);
  --popover-foreground: oklch(0.139 0.037 306.752);
  --card: oklch(0.981 0.007 308.383);
  --card-foreground: oklch(0.128 0.032 308.25);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.189 0.057 304.564);
  --primary-foreground: oklch(0.699 0.13 306.321);
  --secondary: oklch(0.866 0.018 308.231);
  --secondary-foreground: oklch(0.342 0.034 307.364);
  --accent: oklch(0.798 0.042 307.877);
  --accent-foreground: oklch(0.269 0.04 306.768);
  --destructive: oklch(0.511 0.176 33.943);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.189 0.057 304.564);
  --chart-1: oklch(0.189 0.057 304.564);
  --chart-2: oklch(0.866 0.018 308.231);
  --chart-3: oklch(0.798 0.042 307.877);
  --chart-4: oklch(0.892 0.014 308.28);
  --chart-5: oklch(0.188 0.06 304.284);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.014 309.399);
  --foreground: oklch(0.982 0.005 308.405);
  --muted: oklch(0.171 0.019 307.189);
  --muted-foreground: oklch(0.774 0.027 308.075);
  --popover: oklch(0.107 0.014 309.399);
  --popover-foreground: oklch(0.982 0.005 308.405);
  --card: oklch(0.123 0.016 309.393);
  --card-foreground: oklch(0.991 0.002 308.433);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.189 0.057 304.564);
  --primary-foreground: oklch(0.699 0.13 306.321);
  --secondary: oklch(0.319 0.004 308.327);
  --secondary-foreground: oklch(0.843 0.003 308.421);
  --accent: oklch(0.358 0.023 307.74);
  --accent-foreground: oklch(0.878 0.011 308.319);
  --destructive: oklch(0.629 0.216 33.993);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.189 0.057 304.564);
  --chart-1: oklch(0.189 0.057 304.564);
  --chart-2: oklch(0.319 0.004 308.327);
  --chart-3: oklch(0.358 0.023 307.74);
  --chart-4: oklch(0.348 0.004 308.323);
  --chart-5: oklch(0.188 0.06 304.284);
}