Guitarist for shadcn/ui

Guitarist is a shadcn/ui theme built around a muted green primary color (#b3b988) with muted purple accents (#b988b3). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the muted green primary (#b3b988) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfcf8snow
#000000black
Foreground
#080901black
#ffffffwhite
Card
#fbfcf8snow
#000000black
Card foreground
#080901black
#ffffffwhite
Popover
#fbfcf8snow
#000000black
Popover foreground
#080901black
#ffffffwhite
Primary
#b3b988darkkhaki
#b3b988darkkhaki
Primary foreground
#090a06black
#090a06black
Secondary
#88b3b9darkgray
#88b3b9darkgray
Secondary foreground
#06090ablack
#06090ablack
Muted
#d8dedfgainsboro
#202627darkslategray
Muted foreground
#435456darkslategray
#a9babcsilver
Accent
#b988b3rosybrown
#b988b3rosybrown
Accent foreground
#0a0609black
#0a0609black
Destructive
#e35102orangered
#f25602orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b3b988darkkhaki
#b3b988darkkhaki

Contrast

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

Light mode
Text on background19.41:1AAA
Text on card19.41:1AAA
Primary button9.68:1AAA
Secondary button8.78:1AAA
Muted text5.83:1AA
Accent6.95:1AA
Destructive3.85:1AA Large
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button9.68:1AAA
Secondary button8.78:1AAA
Muted text7.60:1AAA
Accent6.95:1AA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 111.879);
  --foreground: oklch(0.135 0.024 113.321);
  --muted: oklch(0.896 0.006 206.399);
  --muted-foreground: oklch(0.431 0.021 206.258);
  --popover: oklch(0.989 0.005 111.879);
  --popover-foreground: oklch(0.135 0.024 113.321);
  --card: oklch(0.989 0.005 111.879);
  --card-foreground: oklch(0.135 0.024 113.321);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.769 0.067 113.388);
  --primary-foreground: oklch(0.141 0.01 112.417);
  --secondary: oklch(0.739 0.047 206.263);
  --secondary-foreground: oklch(0.136 0.007 204.92);
  --accent: oklch(0.689 0.084 330.47);
  --accent-foreground: oklch(0.129 0.012 329.688);
  --destructive: oklch(0.627 0.194 40.425);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.769 0.067 113.388);
  --chart-1: oklch(0.769 0.067 113.388);
  --chart-2: oklch(0.739 0.047 206.263);
  --chart-3: oklch(0.689 0.084 330.47);
  --chart-4: oklch(0.76 0.043 206.256);
  --chart-5: oklch(0.777 0.074 113.544);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.264 0.008 206.292);
  --muted-foreground: oklch(0.776 0.018 206.319);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.769 0.067 113.388);
  --primary-foreground: oklch(0.141 0.01 112.417);
  --secondary: oklch(0.739 0.047 206.263);
  --secondary-foreground: oklch(0.136 0.007 204.92);
  --accent: oklch(0.689 0.084 330.47);
  --accent-foreground: oklch(0.129 0.012 329.688);
  --destructive: oklch(0.657 0.204 40.277);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.769 0.067 113.388);
  --chart-1: oklch(0.769 0.067 113.388);
  --chart-2: oklch(0.739 0.047 206.263);
  --chart-3: oklch(0.689 0.084 330.47);
  --chart-4: oklch(0.76 0.043 206.256);
  --chart-5: oklch(0.777 0.074 113.544);
}