Snappy is a shadcn/ui theme built around a muted deep red primary color (#1e1516) with neutral gray accents (#d3cfd0). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted deep red primary (#1e1516) on a red-tinted background (#0c0304).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #0c0304black |
| Foreground | #120305black | #ffffffwhite |
| Card | #fdf7f8snow | #100406black |
| Card foreground | #0d0204black | #ffffffwhite |
| Popover | #fdf7f8snow | #100406black |
| Popover foreground | #0d0204black | #ffffffwhite |
| Primary | #1e1516black | #1e1516black |
| Primary foreground | #c0a5a9darkgray | #c0a5a9darkgray |
| Secondary | #d3cfd0lightgrey | #171213black |
| Secondary foreground | #3a3637darkslategray | #b6a4a7darkgray |
| Muted | #e6ccd0lightgrey | #33191dblack |
| Muted foreground | #525151darkslategray | #aeadaddarkgray |
| Accent | #d3cfd0lightgrey | #171213black |
| Accent foreground | #3a3637darkslategray | #b6a4a7darkgray |
| Destructive | #be0404firebrick | #fa1919red |
| Destructive foreground | #fff5f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1e1516black | #1e1516black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.61:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 7.83:1 | AAA |
| Secondary button | 7.73:1 | AAA |
| Muted text | 5.22:1 | AA |
| Accent | 7.73:1 | AAA |
| Destructive | 6.12:1 | AA |
| Text on background | 20.35:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 7.83:1 | AAA |
| Secondary button | 7.82:1 | AAA |
| Muted text | 7.20:1 | AAA |
| Accent | 7.82:1 | AAA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Snappy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 6.671);
--foreground: oklch(0.129 0.033 9.217);
--muted: oklch(0.867 0.03 7.448);
--muted-foreground: oklch(0.436 0.002 6.72);
--popover: oklch(0.981 0.006 6.749);
--popover-foreground: oklch(0.116 0.029 8.106);
--card: oklch(0.981 0.006 6.749);
--card-foreground: oklch(0.116 0.029 8.106);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.208 0.015 8.421);
--primary-foreground: oklch(0.746 0.033 7.688);
--secondary: oklch(0.858 0.004 6.716);
--secondary-foreground: oklch(0.337 0.006 7.072);
--accent: oklch(0.858 0.004 6.716);
--accent-foreground: oklch(0.337 0.006 7.072);
--destructive: oklch(0.504 0.205 29.048);
--destructive-foreground: oklch(0.978 0.011 17.336);
--ring: oklch(0.208 0.015 8.421);
--chart-1: oklch(0.208 0.015 8.421);
--chart-2: oklch(0.858 0.004 6.716);
--chart-3: oklch(0.858 0.004 6.716);
--chart-4: oklch(0.882 0.003 6.692);
--chart-5: oklch(0.206 0.018 8.753);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.022 7.608);
--foreground: oklch(1 0 180);
--muted: oklch(0.252 0.042 10.88);
--muted-foreground: oklch(0.748 0.002 6.659);
--popover: oklch(0.133 0.026 8.56);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.133 0.026 8.56);
--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.208 0.015 8.421);
--primary-foreground: oklch(0.746 0.033 7.688);
--secondary: oklch(0.189 0.008 7.587);
--secondary-foreground: oklch(0.736 0.021 7.316);
--accent: oklch(0.189 0.008 7.587);
--accent-foreground: oklch(0.736 0.021 7.316);
--destructive: oklch(0.626 0.247 28.444);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.208 0.015 8.421);
--chart-1: oklch(0.208 0.015 8.421);
--chart-2: oklch(0.189 0.008 7.587);
--chart-3: oklch(0.189 0.008 7.587);
--chart-4: oklch(0.221 0.01 7.717);
--chart-5: oklch(0.206 0.018 8.753);
}