Shareholder for shadcn/ui

Shareholder is a shadcn/ui theme built around a muted light green primary color (#ecf3ef) with muted light orange accents (#f3efec). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the muted light green primary (#ecf3ef) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#010402black
Foreground
#000000black
#fcfdfcwhite
Card
#f8fcfamintcream
#030705black
Card foreground
#000000black
#ffffffwhite
Popover
#f8fcfamintcream
#030705black
Popover foreground
#000000black
#ffffffwhite
Primary
#ecf3efwhitesmoke
#ecf3efwhitesmoke
Primary foreground
#1b2c23darkslategray
#1b2c23darkslategray
Secondary
#efecf3whitesmoke
#efecf3whitesmoke
Secondary foreground
#55436bdarkslateblue
#55436bdarkslateblue
Muted
#dedae1gainsboro
#211e25black
Muted foreground
#51495adarkslategray
#ada5b6darkgray
Accent
#f3efeclinen
#f3efeclinen
Accent foreground
#6b5543darkolivegreen
#6b5543darkolivegreen
Destructive
#670b09maroon
#e11714crimson
Destructive foreground
#f8acablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ecf3efwhitesmoke
#ecf3efwhitesmoke

Contrast

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

Light mode
Text on background20.63:1AAA
Text on card20.26:1AAA
Primary button13.04:1AAA
Secondary button7.49:1AAA
Muted text6.21:1AA
Accent6.13:1AA
Destructive7.04:1AAA
Dark mode
Text on background20.21:1AAA
Text on card20.23:1AAA
Primary button13.04:1AAA
Secondary button7.49:1AAA
Muted text6.94:1AA
Accent6.13:1AA
Destructive4.83:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 163.384);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.894 0.01 306.968);
  --muted-foreground: oklch(0.421 0.028 306.288);
  --popover: oklch(0.987 0.005 163.322);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.005 163.322);
  --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.958 0.009 163.207);
  --primary-foreground: oklch(0.275 0.027 160.608);
  --secondary: oklch(0.948 0.01 306.983);
  --secondary-foreground: oklch(0.419 0.068 305.054);
  --accent: oklch(0.956 0.006 64.01);
  --accent-foreground: oklch(0.467 0.04 62.781);
  --destructive: oklch(0.331 0.125 28.131);
  --destructive-foreground: oklch(0.816 0.09 20.279);
  --ring: oklch(0.958 0.009 163.207);
  --chart-1: oklch(0.958 0.009 163.207);
  --chart-2: oklch(0.948 0.01 306.983);
  --chart-3: oklch(0.956 0.006 64.01);
  --chart-4: oklch(0.974 0.005 307.049);
  --chart-5: oklch(0.959 0.01 163.176);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.011 163.5);
  --foreground: oklch(0.993 0.001 163.428);
  --muted: oklch(0.24 0.015 306.369);
  --muted-foreground: oklch(0.734 0.025 306.701);
  --popover: oklch(0.122 0.013 163.5);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.013 163.5);
  --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.958 0.009 163.207);
  --primary-foreground: oklch(0.275 0.027 160.608);
  --secondary: oklch(0.948 0.01 306.983);
  --secondary-foreground: oklch(0.419 0.068 305.054);
  --accent: oklch(0.956 0.006 64.01);
  --accent-foreground: oklch(0.467 0.04 62.781);
  --destructive: oklch(0.578 0.228 28.771);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.958 0.009 163.207);
  --chart-1: oklch(0.958 0.009 163.207);
  --chart-2: oklch(0.948 0.01 306.983);
  --chart-3: oklch(0.956 0.006 64.01);
  --chart-4: oklch(0.974 0.005 307.049);
  --chart-5: oklch(0.959 0.01 163.176);
}