Sure-footed is a shadcn/ui theme built around a near-black primary color (#030203) with muted light purple accents (#dfd8dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#030203) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #11040eblack | #fdfcfdwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #0d030ablack | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #0d030ablack | #ffffffwhite |
| Primary | #030203black | #030203black |
| Primary foreground | #a592a1darkgray | #a592a1darkgray |
| Secondary | #dfd8ddgainsboro | #281b25black |
| Secondary foreground | #483c46darkslategray | #c8acc2silver |
| Muted | #f1dfedlavender | #200e1cblack |
| Muted foreground | #493c46darkslategray | #c3b6c0silver |
| Accent | #dfd8ddgainsboro | #281b25black |
| Accent foreground | #483c46darkslategray | #c8acc2silver |
| Destructive | #d01901firebrick | #ef1d01red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030203black | #030203black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.04:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 7.46:1 | AAA |
| Muted text | 8.19:1 | AAA |
| Accent | 7.46:1 | AAA |
| Destructive | 5.49:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.12:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 9.44:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 4.34:1 | AA Large |
Paste this into your globals.css to use Sure-footed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.136 0.035 335.065);
--muted: oklch(0.923 0.026 333.051);
--muted-foreground: oklch(0.373 0.025 333.619);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.122 0.031 334.076);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.122 0.031 334.076);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.091 0.003 332.764);
--primary-foreground: oklch(0.681 0.032 333.332);
--secondary: oklch(0.889 0.01 332.786);
--secondary-foreground: oklch(0.373 0.022 333.521);
--accent: oklch(0.889 0.01 332.786);
--accent-foreground: oklch(0.373 0.022 333.521);
--destructive: oklch(0.546 0.214 30.718);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.091 0.003 332.764);
--chart-1: oklch(0.091 0.003 332.764);
--chart-2: oklch(0.889 0.01 332.786);
--chart-3: oklch(0.889 0.01 332.786);
--chart-4: oklch(0.913 0.008 332.745);
--chart-5: oklch(0.09 0.004 332.808);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.003 332.657);
--muted: oklch(0.197 0.038 335.377);
--muted-foreground: oklch(0.791 0.021 333.017);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.091 0.003 332.764);
--primary-foreground: oklch(0.681 0.032 333.332);
--secondary: oklch(0.241 0.028 334.303);
--secondary-foreground: oklch(0.776 0.043 333.455);
--accent: oklch(0.241 0.028 334.303);
--accent-foreground: oklch(0.776 0.043 333.455);
--destructive: oklch(0.605 0.238 30.592);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.091 0.003 332.764);
--chart-1: oklch(0.091 0.003 332.764);
--chart-2: oklch(0.241 0.028 334.303);
--chart-3: oklch(0.241 0.028 334.303);
--chart-4: oklch(0.272 0.033 334.399);
--chart-5: oklch(0.09 0.004 332.808);
}