Length is a shadcn/ui theme built around a muted light green primary color (#cddbc2) with muted light green accents (#c2dbc4). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#cddbc2) on a green-tinted background (#070c03).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070c03black |
| Foreground | #020401black | #fafbf8snow |
| Card | #fcfcfcsnow | #091004black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #fcfcfcsnow | #091004black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #cddbc2lightgrey | #cddbc2lightgrey |
| Primary foreground | #334328darkslategray | #334328darkslategray |
| Secondary | #d9dbc2lightgrey | #d9dbc2lightgrey |
| Secondary foreground | #414328darkslategray | #414328darkslategray |
| Muted | #e7e8e3gainsboro | #1b1c17black |
| Muted foreground | #58594fdimgray | #afb0a6darkgray |
| Accent | #c2dbc4lightgrey | #c2dbc4lightgrey |
| Accent foreground | #28432adarkslategray | #28432adarkslategray |
| Destructive | #cc2f0ffirebrick | #e43411orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cddbc2lightgrey | #cddbc2lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 7.20:1 | AAA |
| Muted text | 5.76:1 | AA |
| Accent | 7.37:1 | AAA |
| Destructive | 5.28:1 | AA |
| Text on background | 19.00:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 7.32:1 | AAA |
| Secondary button | 7.20:1 | AAA |
| Muted text | 7.82:1 | AAA |
| Accent | 7.37:1 | AAA |
| Destructive | 4.38:1 | AA Large |
Paste this into your globals.css to use Length in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.016 130.347);
--muted: oklch(0.929 0.006 110.37);
--muted-foreground: oklch(0.461 0.016 110.888);
--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.873 0.036 132.068);
--primary-foreground: oklch(0.361 0.048 132.965);
--secondary: oklch(0.882 0.033 110.928);
--secondary-foreground: oklch(0.373 0.043 112.332);
--accent: oklch(0.866 0.04 147.569);
--accent-foreground: oklch(0.353 0.053 146.305);
--destructive: oklch(0.553 0.197 32.593);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.873 0.036 132.068);
--chart-1: oklch(0.873 0.036 132.068);
--chart-2: oklch(0.882 0.033 110.928);
--chart-3: oklch(0.866 0.04 147.569);
--chart-4: oklch(0.901 0.027 110.809);
--chart-5: oklch(0.876 0.04 132.109);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.025 130.45);
--foreground: oklch(0.987 0.005 131.762);
--muted: oklch(0.223 0.009 110.965);
--muted-foreground: oklch(0.753 0.014 110.597);
--popover: oklch(0.162 0.029 131.478);
--popover-foreground: oklch(0.994 0.002 131.743);
--card: oklch(0.162 0.029 131.478);
--card-foreground: oklch(0.994 0.002 131.743);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.873 0.036 132.068);
--primary-foreground: oklch(0.361 0.048 132.965);
--secondary: oklch(0.882 0.033 110.928);
--secondary-foreground: oklch(0.373 0.043 112.332);
--accent: oklch(0.866 0.04 147.569);
--accent-foreground: oklch(0.353 0.053 146.305);
--destructive: oklch(0.599 0.215 32.533);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.873 0.036 132.068);
--chart-1: oklch(0.873 0.036 132.068);
--chart-2: oklch(0.882 0.033 110.928);
--chart-3: oklch(0.866 0.04 147.569);
--chart-4: oklch(0.901 0.027 110.809);
--chart-5: oklch(0.876 0.04 132.109);
}