Share for shadcn/ui

Share is a shadcn/ui theme built around a light green primary color (#b0deab) with muted light green accents (#cfd9ce). The light mode uses a neutral background (#fbfefb). Dark mode keeps the light green primary (#b0deab) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#fbfefbwhite
#020401black
Foreground
#061604black
#f7f8f6whitesmoke
Card
#fbfefbwhite
#020401black
Card foreground
#061604black
#f7f8f6whitesmoke
Popover
#fbfefbwhite
#020401black
Popover foreground
#061604black
#f7f8f6whitesmoke
Primary
#b0deabsilver
#b0deabsilver
Primary foreground
#1c3e18darkgreen
#1c3e18darkgreen
Secondary
#cfd9celightgrey
#141a14black
Secondary foreground
#354233darkslategray
#a6bca4darkgray
Muted
#f0f5efwhitesmoke
#0a100ablack
Muted foreground
#666666dimgray
#999999darkgray
Accent
#cfd9celightgrey
#141a14black
Accent foreground
#354233darkslategray
#a6bca4darkgray
Destructive
#aa1808firebrick
#ea210bred
Destructive foreground
#fee9e7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b0deabsilver
#b0deabsilver

Contrast

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

Light mode
Text on background18.38:1AAA
Text on card18.38:1AAA
Primary button7.92:1AAA
Secondary button7.33:1AAA
Muted text5.20:1AA
Accent7.33:1AAA
Destructive6.31:1AA
Dark mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button7.92:1AAA
Secondary button8.68:1AAA
Muted text6.75:1AA
Accent8.68:1AAA
Destructive4.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 142.607);
  --foreground: oklch(0.178 0.044 140.918);
  --muted: oklch(0.965 0.01 142.585);
  --muted-foreground: oklch(0.51 0 171.87);
  --popover: oklch(0.994 0.005 142.607);
  --popover-foreground: oklch(0.178 0.044 140.918);
  --card: oklch(0.994 0.005 142.607);
  --card-foreground: oklch(0.178 0.044 140.918);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.855 0.085 142.216);
  --primary-foreground: oklch(0.329 0.075 141.751);
  --secondary: oklch(0.875 0.019 142.54);
  --secondary-foreground: oklch(0.363 0.031 142.271);
  --accent: oklch(0.875 0.019 142.54);
  --accent-foreground: oklch(0.363 0.031 142.271);
  --destructive: oklch(0.474 0.181 30.486);
  --destructive-foreground: oklch(0.95 0.023 25.204);
  --ring: oklch(0.855 0.085 142.216);
  --chart-1: oklch(0.855 0.085 142.216);
  --chart-2: oklch(0.875 0.019 142.54);
  --chart-3: oklch(0.875 0.019 142.54);
  --chart-4: oklch(0.898 0.015 142.557);
  --chart-5: oklch(0.858 0.091 142.19);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.015 141.185);
  --foreground: oklch(0.978 0.003 142.614);
  --muted: oklch(0.164 0.015 142.238);
  --muted-foreground: oklch(0.683 0 180);
  --popover: oklch(0.097 0.015 141.185);
  --popover-foreground: oklch(0.978 0.003 142.614);
  --card: oklch(0.097 0.015 141.185);
  --card-foreground: oklch(0.978 0.003 142.614);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.855 0.085 142.216);
  --primary-foreground: oklch(0.329 0.075 141.751);
  --secondary: oklch(0.211 0.016 142.309);
  --secondary-foreground: oklch(0.772 0.041 142.411);
  --accent: oklch(0.211 0.016 142.309);
  --accent-foreground: oklch(0.772 0.041 142.411);
  --destructive: oklch(0.598 0.232 30.402);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.855 0.085 142.216);
  --chart-1: oklch(0.855 0.085 142.216);
  --chart-2: oklch(0.211 0.016 142.309);
  --chart-3: oklch(0.211 0.016 142.309);
  --chart-4: oklch(0.246 0.021 142.278);
  --chart-5: oklch(0.858 0.091 142.19);
}