Crushing is a shadcn/ui theme built around a muted red primary color (#604239) with muted indigo accents (#423960). The light mode uses a neutral background (#fefcfb). Dark mode keeps the muted red primary (#604239) on a neutral background (#040201).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #040201black |
| Foreground | #140906black | #f9f6f5whitesmoke |
| Card | #fdf8f7snow | #070403black |
| Card foreground | #100705black | #fbf9f9snow |
| Popover | #fdf8f7snow | #070403black |
| Popover foreground | #100705black | #fbf9f9snow |
| Primary | #604239darkolivegreen | #604239darkolivegreen |
| Primary foreground | #ece2dfgainsboro | #ece2dfgainsboro |
| Secondary | #396042darkslategray | #396042darkslategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e4e7e5gainsboro | #181b19black |
| Muted foreground | #494b4adarkslategray | #b4b6b5silver |
| Accent | #423960darkslategray | #423960darkslategray |
| Accent foreground | #e2dfeclavender | #e2dfeclavender |
| Destructive | #671804maroon | #f85c35tomato |
| Destructive foreground | #fcb4a1lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #604239darkolivegreen | #604239darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.12:1 | AAA |
| Text on card | 18.95:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 7.05:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 7.12:1 | AAA |
| Text on background | 19.26:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 8.52:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 6.56:1 | AA |
Paste this into your globals.css to use Crushing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 37.731);
--foreground: oklch(0.154 0.021 40.859);
--muted: oklch(0.925 0.004 153.174);
--muted-foreground: oklch(0.41 0.003 153.134);
--popover: oklch(0.983 0.005 37.719);
--popover-foreground: oklch(0.142 0.018 42.872);
--card: oklch(0.983 0.005 37.719);
--card-foreground: oklch(0.142 0.018 42.872);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.41 0.045 37.632);
--primary-foreground: oklch(0.92 0.012 37.683);
--secondary: oklch(0.452 0.067 150.444);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.371 0.068 293.562);
--accent-foreground: oklch(0.91 0.018 296.719);
--destructive: oklch(0.342 0.116 34.571);
--destructive-foreground: oklch(0.832 0.089 34.557);
--ring: oklch(0.41 0.045 37.632);
--chart-1: oklch(0.41 0.045 37.632);
--chart-2: oklch(0.452 0.067 150.444);
--chart-3: oklch(0.371 0.068 293.562);
--chart-4: oklch(0.483 0.073 150.404);
--chart-5: oklch(0.41 0.051 37.652);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.089 0.009 43.502);
--foreground: oklch(0.976 0.003 37.724);
--muted: oklch(0.218 0.005 152.829);
--muted-foreground: oklch(0.774 0.002 153.192);
--popover: oklch(0.112 0.011 43.502);
--popover-foreground: oklch(0.984 0.002 37.731);
--card: oklch(0.112 0.011 43.502);
--card-foreground: oklch(0.984 0.002 37.731);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.41 0.045 37.632);
--primary-foreground: oklch(0.92 0.012 37.683);
--secondary: oklch(0.452 0.067 150.444);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.371 0.068 293.562);
--accent-foreground: oklch(0.91 0.018 296.719);
--destructive: oklch(0.675 0.198 35.033);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.41 0.045 37.632);
--chart-1: oklch(0.41 0.045 37.632);
--chart-2: oklch(0.452 0.067 150.444);
--chart-3: oklch(0.371 0.068 293.562);
--chart-4: oklch(0.483 0.073 150.404);
--chart-5: oklch(0.41 0.051 37.652);
}