Suspension is a shadcn/ui theme built around a teal primary color (#45826c) with orange accents (#826c45). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#45826c) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #010403black |
| Foreground | #020d09black | #f8fcfamintcream |
| Card | #f7fdfbmintcream | #030806black |
| Card foreground | #020906black | #fcfdfdwhite |
| Popover | #fbfefdwhite | #010403black |
| Popover foreground | #020d09black | #f8fcfamintcream |
| Primary | #45826cseagreen | #45826cseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6c4582rebeccapurple | #6c4582rebeccapurple |
| Secondary foreground | #fdfcfdwhite | #fdfcfdwhite |
| Muted | #e6e4e7gainsboro | #1a181bblack |
| Muted foreground | #48444bdarkslategray | #b9b4bbsilver |
| Accent | #826c45dimgray | #826c45dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #871508darkred | #f2321corangered |
| Destructive foreground | #fccbc5pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #45826cseagreen | #45826cseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.44:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 4.49:1 | AA Large |
| Secondary button | 7.33:1 | AAA |
| Muted text | 7.53:1 | AAA |
| Accent | 5.03:1 | AA |
| Destructive | 6.78:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 4.49:1 | AA Large |
| Secondary button | 7.33:1 | AAA |
| Muted text | 8.66:1 | AAA |
| Accent | 5.03:1 | AA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Suspension in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 172.468);
--foreground: oklch(0.145 0.021 172.008);
--muted: oklch(0.921 0.005 313.575);
--muted-foreground: oklch(0.393 0.013 313.399);
--popover: oklch(0.994 0.004 172.468);
--popover-foreground: oklch(0.145 0.021 172.008);
--card: oklch(0.989 0.007 172.36);
--card-foreground: oklch(0.126 0.018 172.89);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.559 0.074 167.761);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.46 0.106 312.056);
--secondary-foreground: oklch(0.991 0.002 313.591);
--accent: oklch(0.542 0.062 80.515);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.402 0.15 30.547);
--destructive-foreground: oklch(0.882 0.056 25.641);
--ring: oklch(0.559 0.074 167.761);
--chart-1: oklch(0.559 0.074 167.761);
--chart-2: oklch(0.46 0.106 312.056);
--chart-3: oklch(0.542 0.062 80.515);
--chart-4: oklch(0.484 0.112 312.039);
--chart-5: oklch(0.566 0.08 167.303);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.011 172.813);
--foreground: oklch(0.987 0.004 172.446);
--muted: oklch(0.212 0.007 313.414);
--muted-foreground: oklch(0.776 0.011 313.517);
--popover: oklch(0.098 0.011 172.813);
--popover-foreground: oklch(0.987 0.004 172.446);
--card: oklch(0.123 0.014 172.813);
--card-foreground: oklch(0.994 0.002 172.511);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.559 0.074 167.761);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.46 0.106 312.056);
--secondary-foreground: oklch(0.991 0.002 313.591);
--accent: oklch(0.542 0.062 80.515);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.623 0.228 30.513);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.559 0.074 167.761);
--chart-1: oklch(0.559 0.074 167.761);
--chart-2: oklch(0.46 0.106 312.056);
--chart-3: oklch(0.542 0.062 80.515);
--chart-4: oklch(0.484 0.112 312.039);
--chart-5: oklch(0.566 0.08 167.303);
}