Sorrowful is a shadcn/ui theme built around a deep yellow primary color (#6b541f) with deep green accents (#5c6b1f). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#6b541f) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070603black |
| Foreground | #000000black | #fcfbf8snow |
| Card | #fcfcfcsnow | #0b0904black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fcfcfcsnow | #0b0904black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #6b541fdarkolivegreen | #6b541fdarkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6b2e1fsaddlebrown | #6b2e1fsaddlebrown |
| Secondary foreground | #f0d3ccbisque | #f0d3ccbisque |
| Muted | #e8d8d4gainsboro | #2b1b17black |
| Muted foreground | #473c39darkslategray | #c6bbb8silver |
| Accent | #5c6b1fdarkolivegreen | #5c6b1fdarkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #cd440echocolate | #ea4e10orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6b541fdarkolivegreen | #6b541fdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 7.32:1 | AAA |
| Muted text | 7.69:1 | AAA |
| Accent | 5.89:1 | AA |
| Destructive | 4.73:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 7.32:1 | AAA |
| Muted text | 8.79:1 | AAA |
| Accent | 5.89:1 | AA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Sorrowful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.894 0.018 34.297);
--muted-foreground: oklch(0.365 0.017 34.324);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.458 0.076 85.475);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.382 0.091 35.2);
--secondary-foreground: oklch(0.889 0.034 34.312);
--accent: oklch(0.498 0.101 119.98);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.576 0.182 38.035);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.458 0.076 85.475);
--chart-1: oklch(0.458 0.076 85.475);
--chart-2: oklch(0.382 0.091 35.2);
--chart-3: oklch(0.498 0.101 119.98);
--chart-4: oklch(0.411 0.099 35.205);
--chart-5: oklch(0.462 0.079 85.168);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.012 91.994);
--foreground: oklch(0.987 0.004 87.439);
--muted: oklch(0.242 0.027 34.575);
--muted-foreground: oklch(0.801 0.013 34.298);
--popover: oklch(0.14 0.013 91.774);
--popover-foreground: oklch(0.994 0.002 87.429);
--card: oklch(0.14 0.013 91.774);
--card-foreground: oklch(0.994 0.002 87.429);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.458 0.076 85.475);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.382 0.091 35.2);
--secondary-foreground: oklch(0.889 0.034 34.312);
--accent: oklch(0.498 0.101 119.98);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.634 0.202 37.861);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.458 0.076 85.475);
--chart-1: oklch(0.458 0.076 85.475);
--chart-2: oklch(0.382 0.091 35.2);
--chart-3: oklch(0.498 0.101 119.98);
--chart-4: oklch(0.411 0.099 35.205);
--chart-5: oklch(0.462 0.079 85.168);
}