Anchored is a shadcn/ui theme built around a green primary color (#2bda53) with teal accents (#2bdaab). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#2bda53) on a neutral background (#020804).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #020804black |
| Foreground | #010903black | #f4faf6whitesmoke |
| Card | #fbfefcwhite | #020804black |
| Card foreground | #010903black | #f4faf6whitesmoke |
| Popover | #fbfefcwhite | #020804black |
| Popover foreground | #010903black | #f4faf6whitesmoke |
| Primary | #2bda53limegreen | #2bda53limegreen |
| Primary foreground | #083012black | #083012black |
| Secondary | #59da2blimegreen | #59da2blimegreen |
| Secondary foreground | #133008black | #133008black |
| Muted | #d4e4celightgrey | #21311bdarkslategray |
| Muted foreground | #4e594adarkslategray | #aab5a6darkgray |
| Accent | #2bdaablightseagreen | #2bdaablightseagreen |
| Accent foreground | #083025black | #083025black |
| Destructive | #c6240cfirebrick | #f4563etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2bda53limegreen | #2bda53limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 5.52:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 5.75:1 | AA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 6.46:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.25:1 | AA |
Paste this into your globals.css to use Anchored in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 153.161);
--foreground: oklch(0.125 0.026 152.262);
--muted: oklch(0.9 0.034 137.281);
--muted-foreground: oklch(0.45 0.027 137.339);
--popover: oklch(0.994 0.005 153.161);
--popover-foreground: oklch(0.125 0.026 152.262);
--card: oklch(0.994 0.005 153.161);
--card-foreground: oklch(0.125 0.026 152.262);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.776 0.223 146.244);
--primary-foreground: oklch(0.272 0.069 147.621);
--secondary: oklch(0.784 0.233 139.288);
--secondary-foreground: oklch(0.275 0.073 138.575);
--accent: oklch(0.792 0.15 169.188);
--accent-foreground: oklch(0.278 0.047 171.31);
--destructive: oklch(0.533 0.199 31.368);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.776 0.223 146.244);
--chart-1: oklch(0.776 0.223 146.244);
--chart-2: oklch(0.784 0.233 139.288);
--chart-3: oklch(0.792 0.15 169.188);
--chart-4: oklch(0.794 0.225 138.955);
--chart-5: oklch(0.785 0.229 146.018);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.019 152.525);
--foreground: oklch(0.98 0.008 153.099);
--muted: oklch(0.293 0.044 137.66);
--muted-foreground: oklch(0.76 0.024 137.264);
--popover: oklch(0.123 0.019 152.525);
--popover-foreground: oklch(0.98 0.008 153.099);
--card: oklch(0.123 0.019 152.525);
--card-foreground: oklch(0.98 0.008 153.099);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.776 0.223 146.244);
--primary-foreground: oklch(0.272 0.069 147.621);
--secondary: oklch(0.784 0.233 139.288);
--secondary-foreground: oklch(0.275 0.073 138.575);
--accent: oklch(0.792 0.15 169.188);
--accent-foreground: oklch(0.278 0.047 171.31);
--destructive: oklch(0.663 0.197 31.405);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.776 0.223 146.244);
--chart-1: oklch(0.776 0.223 146.244);
--chart-2: oklch(0.784 0.233 139.288);
--chart-3: oklch(0.792 0.15 169.188);
--chart-4: oklch(0.794 0.225 138.955);
--chart-5: oklch(0.785 0.229 146.018);
}