Another is a shadcn/ui theme built around a muted blue primary color (#586a7e) with muted green accents (#6a7e58). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#586a7e) on a blue-tinted background (#070a0e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070a0eblack |
| Foreground | #040c16black | #ffffffwhite |
| Card | #fcfcfcsnow | #080d11black |
| Card foreground | #030a11black | #ffffffwhite |
| Popover | #ffffffwhite | #070a0eblack |
| Popover foreground | #040c16black | #ffffffwhite |
| Primary | #586a7edimgray | #586a7edimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7e586adimgray | #7e586adimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e2d4dbgainsboro | #2b1d23black |
| Muted foreground | #6b6166dimgray | #9e9499darkgray |
| Accent | #6a7e58dimgray | #6a7e58dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b72610firebrick | #d32c12firebrick |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #586a7edimgray | #586a7edimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 5.53:1 | AA |
| Secondary button | 6.01:1 | AA |
| Muted text | 4.16:1 | AA Large |
| Accent | 4.40:1 | AA Large |
| Destructive | 6.19:1 | AA |
| Text on background | 19.84:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 5.53:1 | AA |
| Secondary button | 6.01:1 | AA |
| Muted text | 5.50:1 | AA |
| Accent | 4.40:1 | AA Large |
| Destructive | 5.06:1 | AA |
Paste this into your globals.css to use Another in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.152 0.025 247.22);
--muted: oklch(0.884 0.018 346.557);
--muted-foreground: oklch(0.503 0.015 346.792);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.152 0.025 247.22);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.14 0.021 244.196);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.518 0.039 250.297);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.507 0.057 348.826);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.568 0.062 130.365);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.508 0.184 31.547);
--destructive-foreground: oklch(0.99 0.004 27.953);
--ring: oklch(0.518 0.039 250.297);
--chart-1: oklch(0.518 0.039 250.297);
--chart-2: oklch(0.507 0.057 348.826);
--chart-3: oklch(0.568 0.062 130.365);
--chart-4: oklch(0.532 0.061 348.848);
--chart-5: oklch(0.517 0.045 250.407);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.011 247.248);
--foreground: oklch(1 0 180);
--muted: oklch(0.249 0.025 348.55);
--muted-foreground: oklch(0.677 0.014 346.556);
--popover: oklch(0.143 0.011 247.248);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.013 249.735);
--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.518 0.039 250.297);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.507 0.057 348.826);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.568 0.062 130.365);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.564 0.205 31.508);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.518 0.039 250.297);
--chart-1: oklch(0.518 0.039 250.297);
--chart-2: oklch(0.507 0.057 348.826);
--chart-3: oklch(0.568 0.062 130.365);
--chart-4: oklch(0.532 0.061 348.848);
--chart-5: oklch(0.517 0.045 250.407);
}