Disaster is a shadcn/ui theme built around a light teal primary color (#b6e7d3) with muted light teal accents (#e9eceb). The light mode uses a neutral background (#fbfefd). Dark mode keeps the light teal primary (#b6e7d3) on a neutral background (#030705).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #030705black |
| Foreground | #010403black | #f6f8f8whitesmoke |
| Card | #fbfefdwhite | #030705black |
| Card foreground | #010403black | #f6f8f8whitesmoke |
| Popover | #fbfefdwhite | #030705black |
| Popover foreground | #010403black | #f6f8f8whitesmoke |
| Primary | #b6e7d3powderblue | #b6e7d3powderblue |
| Primary foreground | #1b503bdarkslategray | #1b503bdarkslategray |
| Secondary | #e9eceblavender | #202c27darkslategray |
| Secondary foreground | #4b5853darkslategray | #b5c9c1silver |
| Muted | #dceae4gainsboro | #15231dblack |
| Muted foreground | #5e6e68dimgray | #91a19bdarkgray |
| Accent | #e9eceblavender | #202c27darkslategray |
| Accent foreground | #4b5853darkslategray | #b5c9c1silver |
| Destructive | #ad3710firebrick | #e54915orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b6e7d3powderblue | #b6e7d3powderblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 6.79:1 | AA |
| Secondary button | 6.27:1 | AA |
| Muted text | 4.32:1 | AA Large |
| Accent | 6.27:1 | AA |
| Destructive | 6.31:1 | AA |
| Text on background | 19.00:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 6.79:1 | AA |
| Secondary button | 8.29:1 | AAA |
| Muted text | 6.03:1 | AA |
| Accent | 8.29:1 | AAA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Disaster in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 170.528);
--foreground: oklch(0.098 0.011 170.871);
--muted: oklch(0.924 0.016 170.12);
--muted-foreground: oklch(0.523 0.022 169.359);
--popover: oklch(0.994 0.003 170.528);
--popover-foreground: oklch(0.098 0.011 170.871);
--card: oklch(0.994 0.003 170.528);
--card-foreground: oklch(0.098 0.011 170.871);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.888 0.057 168.651);
--primary-foreground: oklch(0.39 0.068 163.599);
--secondary: oklch(0.941 0.004 170.505);
--secondary-foreground: oklch(0.448 0.018 169.396);
--accent: oklch(0.941 0.004 170.505);
--accent-foreground: oklch(0.448 0.018 169.396);
--destructive: oklch(0.506 0.16 36.81);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.888 0.057 168.651);
--chart-1: oklch(0.888 0.057 168.651);
--chart-2: oklch(0.941 0.004 170.505);
--chart-3: oklch(0.941 0.004 170.505);
--chart-4: oklch(0.963 0.002 170.551);
--chart-5: oklch(0.89 0.06 168.534);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.01 170.807);
--foreground: oklch(0.978 0.002 170.56);
--muted: oklch(0.241 0.021 167.755);
--muted-foreground: oklch(0.695 0.021 169.744);
--popover: oklch(0.121 0.01 170.807);
--popover-foreground: oklch(0.978 0.002 170.56);
--card: oklch(0.121 0.01 170.807);
--card-foreground: oklch(0.978 0.002 170.56);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.888 0.057 168.651);
--primary-foreground: oklch(0.39 0.068 163.599);
--secondary: oklch(0.281 0.019 168.522);
--secondary-foreground: oklch(0.82 0.025 169.729);
--accent: oklch(0.281 0.019 168.522);
--accent-foreground: oklch(0.82 0.025 169.729);
--destructive: oklch(0.621 0.2 36.515);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.888 0.057 168.651);
--chart-1: oklch(0.888 0.057 168.651);
--chart-2: oklch(0.281 0.019 168.522);
--chart-3: oklch(0.281 0.019 168.522);
--chart-4: oklch(0.315 0.022 168.424);
--chart-5: oklch(0.89 0.06 168.534);
}