Able is a shadcn/ui theme built around a deep green primary color (#08250d) with muted light green accents (#b1d2b6). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#08250d) on a green-tinted background (#030c05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030c05black |
| Foreground | #031706black | #f9fbf9mintcream |
| Card | #fcfcfcsnow | #051006black |
| Card foreground | #021205black | #fcfdfcwhite |
| Popover | #fcfcfcsnow | #051006black |
| Popover foreground | #021205black | #fcfdfcwhite |
| Primary | #08250dblack | #08250dblack |
| Primary foreground | #2ecc46limegreen | #2ecc46limegreen |
| Secondary | #ccdbcelightgrey | #2b3b2edarkslategray |
| Secondary foreground | #304533darkslategray | #c4d4c7lightgrey |
| Muted | #dde3degainsboro | #1c221cblack |
| Muted foreground | #425745darkslategray | #a8bdabdarkgray |
| Accent | #b1d2b6silver | #36593bdarkslategray |
| Accent foreground | #1e3421darkslategray | #d9e8dbgainsboro |
| Destructive | #7d0c0cmaroon | #df1616crimson |
| Destructive foreground | #f9c3c3pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #08250dblack | #08250dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.59:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 7.22:1 | AAA |
| Muted text | 6.03:1 | AA |
| Accent | 8.16:1 | AAA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 8.16:1 | AAA |
| Accent | 6.26:1 | AA |
| Destructive | 4.93:1 | AA |
Paste this into your globals.css to use Able in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.18 0.044 147.538);
--muted: oklch(0.911 0.01 150.109);
--muted-foreground: oklch(0.434 0.04 148.977);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.162 0.039 148.091);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.162 0.039 148.091);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.237 0.057 146.318);
--primary-foreground: oklch(0.739 0.216 144.915);
--secondary: oklch(0.877 0.025 149.876);
--secondary-foreground: oklch(0.368 0.041 148.69);
--accent: oklch(0.833 0.052 149.393);
--accent-foreground: oklch(0.3 0.044 148.106);
--destructive: oklch(0.378 0.145 27.868);
--destructive-foreground: oklch(0.864 0.062 18.434);
--ring: oklch(0.237 0.057 146.318);
--chart-1: oklch(0.237 0.057 146.318);
--chart-2: oklch(0.877 0.025 149.876);
--chart-3: oklch(0.833 0.052 149.393);
--chart-4: oklch(0.899 0.02 149.952);
--chart-5: oklch(0.239 0.059 146.196);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.024 149.134);
--foreground: oklch(0.986 0.002 150.215);
--muted: oklch(0.242 0.013 149.51);
--muted-foreground: oklch(0.778 0.035 149.65);
--popover: oklch(0.157 0.028 148.697);
--popover-foreground: oklch(0.993 0.001 150.231);
--card: oklch(0.157 0.028 148.697);
--card-foreground: oklch(0.993 0.001 150.231);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.237 0.057 146.318);
--primary-foreground: oklch(0.739 0.216 144.915);
--secondary: oklch(0.333 0.03 148.984);
--secondary-foreground: oklch(0.854 0.024 149.871);
--accent: oklch(0.427 0.062 148.11);
--accent-foreground: oklch(0.916 0.023 149.917);
--destructive: oklch(0.573 0.226 28.391);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.237 0.057 146.318);
--chart-1: oklch(0.237 0.057 146.318);
--chart-2: oklch(0.333 0.03 148.984);
--chart-3: oklch(0.427 0.062 148.11);
--chart-4: oklch(0.364 0.034 148.947);
--chart-5: oklch(0.239 0.059 146.196);
}