Anklet is a shadcn/ui theme built around a deep green primary color (#1a7535) with deep orange accents (#75351a). The light mode uses a neutral background (#fbfefc). Dark mode keeps the deep green primary (#1a7535) on a neutral background (#030704).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #030704black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #f6fdf8mintcream | #050b06black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f6fdf8mintcream | #050b06black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #1a7535forestgreen | #1a7535forestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #351a75midnightblue | #351a75midnightblue |
| Secondary foreground | #d9cdf4gainsboro | #d9cdf4gainsboro |
| Muted | #e1dde9gainsboro | #1a1622black |
| Muted foreground | #565260dimgray | #a39faddarkgray |
| Accent | #75351asaddlebrown | #75351asaddlebrown |
| Accent foreground | #f4d9cdbisque | #f4d9cdbisque |
| Destructive | #cb2d01firebrick | #f93701orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a7535forestgreen | #1a7535forestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.69:1 | AAA |
| Text on card | 20.39:1 | AAA |
| Primary button | 5.76:1 | AA |
| Secondary button | 8.99:1 | AAA |
| Muted text | 5.66:1 | AA |
| Accent | 6.85:1 | AA |
| Destructive | 5.36:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 5.76:1 | AA |
| Secondary button | 8.99:1 | AAA |
| Muted text | 6.86:1 | AA |
| Accent | 6.85:1 | AA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Anklet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 155.774);
--foreground: oklch(0 0 0);
--muted: oklch(0.904 0.016 299.734);
--muted-foreground: oklch(0.448 0.024 299.148);
--popover: oklch(0.989 0.01 155.679);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.01 155.679);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.496 0.129 148.652);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.319 0.144 289.201);
--secondary-foreground: oklch(0.87 0.055 298.969);
--accent: oklch(0.41 0.098 42.343);
--accent-foreground: oklch(0.903 0.035 44.634);
--destructive: oklch(0.549 0.199 33.615);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.496 0.129 148.652);
--chart-1: oklch(0.496 0.129 148.652);
--chart-2: oklch(0.319 0.144 289.201);
--chart-3: oklch(0.41 0.098 42.343);
--chart-4: oklch(0.341 0.156 288.937);
--chart-5: oklch(0.501 0.133 148.368);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.014 155.52);
--foreground: oklch(0.993 0.001 155.849);
--muted: oklch(0.211 0.023 298.122);
--muted-foreground: oklch(0.709 0.021 299.538);
--popover: oklch(0.139 0.016 155.489);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.016 155.489);
--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.496 0.129 148.652);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.319 0.144 289.201);
--secondary-foreground: oklch(0.87 0.055 298.969);
--accent: oklch(0.41 0.098 42.343);
--accent-foreground: oklch(0.903 0.035 44.634);
--destructive: oklch(0.638 0.233 33.289);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.496 0.129 148.652);
--chart-1: oklch(0.496 0.129 148.652);
--chart-2: oklch(0.319 0.144 289.201);
--chart-3: oklch(0.41 0.098 42.343);
--chart-4: oklch(0.341 0.156 288.937);
--chart-5: oklch(0.501 0.133 148.368);
}