Able is a shadcn/ui theme built around a muted deep green primary color (#383b30) with muted light green accents (#d0d6c2). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the muted deep green primary (#383b30) on a green-tinted background (#0c0f06).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #0c0f06black |
| Foreground | #0e1202black | #ffffffwhite |
| Card | #fbfdf7snow | #0c0f06black |
| Card foreground | #0e1202black | #ffffffwhite |
| Popover | #fbfdf7snow | #0c0f06black |
| Popover foreground | #0e1202black | #ffffffwhite |
| Primary | #383b30darkslategray | #383b30darkslategray |
| Primary foreground | #d1d3calightgrey | #d1d3calightgrey |
| Secondary | #d0d6c2lightgrey | #252622darkslategray |
| Secondary foreground | #373d29darkslategray | #bec1b9silver |
| Muted | #f3f5f0whitesmoke | #0e0f0ablack |
| Muted foreground | #555a49darkolivegreen | #b1b6a5darkgray |
| Accent | #d0d6c2lightgrey | #252622darkslategray |
| Accent foreground | #373d29darkslategray | #bec1b9silver |
| Destructive | #5f2407maroon | #f0783dcoral |
| Destructive foreground | #f8bda0lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #383b30darkslategray | #383b30darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.48:1 | AAA |
| Text on card | 18.48:1 | AAA |
| Primary button | 7.56:1 | AAA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 6.49:1 | AA |
| Accent | 7.54:1 | AAA |
| Destructive | 7.32:1 | AAA |
| Text on background | 19.36:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 7.56:1 | AAA |
| Secondary button | 8.37:1 | AAA |
| Muted text | 9.24:1 | AAA |
| Accent | 8.37:1 | AAA |
| Destructive | 7.49:1 | AAA |
Paste this into your globals.css to use Able in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 119.428);
--foreground: oklch(0.173 0.035 121.37);
--muted: oklch(0.967 0.007 119.427);
--muted-foreground: oklch(0.458 0.026 120.302);
--popover: oklch(0.99 0.007 119.428);
--popover-foreground: oklch(0.173 0.035 121.37);
--card: oklch(0.99 0.007 119.428);
--card-foreground: oklch(0.173 0.035 121.37);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.345 0.019 120.234);
--primary-foreground: oklch(0.863 0.013 119.573);
--secondary: oklch(0.866 0.027 119.838);
--secondary-foreground: oklch(0.348 0.033 120.98);
--accent: oklch(0.866 0.027 119.838);
--accent-foreground: oklch(0.348 0.033 120.98);
--destructive: oklch(0.343 0.094 43.148);
--destructive-foreground: oklch(0.845 0.079 47.771);
--ring: oklch(0.345 0.019 120.234);
--chart-1: oklch(0.345 0.019 120.234);
--chart-2: oklch(0.866 0.027 119.838);
--chart-3: oklch(0.866 0.027 119.838);
--chart-4: oklch(0.886 0.023 119.745);
--chart-5: oklch(0.35 0.024 120.495);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.019 120.597);
--foreground: oklch(1 0 180);
--muted: oklch(0.166 0.011 120.414);
--muted-foreground: oklch(0.767 0.023 119.828);
--popover: oklch(0.16 0.019 120.597);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.16 0.019 120.597);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.345 0.019 120.234);
--primary-foreground: oklch(0.863 0.013 119.573);
--secondary: oklch(0.265 0.008 119.822);
--secondary-foreground: oklch(0.806 0.011 119.544);
--accent: oklch(0.265 0.008 119.822);
--accent-foreground: oklch(0.806 0.011 119.544);
--destructive: oklch(0.703 0.165 44.99);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.345 0.019 120.234);
--chart-1: oklch(0.345 0.019 120.234);
--chart-2: oklch(0.265 0.008 119.822);
--chart-3: oklch(0.265 0.008 119.822);
--chart-4: oklch(0.298 0.009 119.849);
--chart-5: oklch(0.35 0.024 120.495);
}