Eleventh for shadcn/ui

Eleventh is a shadcn/ui theme built around a deep green primary color (#343b0c) with deep purple accents (#3b0c34). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#343b0c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#f9faf4whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#fbfcf8snow
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#fbfcf8snow
Primary
#343b0cdarkgreen
#343b0cdarkgreen
Primary foreground
#c0d73cyellowgreen
#c0d73cyellowgreen
Secondary
#0c343bdarkslategray
#0c343bdarkslategray
Secondary foreground
#3cc0d7mediumturquoise
#3cc0d7mediumturquoise
Muted
#e1e4e5gainsboro
#1a1d1eblack
Muted foreground
#4f6164dimgray
#9badb0darkgray
Accent
#3b0c34midnightblue
#3b0c34midnightblue
Accent foreground
#e891dbplum
#e891dbplum
Destructive
#b04911sienna
#eb7333tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#343b0cdarkgreen
#343b0cdarkgreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.30:1AAA
Secondary button6.17:1AA
Muted text5.10:1AA
Accent7.36:1AAA
Destructive5.50:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.07:1AAA
Primary button7.30:1AAA
Secondary button6.17:1AA
Muted text7.23:1AAA
Accent7.36:1AAA
Destructive7.03:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.917 0.004 209.458);
  --muted-foreground: oklch(0.478 0.023 209.465);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --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.336 0.068 117.603);
  --primary-foreground: oklch(0.835 0.174 117.841);
  --secondary: oklch(0.302 0.045 211.659);
  --secondary-foreground: oklch(0.747 0.115 212.022);
  --accent: oklch(0.256 0.091 334.546);
  --accent-foreground: oklch(0.77 0.141 332.429);
  --destructive: oklch(0.535 0.148 43.567);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.336 0.068 117.603);
  --chart-1: oklch(0.336 0.068 117.603);
  --chart-2: oklch(0.302 0.045 211.659);
  --chart-3: oklch(0.256 0.091 334.546);
  --chart-4: oklch(0.342 0.052 211.904);
  --chart-5: oklch(0.34 0.07 117.745);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.008 113.452);
  --muted: oklch(0.229 0.005 209.43);
  --muted-foreground: oklch(0.735 0.021 209.43);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.989 0.005 113.403);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.989 0.005 113.403);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.336 0.068 117.603);
  --primary-foreground: oklch(0.835 0.174 117.841);
  --secondary: oklch(0.302 0.045 211.659);
  --secondary-foreground: oklch(0.747 0.115 212.022);
  --accent: oklch(0.256 0.091 334.546);
  --accent-foreground: oklch(0.77 0.141 332.429);
  --destructive: oklch(0.687 0.166 45.855);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.336 0.068 117.603);
  --chart-1: oklch(0.336 0.068 117.603);
  --chart-2: oklch(0.302 0.045 211.659);
  --chart-3: oklch(0.256 0.091 334.546);
  --chart-4: oklch(0.342 0.052 211.904);
  --chart-5: oklch(0.34 0.07 117.745);
}