Squash is a shadcn/ui theme built around a vivid pink primary color (#fa0a5a) with muted pink accents (#c4abb4). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the vivid pink primary (#fa0a5a) on a pink-tinted background (#0c0406).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #0c0406black |
| Foreground | #110308black | #faf4f6whitesmoke |
| Card | #faf5f6whitesmoke | #0f0508black |
| Card foreground | #0d0206black | #fcf8f9snow |
| Popover | #fcf8f9snow | #0c0406black |
| Popover foreground | #110308black | #faf4f6whitesmoke |
| Primary | #fa0a5acrimson | #fa0a5acrimson |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d6cdd0lightgrey | #20181bblack |
| Secondary foreground | #3e3236darkslategray | #c0aab1darkgray |
| Muted | #eae1e4gainsboro | #1e1518black |
| Muted foreground | #555354dimgray | #acaaabdarkgray |
| Accent | #c4abb4silver | #321f26darkslategray |
| Accent foreground | #24191dblack | #d0b4bdsilver |
| Destructive | #ce370dfirebrick | #e63d0forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fa0a5acrimson | #fa0a5acrimson |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.17:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 3.99:1 | AA Large |
| Secondary button | 7.84:1 | AAA |
| Muted text | 5.96:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 5.02:1 | AA |
| Text on background | 18.69:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 3.99:1 | AA Large |
| Secondary button | 7.97:1 | AAA |
| Muted text | 7.72:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 4.15:1 | AA Large |
Paste this into your globals.css to use Squash in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 354.705);
--foreground: oklch(0.132 0.032 356.256);
--muted: oklch(0.918 0.01 354.887);
--muted-foreground: oklch(0.445 0.002 354.741);
--popover: oklch(0.983 0.004 354.705);
--popover-foreground: oklch(0.132 0.032 356.256);
--card: oklch(0.974 0.006 354.765);
--card-foreground: oklch(0.118 0.028 354.593);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.629 0.249 13.739);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.855 0.011 354.956);
--secondary-foreground: oklch(0.333 0.017 356.034);
--accent: oklch(0.766 0.03 355.694);
--accent-foreground: oklch(0.229 0.018 356.71);
--destructive: oklch(0.564 0.194 34.471);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.629 0.249 13.739);
--chart-1: oklch(0.629 0.249 13.739);
--chart-2: oklch(0.855 0.011 354.956);
--chart-3: oklch(0.766 0.03 355.694);
--chart-4: oklch(0.88 0.009 354.884);
--chart-5: oklch(0.635 0.252 14.419);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.02 354.446);
--foreground: oklch(0.973 0.007 354.791);
--muted: oklch(0.209 0.014 356.462);
--muted-foreground: oklch(0.74 0.002 354.669);
--popover: oklch(0.122 0.02 354.446);
--popover-foreground: oklch(0.973 0.007 354.791);
--card: oklch(0.135 0.023 355.888);
--card-foreground: oklch(0.982 0.005 354.722);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.629 0.249 13.739);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.22 0.014 356.402);
--secondary-foreground: oklch(0.759 0.028 355.611);
--accent: oklch(0.267 0.031 357.744);
--accent-foreground: oklch(0.796 0.035 355.809);
--destructive: oklch(0.611 0.211 34.368);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.629 0.249 13.739);
--chart-1: oklch(0.629 0.249 13.739);
--chart-2: oklch(0.22 0.014 356.402);
--chart-3: oklch(0.267 0.031 357.744);
--chart-4: oklch(0.251 0.018 356.545);
--chart-5: oklch(0.635 0.252 14.419);
}