Innocence is a shadcn/ui theme built around a red primary color (#c21e29) with muted light red accents (#e6e0e0). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#c21e29) on a red-tinted background (#100405).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #100405black |
| Foreground | #110304black | #f9f6f6whitesmoke |
| Card | #fcf8f8snow | #140506black |
| Card foreground | #0d0203black | #fbf9f9snow |
| Popover | #fefbfbsnow | #100405black |
| Popover foreground | #110304black | #f9f6f6whitesmoke |
| Primary | #c21e29firebrick | #c21e29firebrick |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e6e0e0gainsboro | #2f2324darkslategray |
| Secondary foreground | #524243darkslategray | #cab9basilver |
| Muted | #efe7e7linen | #181011black |
| Muted foreground | #614c4edimgray | #b39e9fdarkgray |
| Accent | #e6e0e0gainsboro | #2f2324darkslategray |
| Accent foreground | #524243darkslategray | #cab9basilver |
| Destructive | #992e00saddlebrown | #ff6929tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c21e29firebrick | #c21e29firebrick |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.67:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 5.96:1 | AA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 6.48:1 | AA |
| Accent | 7.25:1 | AAA |
| Destructive | 7.65:1 | AAA |
| Text on background | 18.74:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 5.96:1 | AA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 7.39:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 7.30:1 | AAA |
Paste this into your globals.css to use Innocence in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 12.478);
--foreground: oklch(0.13 0.03 15.999);
--muted: oklch(0.933 0.009 12.626);
--muted-foreground: oklch(0.44 0.028 13.792);
--popover: oklch(0.991 0.002 12.478);
--popover-foreground: oklch(0.13 0.03 15.999);
--card: oklch(0.982 0.005 12.531);
--card-foreground: oklch(0.116 0.026 15.363);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.525 0.196 24.765);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.911 0.007 12.581);
--secondary-foreground: oklch(0.396 0.023 13.636);
--accent: oklch(0.911 0.007 12.581);
--accent-foreground: oklch(0.396 0.023 13.636);
--destructive: oklch(0.46 0.15 38.208);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.525 0.196 24.765);
--chart-1: oklch(0.525 0.196 24.765);
--chart-2: oklch(0.911 0.007 12.581);
--chart-3: oklch(0.911 0.007 12.581);
--chart-4: oklch(0.936 0.005 12.535);
--chart-5: oklch(0.529 0.201 25.266);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.026 15.358);
--foreground: oklch(0.975 0.003 12.487);
--muted: oklch(0.185 0.014 14.018);
--muted-foreground: oklch(0.718 0.025 13.147);
--popover: oklch(0.132 0.026 15.358);
--popover-foreground: oklch(0.975 0.003 12.487);
--card: oklch(0.144 0.03 16.082);
--card-foreground: oklch(0.984 0.002 12.466);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.525 0.196 24.765);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.27 0.018 13.805);
--secondary-foreground: oklch(0.801 0.02 12.939);
--accent: oklch(0.27 0.018 13.805);
--accent-foreground: oklch(0.801 0.02 12.939);
--destructive: oklch(0.701 0.197 40.79);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.525 0.196 24.765);
--chart-1: oklch(0.525 0.196 24.765);
--chart-2: oklch(0.27 0.018 13.805);
--chart-3: oklch(0.27 0.018 13.805);
--chart-4: oklch(0.3 0.02 13.87);
--chart-5: oklch(0.529 0.201 25.266);
}