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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 6.17:1 | AA |
| Muted text | 5.10:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 5.50:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 6.17:1 | AA |
| Muted text | 7.23:1 | AAA |
| Accent | 7.36:1 | AAA |
| Destructive | 7.03:1 | AAA |
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);
}