Guidance is a shadcn/ui theme built around a muted light red primary color (#f7f3f4) with muted light orange accents (#f7f4f3). The light mode uses a neutral background (#fdfbfc). Dark mode keeps the muted light red primary (#f7f3f4) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfcsnow | #000000black |
| Foreground | #040101black | #fdfbfcsnow |
| Card | #fcf8f9snow | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf8f9snow | #030303black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #f7f3f4whitesmoke | #f7f3f4whitesmoke |
| Primary foreground | #6b4c52dimgray | #6b4c52dimgray |
| Secondary | #f7f3f5whitesmoke | #f7f3f5whitesmoke |
| Secondary foreground | #6b4c62dimgray | #6b4c62dimgray |
| Muted | #e9d2e2gainsboro | #2d1625black |
| Muted foreground | #61515cdimgray | #ae9ea9darkgray |
| Accent | #f7f4f3whitesmoke | #f7f4f3whitesmoke |
| Accent foreground | #6b564cdimgray | #6b564cdimgray |
| Destructive | #65160bmaroon | #e73e27orangered |
| Destructive foreground | #f6b5aclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f7f3f4whitesmoke | #f7f3f4whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 6.73:1 | AA |
| Muted text | 5.21:1 | AA |
| Accent | 6.27:1 | AA |
| Destructive | 7.25:1 | AAA |
| Text on background | 20.38:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.85:1 | AA |
| Secondary button | 6.73:1 | AA |
| Muted text | 6.61:1 | AA |
| Accent | 6.27:1 | AA |
| Destructive | 4.10:1 | AA Large |
Paste this into your globals.css to use Guidance in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 4.371);
--foreground: oklch(0.081 0.018 4.872);
--muted: oklch(0.888 0.033 337.271);
--muted-foreground: oklch(0.456 0.027 337.68);
--popover: oklch(0.982 0.004 4.432);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.004 4.432);
--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.967 0.004 4.416);
--primary-foreground: oklch(0.453 0.043 6.781);
--secondary: oklch(0.968 0.005 336.657);
--secondary-foreground: oklch(0.458 0.053 338.663);
--accent: oklch(0.969 0.003 46.822);
--accent-foreground: oklch(0.472 0.032 46.202);
--destructive: oklch(0.336 0.114 30.978);
--destructive-foreground: oklch(0.831 0.077 27.334);
--ring: oklch(0.967 0.004 4.416);
--chart-1: oklch(0.967 0.004 4.416);
--chart-2: oklch(0.968 0.005 336.657);
--chart-3: oklch(0.969 0.003 46.822);
--chart-4: oklch(0.992 0.001 336.583);
--chart-5: oklch(0.967 0.004 4.434);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 4.371);
--muted: oklch(0.238 0.046 340.012);
--muted-foreground: oklch(0.716 0.024 337.206);
--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.967 0.004 4.416);
--primary-foreground: oklch(0.453 0.043 6.781);
--secondary: oklch(0.968 0.005 336.657);
--secondary-foreground: oklch(0.458 0.053 338.663);
--accent: oklch(0.969 0.003 46.822);
--accent-foreground: oklch(0.472 0.032 46.202);
--destructive: oklch(0.614 0.209 30.984);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.967 0.004 4.416);
--chart-1: oklch(0.967 0.004 4.416);
--chart-2: oklch(0.968 0.005 336.657);
--chart-3: oklch(0.969 0.003 46.822);
--chart-4: oklch(0.992 0.001 336.583);
--chart-5: oklch(0.967 0.004 4.434);
}