Linguist for shadcn/ui

Linguist is a shadcn/ui theme built around a muted light violet primary color (#c2bbc9) with muted light purple accents (#c9bbc8). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light violet primary (#c2bbc9) on a violet-tinted background (#08040b).

Color palette

TokenLightDark
Background
#ffffffwhite
#08040bblack
Foreground
#08030dblack
#f7f4fawhitesmoke
Card
#fcfcfcsnow
#0a050fblack
Card foreground
#050208black
#faf8fcghostwhite
Popover
#ffffffwhite
#08040bblack
Popover foreground
#08030dblack
#f7f4fawhitesmoke
Primary
#c2bbc9silver
#c2bbc9silver
Primary foreground
#29242ddarkslategray
#29242ddarkslategray
Secondary
#bbbbc9silver
#bbbbc9silver
Secondary foreground
#24242ddarkslategray
#24242ddarkslategray
Muted
#dadae2gainsboro
#1d1d25black
Muted foreground
#3e3d4cdarkslategray
#b3b3c2silver
Accent
#c9bbc8silver
#c9bbc8silver
Accent foreground
#2d242ddarkslategray
#2d242ddarkslategray
Destructive
#902204darkred
#fa5a2etomato
Destructive foreground
#fed4c8peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c2bbc9silver
#c2bbc9silver

Contrast

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

Light mode
Text on background20.40:1AAA
Text on card20.17:1AAA
Primary button8.12:1AAA
Secondary button8.11:1AAA
Muted text7.61:1AAA
Accent8.14:1AAA
Destructive6.38:1AA
Dark mode
Text on background18.67:1AAA
Text on card19.07:1AAA
Primary button8.12:1AAA
Secondary button8.11:1AAA
Muted text8.09:1AAA
Accent8.14:1AAA
Destructive6.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.114 0.03 310.678);
  --muted: oklch(0.89 0.012 286.927);
  --muted-foreground: oklch(0.367 0.026 285.817);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.114 0.03 310.678);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.1 0.026 311.101);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.802 0.02 308.861);
  --primary-foreground: oklch(0.27 0.018 308.442);
  --secondary: oklch(0.797 0.019 286.73);
  --secondary-foreground: oklch(0.266 0.017 285.975);
  --accent: oklch(0.807 0.024 326.287);
  --accent-foreground: oklch(0.275 0.021 326.636);
  --destructive: oklch(0.431 0.15 34.481);
  --destructive-foreground: oklch(0.902 0.05 35.952);
  --ring: oklch(0.802 0.02 308.861);
  --chart-1: oklch(0.802 0.02 308.861);
  --chart-2: oklch(0.797 0.019 286.73);
  --chart-3: oklch(0.807 0.024 326.287);
  --chart-4: oklch(0.823 0.016 286.802);
  --chart-5: oklch(0.799 0.026 308.788);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.022 310.353);
  --foreground: oklch(0.972 0.009 309.033);
  --muted: oklch(0.234 0.016 285.817);
  --muted-foreground: oklch(0.77 0.021 286.652);
  --popover: oklch(0.12 0.022 310.353);
  --popover-foreground: oklch(0.972 0.009 309.033);
  --card: oklch(0.132 0.025 308.918);
  --card-foreground: oklch(0.982 0.006 309.065);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.802 0.02 308.861);
  --primary-foreground: oklch(0.27 0.018 308.442);
  --secondary: oklch(0.797 0.019 286.73);
  --secondary-foreground: oklch(0.266 0.017 285.975);
  --accent: oklch(0.807 0.024 326.287);
  --accent-foreground: oklch(0.275 0.021 326.636);
  --destructive: oklch(0.675 0.203 35.807);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.802 0.02 308.861);
  --chart-1: oklch(0.802 0.02 308.861);
  --chart-2: oklch(0.797 0.019 286.73);
  --chart-3: oklch(0.807 0.024 326.287);
  --chart-4: oklch(0.823 0.016 286.802);
  --chart-5: oklch(0.799 0.026 308.788);
}