Shareholder for shadcn/ui

Shareholder is a shadcn/ui theme built around a muted teal primary color (#729d8e) with muted yellow accents (#9d8e72). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#729d8e) on a teal-tinted background (#050a09).

Color palette

TokenLightDark
Background
#ffffffwhite
#050a09black
Foreground
#010403black
#ffffffwhite
Card
#fcfcfcsnow
#070e0bblack
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#050a09black
Popover foreground
#010403black
#ffffffwhite
Primary
#729d8elightslategray
#729d8elightslategray
Primary foreground
#000000black
#000000black
Secondary
#8e729dlightslategray
#8e729dlightslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#efe9f2lavender
#130d16black
Muted foreground
#594f5fdimgray
#aba0b0darkgray
Accent
#9d8e72gray
#9d8e72gray
Accent foreground
#000000black
#000000black
Destructive
#8d2401darkred
#fc4103orangered
Destructive foreground
#fed1c2peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#729d8elightslategray
#729d8elightslategray

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.54:1AAA
Primary button6.90:1AA
Secondary button4.17:1AA Large
Muted text6.47:1AA
Accent6.55:1AA
Destructive6.30:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.53:1AAA
Primary button6.90:1AA
Secondary button4.17:1AA Large
Muted text7.63:1AAA
Accent6.55:1AA
Destructive3.55:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.011 174.815);
  --muted: oklch(0.94 0.014 314.754);
  --muted-foreground: oklch(0.443 0.028 314.517);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.098 0.011 174.815);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.659 0.052 172.044);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.594 0.072 314.228);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.653 0.044 84.482);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.428 0.146 35.936);
  --destructive-foreground: oklch(0.897 0.055 39.26);
  --ring: oklch(0.659 0.052 172.044);
  --chart-1: oklch(0.659 0.052 172.044);
  --chart-2: oklch(0.594 0.072 314.228);
  --chart-3: oklch(0.653 0.044 84.482);
  --chart-4: oklch(0.621 0.067 314.299);
  --chart-5: oklch(0.666 0.059 171.626);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.011 174.742);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.173 0.021 314.223);
  --muted-foreground: oklch(0.721 0.025 314.658);
  --popover: oklch(0.139 0.011 174.742);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.154 0.013 172.972);
  --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.659 0.052 172.044);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.594 0.072 314.228);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.653 0.044 84.482);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.652 0.23 34.686);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.659 0.052 172.044);
  --chart-1: oklch(0.659 0.052 172.044);
  --chart-2: oklch(0.594 0.072 314.228);
  --chart-3: oklch(0.653 0.044 84.482);
  --chart-4: oklch(0.621 0.067 314.299);
  --chart-5: oklch(0.666 0.059 171.626);
}