Hospice is a shadcn/ui theme built around an orange primary color (#7d5821) with blue accents (#21467d). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#7d5821) on an orange-tinted background (#0c0804).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0804black |
| Foreground | #160f03black | #faf8f5whitesmoke |
| Card | #ffffffwhite | #0c0804black |
| Card foreground | #160f03black | #faf8f5whitesmoke |
| Popover | #ffffffwhite | #0c0804black |
| Popover foreground | #160f03black | #faf8f5whitesmoke |
| Primary | #7d5821saddlebrown | #7d5821saddlebrown |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #21467ddarkslateblue | #21467ddarkslateblue |
| Secondary foreground | #dbe5f5lavender | #dbe5f5lavender |
| Muted | #e7eaeelavender | #111418black |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #21467ddarkslateblue | #21467ddarkslateblue |
| Accent foreground | #dbe5f5lavender | #dbe5f5lavender |
| Destructive | #6d1e09maroon | #ed5126chocolate |
| Destructive foreground | #f8bfaflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7d5821saddlebrown | #7d5821saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.02:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 6.37:1 | AA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 5.79:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 7.10:1 | AAA |
| Text on background | 18.80:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 6.37:1 | AA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 7.60:1 | AAA |
| Accent | 7.40:1 | AAA |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use Hospice in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.173 0.027 79.91);
--muted: oklch(0.936 0.007 258.331);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.173 0.027 79.91);
--card: oklch(1 0 180);
--card-foreground: oklch(0.173 0.027 79.91);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.489 0.085 74.083);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.397 0.102 258.434);
--secondary-foreground: oklch(0.92 0.025 258.362);
--accent: oklch(0.397 0.102 258.434);
--accent-foreground: oklch(0.92 0.025 258.362);
--destructive: oklch(0.36 0.115 35.399);
--destructive-foreground: oklch(0.852 0.071 36.004);
--ring: oklch(0.489 0.085 74.083);
--chart-1: oklch(0.489 0.085 74.083);
--chart-2: oklch(0.397 0.102 258.434);
--chart-3: oklch(0.397 0.102 258.434);
--chart-4: oklch(0.423 0.11 258.449);
--chart-5: oklch(0.493 0.089 73.624);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.015 84.348);
--foreground: oklch(0.98 0.005 78.296);
--muted: oklch(0.189 0.01 258.372);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.139 0.015 84.348);
--popover-foreground: oklch(0.98 0.005 78.296);
--card: oklch(0.139 0.015 84.348);
--card-foreground: oklch(0.98 0.005 78.296);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.489 0.085 74.083);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.397 0.102 258.434);
--secondary-foreground: oklch(0.92 0.025 258.362);
--accent: oklch(0.397 0.102 258.434);
--accent-foreground: oklch(0.92 0.025 258.362);
--destructive: oklch(0.645 0.2 35.611);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.489 0.085 74.083);
--chart-1: oklch(0.489 0.085 74.083);
--chart-2: oklch(0.397 0.102 258.434);
--chart-3: oklch(0.397 0.102 258.434);
--chart-4: oklch(0.423 0.11 258.449);
--chart-5: oklch(0.493 0.089 73.624);
}