Specialist for shadcn/ui

Specialist is a shadcn/ui theme built around a muted deep purple primary color (#0c070d) with muted deep pink accents (#0d070b). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the muted deep purple primary (#0c070d) on a purple-tinted background (#0d060e).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#0d060eblack
Foreground
#0b020dblack
#fdfcfdwhite
Card
#fbf8fcghostwhite
#0d060eblack
Card foreground
#0b020dblack
#fdfcfdwhite
Popover
#fbf8fcghostwhite
#0d060eblack
Popover foreground
#0b020dblack
#fdfcfdwhite
Primary
#0c070dblack
#0c070dblack
Primary foreground
#b48abcdarkgray
#b48abcdarkgray
Secondary
#09070dblack
#09070dblack
Secondary foreground
#9b8abcdarkgray
#9b8abcdarkgray
Muted
#d7d4ddgainsboro
#25222bdarkslategray
Muted foreground
#5c536edimgray
#9a91acdarkgray
Accent
#0d070bblack
#0d070bblack
Accent foreground
#bc8aabrosybrown
#bc8aabrosybrown
Destructive
#650606maroon
#f43e3etomato
Destructive foreground
#faa3a3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c070dblack
#0c070dblack

Contrast

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

Light mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button6.92:1AA
Secondary button6.43:1AA
Muted text4.92:1AA
Accent6.98:1AA
Destructive6.83:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button6.92:1AA
Secondary button6.43:1AA
Muted text5.24:1AA
Accent6.98:1AA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 320.54);
  --foreground: oklch(0.119 0.037 322.443);
  --muted: oklch(0.876 0.013 301.256);
  --muted-foreground: oklch(0.463 0.045 299.918);
  --popover: oklch(0.983 0.005 320.54);
  --popover-foreground: oklch(0.119 0.037 322.443);
  --card: oklch(0.983 0.005 320.54);
  --card-foreground: oklch(0.119 0.037 322.443);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.141 0.015 320.912);
  --primary-foreground: oklch(0.691 0.085 320.701);
  --secondary: oklch(0.137 0.013 301.031);
  --secondary-foreground: oklch(0.667 0.074 299.666);
  --accent: oklch(0.141 0.013 338.429);
  --accent-foreground: oklch(0.693 0.075 339.312);
  --destructive: oklch(0.323 0.126 28.195);
  --destructive-foreground: oklch(0.802 0.103 19.571);
  --ring: oklch(0.141 0.015 320.912);
  --chart-1: oklch(0.141 0.015 320.912);
  --chart-2: oklch(0.137 0.013 301.031);
  --chart-3: oklch(0.141 0.013 338.429);
  --chart-4: oklch(0.168 0.02 299.499);
  --chart-5: oklch(0.14 0.016 320.964);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.022 321.144);
  --foreground: oklch(0.992 0.002 320.534);
  --muted: oklch(0.258 0.018 300.393);
  --muted-foreground: oklch(0.672 0.041 300.513);
  --popover: oklch(0.138 0.022 321.144);
  --popover-foreground: oklch(0.992 0.002 320.534);
  --card: oklch(0.138 0.022 321.144);
  --card-foreground: oklch(0.992 0.002 320.534);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.141 0.015 320.912);
  --primary-foreground: oklch(0.691 0.085 320.701);
  --secondary: oklch(0.137 0.013 301.031);
  --secondary-foreground: oklch(0.667 0.074 299.666);
  --accent: oklch(0.141 0.013 338.429);
  --accent-foreground: oklch(0.693 0.075 339.312);
  --destructive: oklch(0.639 0.218 25.913);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.141 0.015 320.912);
  --chart-1: oklch(0.141 0.015 320.912);
  --chart-2: oklch(0.137 0.013 301.031);
  --chart-3: oklch(0.141 0.013 338.429);
  --chart-4: oklch(0.168 0.02 299.499);
  --chart-5: oklch(0.14 0.016 320.964);
}