Anagram is a shadcn/ui theme built around a neutral gray primary color (#68686a) with neutral gray accents (#686a68). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the neutral gray primary (#68686a) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #030407black |
| Foreground | #03040cblack | #f5f5fawhitesmoke |
| Card | #f7f8fdghostwhite | #05060ablack |
| Card foreground | #020308black | #f8f9fcghostwhite |
| Popover | #fbfbfeghostwhite | #030407black |
| Popover foreground | #03040cblack | #f5f5fawhitesmoke |
| Primary | #68686adimgray | #68686adimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6a6868dimgray | #6a6868dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ebd5d8gainsboro | #2a1416black |
| Muted foreground | #484142darkslategray | #beb7b8silver |
| Accent | #686a68dimgray | #686a68dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #841606maroon | #f7543btomato |
| Destructive foreground | #fcc7bfpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #68686adimgray | #68686adimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 5.58:1 | AA |
| Secondary button | 5.57:1 | AA |
| Muted text | 7.15:1 | AAA |
| Accent | 5.48:1 | AA |
| Destructive | 6.68:1 | AA |
| Text on background | 18.88:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 5.58:1 | AA |
| Secondary button | 5.57:1 | AA |
| Muted text | 8.83:1 | AAA |
| Accent | 5.48:1 | AA |
| Destructive | 6.28:1 | AA |
Paste this into your globals.css to use Anagram in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 280.282);
--foreground: oklch(0.114 0.021 274.224);
--muted: oklch(0.893 0.025 9.562);
--muted-foreground: oklch(0.384 0.01 9.494);
--popover: oklch(0.99 0.003 280.282);
--popover-foreground: oklch(0.114 0.021 274.224);
--card: oklch(0.98 0.006 280.232);
--card-foreground: oklch(0.099 0.018 274.176);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.517 0.003 280.243);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.518 0.003 9.031);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.521 0.004 142.087);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.398 0.147 31.585);
--destructive-foreground: oklch(0.876 0.062 28.458);
--ring: oklch(0.517 0.003 280.243);
--chart-1: oklch(0.517 0.003 280.243);
--chart-2: oklch(0.518 0.003 9.031);
--chart-3: oklch(0.521 0.004 142.087);
--chart-4: oklch(0.544 0.003 9.032);
--chart-5: oklch(0.51 0.012 279.964);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.011 276.946);
--foreground: oklch(0.972 0.006 280.229);
--muted: oklch(0.222 0.036 12.984);
--muted-foreground: oklch(0.784 0.008 9.147);
--popover: oklch(0.106 0.011 276.946);
--popover-foreground: oklch(0.972 0.006 280.229);
--card: oklch(0.121 0.013 276.947);
--card-foreground: oklch(0.981 0.004 280.263);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.517 0.003 280.243);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.518 0.003 9.031);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.521 0.004 142.087);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.665 0.203 31.479);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.517 0.003 280.243);
--chart-1: oklch(0.517 0.003 280.243);
--chart-2: oklch(0.518 0.003 9.031);
--chart-3: oklch(0.521 0.004 142.087);
--chart-4: oklch(0.544 0.003 9.032);
--chart-5: oklch(0.51 0.012 279.964);
}