Acre is a shadcn/ui theme built around a cyan primary color (#2894a9) with blue accents (#2853a9). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#2894a9) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020303black |
| Foreground | #020b0dblack | #ffffffwhite |
| Card | #fcfcfcsnow | #030607black |
| Card foreground | #020709black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030607black |
| Popover foreground | #020709black | #ffffffwhite |
| Primary | #2894a9lightseagreen | #2894a9lightseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #28a97emediumseagreen | #28a97emediumseagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d5e1ddgainsboro | #1e2a26darkslategray |
| Muted foreground | #48514edarkslategray | #aeb7b4darkgray |
| Accent | #2853a9darkslateblue | #2853a9darkslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d4480cchocolate | #f15613orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2894a9lightseagreen | #2894a9lightseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 3.56:1 | AA Large |
| Secondary button | 2.96:1 | Fail |
| Muted text | 6.12:1 | AA |
| Accent | 7.24:1 | AAA |
| Destructive | 4.43:1 | AA Large |
| Text on background | 20.64:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 3.56:1 | AA Large |
| Secondary button | 2.96:1 | Fail |
| Muted text | 7.25:1 | AAA |
| Accent | 7.24:1 | AAA |
| Destructive | 3.45:1 | AA Large |
Paste this into your globals.css to use Acre in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.14 0.017 208.089);
--muted: oklch(0.901 0.014 174.125);
--muted-foreground: oklch(0.426 0.013 173.688);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.122 0.015 206.86);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.122 0.015 206.86);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.616 0.098 214.507);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.657 0.127 165.27);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.462 0.147 262.276);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.592 0.186 38.706);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.616 0.098 214.507);
--chart-1: oklch(0.616 0.098 214.507);
--chart-2: oklch(0.657 0.127 165.27);
--chart-3: oklch(0.462 0.147 262.276);
--chart-4: oklch(0.692 0.134 165.199);
--chart-5: oklch(0.622 0.101 214.827);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.006 208.636);
--foreground: oklch(1 0 180);
--muted: oklch(0.271 0.018 172.437);
--muted-foreground: oklch(0.772 0.011 174.163);
--popover: oklch(0.119 0.008 208.636);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.119 0.008 208.636);
--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.616 0.098 214.507);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.657 0.127 165.27);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.462 0.147 262.276);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.655 0.203 39.039);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.616 0.098 214.507);
--chart-1: oklch(0.616 0.098 214.507);
--chart-2: oklch(0.657 0.127 165.27);
--chart-3: oklch(0.462 0.147 262.276);
--chart-4: oklch(0.692 0.134 165.199);
--chart-5: oklch(0.622 0.101 214.827);
}