Sickness is a shadcn/ui theme built around a near-black primary color (#050506) with near-black accents (#050605). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the near-black primary (#050506) on an indigo-tinted background (#05030c).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #05030cblack |
| Foreground | #04020dblack | #ffffffwhite |
| Card | #f6f5fawhitesmoke | #070410black |
| Card foreground | #030109black | #ffffffwhite |
| Popover | #f6f5fawhitesmoke | #070410black |
| Popover foreground | #030109black | #ffffffwhite |
| Primary | #050506black | #050506black |
| Primary foreground | #9893a9darkgray | #9893a9darkgray |
| Secondary | #060505black | #060505black |
| Secondary foreground | #a99893rosybrown | #a99893rosybrown |
| Muted | #f3eae8linen | #170f0cblack |
| Muted foreground | #685955dimgray | #aa9b97darkgray |
| Accent | #050605black | #050605black |
| Accent foreground | #93a998darkseagreen | #93a998darkseagreen |
| Destructive | #6b210bmaroon | #eb6137tomato |
| Destructive foreground | #f7c1b0lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #050506black | #050506black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 6.88:1 | AA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.63:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 7.16:1 | AAA |
| Text on background | 20.46:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 6.88:1 | AA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 7.07:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 6.32:1 | AA |
Paste this into your globals.css to use Sickness in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 296.239);
--foreground: oklch(0.104 0.034 294.701);
--muted: oklch(0.943 0.01 35.979);
--muted-foreground: oklch(0.477 0.021 35.944);
--popover: oklch(0.971 0.007 296.192);
--popover-foreground: oklch(0.091 0.029 295.116);
--card: oklch(0.971 0.007 296.192);
--card-foreground: oklch(0.091 0.029 295.116);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.113 0.004 296.217);
--primary-foreground: oklch(0.676 0.031 295.475);
--secondary: oklch(0.115 0.003 37.1);
--secondary-foreground: oklch(0.693 0.021 35.947);
--accent: oklch(0.117 0.004 152.457);
--accent-foreground: oklch(0.713 0.034 151.85);
--destructive: oklch(0.36 0.11 36.509);
--destructive-foreground: oklch(0.854 0.067 37.596);
--ring: oklch(0.113 0.004 296.217);
--chart-1: oklch(0.113 0.004 296.217);
--chart-2: oklch(0.115 0.003 37.1);
--chart-3: oklch(0.117 0.004 152.457);
--chart-4: oklch(0.157 0.004 35.951);
--chart-5: oklch(0.112 0.005 296.184);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.025 295.328);
--foreground: oklch(1 0 180);
--muted: oklch(0.178 0.016 36.018);
--muted-foreground: oklch(0.702 0.018 35.95);
--popover: oklch(0.123 0.029 294.329);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.029 294.329);
--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.113 0.004 296.217);
--primary-foreground: oklch(0.676 0.031 295.475);
--secondary: oklch(0.115 0.003 37.1);
--secondary-foreground: oklch(0.693 0.021 35.947);
--accent: oklch(0.117 0.004 152.457);
--accent-foreground: oklch(0.713 0.034 151.85);
--destructive: oklch(0.663 0.18 37.215);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.113 0.004 296.217);
--chart-1: oklch(0.113 0.004 296.217);
--chart-2: oklch(0.115 0.003 37.1);
--chart-3: oklch(0.117 0.004 152.457);
--chart-4: oklch(0.157 0.004 35.951);
--chart-5: oklch(0.112 0.005 296.184);
}