Anchored is a shadcn/ui theme built around a near-black primary color (#070306) with muted light purple accents (#d3b6ce). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the near-black primary (#070306) on a neutral background (#080207).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #080207black |
| Foreground | #11040eblack | #f9f5f9whitesmoke |
| Card | #faf5f9whitesmoke | #0c030ablack |
| Card foreground | #0d030bblack | #fbf8fbsnow |
| Popover | #faf5f9whitesmoke | #0c030ablack |
| Popover foreground | #0d030bblack | #fbf8fbsnow |
| Primary | #070306black | #070306black |
| Primary foreground | #c07cb4rosybrown | #c07cb4rosybrown |
| Secondary | #d9c9d6thistle | #2f272edarkslategray |
| Secondary foreground | #422e3edarkslategray | #cabfc8silver |
| Muted | #f2e8f0whitesmoke | #170d15black |
| Muted foreground | #433d42darkslategray | #c2bcc1silver |
| Accent | #d3b6cethistle | #483244darkslategray |
| Accent foreground | #362132darkslategray | #decfdbgainsboro |
| Destructive | #7b2b09saddlebrown | #f06c33tomato |
| Destructive foreground | #facfbdpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #070306black | #070306black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.06:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 6.61:1 | AA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 8.87:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 19.02:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 6.61:1 | AA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 10.19:1 | AAA |
| Accent | 7.71:1 | AAA |
| Destructive | 6.87:1 | AA |
Paste this into your globals.css to use Anchored in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 331.478);
--foreground: oklch(0.136 0.036 333.832);
--muted: oklch(0.942 0.015 331.627);
--muted-foreground: oklch(0.367 0.012 331.876);
--popover: oklch(0.975 0.007 331.515);
--popover-foreground: oklch(0.122 0.032 333.006);
--card: oklch(0.975 0.007 331.515);
--card-foreground: oklch(0.122 0.032 333.006);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.111 0.014 332.008);
--primary-foreground: oklch(0.675 0.111 333.577);
--secondary: oklch(0.853 0.026 331.831);
--secondary-foreground: oklch(0.331 0.04 333.017);
--accent: oklch(0.808 0.046 332.2);
--accent-foreground: oklch(0.281 0.044 333.492);
--destructive: oklch(0.404 0.119 40.064);
--destructive-foreground: oklch(0.887 0.055 44.463);
--ring: oklch(0.111 0.014 332.008);
--chart-1: oklch(0.111 0.014 332.008);
--chart-2: oklch(0.853 0.026 331.831);
--chart-3: oklch(0.808 0.046 332.2);
--chart-4: oklch(0.878 0.021 331.749);
--chart-5: oklch(0.11 0.016 332.06);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.024 332.399);
--foreground: oklch(0.975 0.006 331.501);
--muted: oklch(0.176 0.022 333.094);
--muted-foreground: oklch(0.802 0.01 331.585);
--popover: oklch(0.123 0.027 332.734);
--popover-foreground: oklch(0.983 0.004 331.469);
--card: oklch(0.123 0.027 332.734);
--card-foreground: oklch(0.983 0.004 331.469);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.111 0.014 332.008);
--primary-foreground: oklch(0.675 0.111 333.577);
--secondary: oklch(0.286 0.016 332.181);
--secondary-foreground: oklch(0.816 0.017 331.695);
--accent: oklch(0.35 0.043 333.043);
--accent-foreground: oklch(0.869 0.023 331.775);
--destructive: oklch(0.683 0.177 41.712);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.111 0.014 332.008);
--chart-1: oklch(0.111 0.014 332.008);
--chart-2: oklch(0.286 0.016 332.181);
--chart-3: oklch(0.35 0.043 333.043);
--chart-4: oklch(0.316 0.018 332.21);
--chart-5: oklch(0.11 0.016 332.06);
}