Base is a shadcn/ui theme built around a muted green primary color (#abb394) with muted light green accents (#dde1d1). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the muted green primary (#abb394) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #000000black |
| Foreground | #070901black | #fafbf9snow |
| Card | #fbfcf8snow | #000000black |
| Card foreground | #070901black | #fafbf9snow |
| Popover | #fbfcf8snow | #000000black |
| Popover foreground | #070901black | #fafbf9snow |
| Primary | #abb394darkgray | #abb394darkgray |
| Primary foreground | #0b0c08black | #0b0c08black |
| Secondary | #eaece4beige | #2b2d24darkslategray |
| Secondary foreground | #1e2118black | #c5c9bbsilver |
| Muted | #e2e4ddgainsboro | #20221bblack |
| Muted foreground | #5c5f54dimgray | #a8aba0darkgray |
| Accent | #dde1d1gainsboro | #454b34darkslategray |
| Accent foreground | #464d32darkolivegreen | #dce0d2gainsboro |
| Destructive | #8f1100darkred | #fa1d00red |
| Destructive foreground | #ffc9c2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #abb394darkgray | #abb394darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.43:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 8.95:1 | AAA |
| Secondary button | 13.67:1 | AAA |
| Muted text | 5.07:1 | AA |
| Accent | 6.64:1 | AA |
| Destructive | 6.41:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 8.95:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 6.88:1 | AA |
| Accent | 6.74:1 | AA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Base in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 117.927);
--foreground: oklch(0.133 0.024 118.072);
--muted: oklch(0.915 0.009 118.003);
--muted-foreground: oklch(0.478 0.017 118.459);
--popover: oklch(0.989 0.006 117.927);
--popover-foreground: oklch(0.133 0.024 118.072);
--card: oklch(0.989 0.006 117.927);
--card-foreground: oklch(0.133 0.024 118.072);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.751 0.044 118.874);
--primary-foreground: oklch(0.152 0.007 118.476);
--secondary: oklch(0.939 0.01 118.013);
--secondary-foreground: oklch(0.24 0.017 119.079);
--accent: oklch(0.902 0.022 118.256);
--accent-foreground: oklch(0.407 0.043 119.765);
--destructive: oklch(0.415 0.161 31.254);
--destructive-foreground: oklch(0.881 0.063 27.078);
--ring: oklch(0.751 0.044 118.874);
--chart-1: oklch(0.751 0.044 118.874);
--chart-2: oklch(0.939 0.01 118.013);
--chart-3: oklch(0.902 0.022 118.256);
--chart-4: oklch(0.959 0.007 117.947);
--chart-5: oklch(0.758 0.052 119.046);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.002 117.854);
--muted: oklch(0.248 0.013 118.732);
--muted-foreground: oklch(0.736 0.015 118.196);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.002 117.854);
--card: oklch(0 0 0);
--card-foreground: oklch(0.986 0.002 117.854);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.751 0.044 118.874);
--primary-foreground: oklch(0.152 0.007 118.476);
--secondary: oklch(0.293 0.016 118.805);
--secondary-foreground: oklch(0.828 0.019 118.227);
--accent: oklch(0.402 0.037 119.513);
--accent-foreground: oklch(0.899 0.019 118.196);
--destructive: oklch(0.626 0.247 30.543);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.751 0.044 118.874);
--chart-1: oklch(0.751 0.044 118.874);
--chart-2: oklch(0.293 0.016 118.805);
--chart-3: oklch(0.402 0.037 119.513);
--chart-4: oklch(0.326 0.019 118.843);
--chart-5: oklch(0.758 0.052 119.046);
}