Long for shadcn/ui

Long is a shadcn/ui theme built around a green primary color (#96d38d) with muted light green accents (#cedccb). The light mode uses a neutral background (#fbfefb). Dark mode keeps the green primary (#96d38d) on a green-tinted background (#061005).

Color palette

TokenLightDark
Background
#fbfefbwhite
#061005black
Foreground
#000000black
#fcfdfcwhite
Card
#fbfefbwhite
#061005black
Card foreground
#000000black
#fcfdfcwhite
Popover
#fbfefbwhite
#061005black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#96d38ddarkseagreen
#96d38ddarkseagreen
Primary foreground
#10210dblack
#10210dblack
Secondary
#e3e8e3gainsboro
#192018black
Secondary foreground
#465544darkslategray
#adbfabdarkgray
Muted
#d2e2d0lightgrey
#202f1ddarkslategray
Muted foreground
#555f53dimgray
#a1aca0darkgray
Accent
#cedccblightgrey
#253423darkslategray
Accent foreground
#324630darkslategray
#bccfb9silver
Destructive
#992505saddlebrown
#e43707orangered
Destructive foreground
#fedcd2blanchedalmond
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#96d38ddarkseagreen
#96d38ddarkseagreen

Contrast

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

Light mode
Text on background20.69:1AAA
Text on card20.69:1AAA
Primary button9.62:1AAA
Secondary button6.41:1AA
Muted text4.92:1AA
Accent7.15:1AAA
Destructive6.23:1AA
Dark mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button9.62:1AAA
Secondary button8.57:1AAA
Muted text5.98:1AA
Accent8.03:1AAA
Destructive4.34:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 141.577);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.896 0.03 141.498);
  --muted-foreground: oklch(0.474 0.024 141.45);
  --popover: oklch(0.994 0.005 141.577);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.005 141.577);
  --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.807 0.114 141.212);
  --primary-foreground: oklch(0.226 0.044 141.109);
  --secondary: oklch(0.927 0.009 141.565);
  --secondary-foreground: oklch(0.431 0.033 141.379);
  --accent: oklch(0.879 0.027 141.505);
  --accent-foreground: oklch(0.37 0.045 141.26);
  --destructive: oklch(0.451 0.157 34.4);
  --destructive-foreground: oklch(0.92 0.04 35.944);
  --ring: oklch(0.807 0.114 141.212);
  --chart-1: oklch(0.807 0.114 141.212);
  --chart-2: oklch(0.927 0.009 141.565);
  --chart-3: oklch(0.879 0.027 141.505);
  --chart-4: oklch(0.949 0.006 141.574);
  --chart-5: oklch(0.811 0.121 141.193);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.03 140.172);
  --foreground: oklch(0.993 0.001 141.588);
  --muted: oklch(0.287 0.039 141.223);
  --muted-foreground: oklch(0.732 0.021 141.51);
  --popover: oklch(0.158 0.03 140.172);
  --popover-foreground: oklch(0.993 0.001 141.588);
  --card: oklch(0.158 0.03 140.172);
  --card-foreground: oklch(0.993 0.001 141.588);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.807 0.114 141.212);
  --primary-foreground: oklch(0.226 0.044 141.109);
  --secondary: oklch(0.234 0.018 141.378);
  --secondary-foreground: oklch(0.786 0.035 141.467);
  --accent: oklch(0.305 0.035 141.278);
  --accent-foreground: oklch(0.835 0.037 141.467);
  --destructive: oklch(0.601 0.214 33.804);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.807 0.114 141.212);
  --chart-1: oklch(0.807 0.114 141.212);
  --chart-2: oklch(0.234 0.018 141.378);
  --chart-3: oklch(0.305 0.035 141.278);
  --chart-4: oklch(0.268 0.022 141.363);
  --chart-5: oklch(0.811 0.121 141.193);
}