Clarification is a shadcn/ui theme built around a neutral gray primary color (#292929) with muted light red accents (#dac8c8). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#292929) on a red-tinted background (#0b0404).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0404black |
| Foreground | #100505black | #ffffffwhite |
| Card | #fcfcfcsnow | #0e0606black |
| Card foreground | #0c0404black | #ffffffwhite |
| Popover | #ffffffwhite | #0b0404black |
| Popover foreground | #100505black | #ffffffwhite |
| Primary | #292929darkslategray | #292929darkslategray |
| Primary foreground | #c2c2c2silver | #c2c2c2silver |
| Secondary | #e2dadagainsboro | #1d1616black |
| Secondary foreground | #4d3d3ddarkslategray | #bca9a9darkgray |
| Muted | #ede3e3mistyrose | #1c1212black |
| Muted foreground | #544040darkslategray | #bfababdarkgray |
| Accent | #dac8c8lightgrey | #392828darkslategray |
| Accent foreground | #432d2ddarkslategray | #d3c0c0silver |
| Destructive | #b61a02firebrick | #fd3517orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #292929darkslategray | #292929darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.07:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 7.43:1 | AAA |
| Muted text | 7.63:1 | AAA |
| Accent | 7.91:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 8.42:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Clarification in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.023 20.597);
--muted: oklch(0.923 0.012 17.365);
--muted-foreground: oklch(0.393 0.027 18.357);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.133 0.023 20.597);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.119 0.02 20.423);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.28 0 180);
--primary-foreground: oklch(0.813 0 165.964);
--secondary: oklch(0.894 0.009 17.32);
--secondary-foreground: oklch(0.376 0.023 18.237);
--accent: oklch(0.848 0.021 17.567);
--accent-foreground: oklch(0.323 0.033 19.042);
--destructive: oklch(0.497 0.191 31.241);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.28 0 180);
--chart-1: oklch(0.28 0 180);
--chart-2: oklch(0.894 0.009 17.32);
--chart-3: oklch(0.848 0.021 17.567);
--chart-4: oklch(0.919 0.007 17.278);
--chart-5: oklch(0.278 0.004 17.374);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.015 19.407);
--foreground: oklch(1 0 180);
--muted: oklch(0.195 0.018 18.8);
--muted-foreground: oklch(0.759 0.022 17.654);
--popover: oklch(0.123 0.015 19.407);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.136 0.017 19.524);
--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.28 0 180);
--primary-foreground: oklch(0.813 0 165.964);
--secondary: oklch(0.21 0.01 17.97);
--secondary-foreground: oklch(0.752 0.021 17.636);
--accent: oklch(0.297 0.026 18.757);
--accent-foreground: oklch(0.823 0.022 17.605);
--destructive: oklch(0.644 0.236 31.477);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.28 0 180);
--chart-1: oklch(0.28 0 180);
--chart-2: oklch(0.21 0.01 17.97);
--chart-3: oklch(0.297 0.026 18.757);
--chart-4: oklch(0.241 0.012 18.051);
--chart-5: oklch(0.278 0.004 17.374);
}