Sorrow is a shadcn/ui theme built around a vivid deep green primary color (#0c1301) with vivid deep green accents (#031301). The light mode uses a neutral background (#fafcf8). Dark mode keeps the vivid deep green primary (#0c1301) on a green-tinted background (#080a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #080a05black |
| Foreground | #030401black | #f8f9f6whitesmoke |
| Card | #f8faf4whitesmoke | #0b0e07black |
| Card foreground | #000000black | #fafbf9snow |
| Popover | #fafcf8snow | #080a05black |
| Popover foreground | #030401black | #f8f9f6whitesmoke |
| Primary | #0c1301black | #0c1301black |
| Primary foreground | #84d30dyellowgreen | #84d30dyellowgreen |
| Secondary | #131101black | #131101black |
| Secondary foreground | #d3bf0dgoldenrod | #d3bf0dgoldenrod |
| Muted | #e4e2d3gainsboro | #2c2b1bdarkslategray |
| Muted foreground | #4a493adarkslategray | #c5c3b5silver |
| Accent | #031301black | #031301black |
| Accent foreground | #21d30dlimegreen | #21d30dlimegreen |
| Destructive | #a71201darkred | #fe2810orangered |
| Destructive foreground | #ffdfdbmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c1301black | #0c1301black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 10.17:1 | AAA |
| Secondary button | 10.10:1 | AAA |
| Muted text | 6.99:1 | AA |
| Accent | 9.45:1 | AAA |
| Destructive | 6.14:1 | AA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.74:1 | AAA |
| Primary button | 10.17:1 | AAA |
| Secondary button | 10.10:1 | AAA |
| Muted text | 8.09:1 | AAA |
| Accent | 9.45:1 | AAA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Sorrow in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 124.427);
--foreground: oklch(0.1 0.014 123.702);
--muted: oklch(0.91 0.021 101.639);
--muted-foreground: oklch(0.401 0.023 102.133);
--popover: oklch(0.989 0.006 124.427);
--popover-foreground: oklch(0.1 0.014 123.702);
--card: oklch(0.983 0.008 124.468);
--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.174 0.04 125.708);
--primary-foreground: oklch(0.785 0.214 131.603);
--secondary: oklch(0.176 0.034 104.422);
--secondary-foreground: oklch(0.797 0.165 101.8);
--accent: oklch(0.166 0.048 140.228);
--accent-foreground: oklch(0.754 0.25 142.029);
--destructive: oklch(0.465 0.182 30.629);
--destructive-foreground: oklch(0.929 0.036 25.348);
--ring: oklch(0.174 0.04 125.708);
--chart-1: oklch(0.174 0.04 125.708);
--chart-2: oklch(0.176 0.034 104.422);
--chart-3: oklch(0.166 0.048 140.228);
--chart-4: oklch(0.233 0.046 103.407);
--chart-5: oklch(0.175 0.041 125.741);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.014 123.879);
--foreground: oklch(0.981 0.005 124.419);
--muted: oklch(0.284 0.026 102.557);
--muted-foreground: oklch(0.815 0.02 101.662);
--popover: oklch(0.141 0.014 123.879);
--popover-foreground: oklch(0.981 0.005 124.419);
--card: oklch(0.157 0.016 125.049);
--card-foreground: oklch(0.987 0.003 124.394);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.174 0.04 125.708);
--primary-foreground: oklch(0.785 0.214 131.603);
--secondary: oklch(0.176 0.034 104.422);
--secondary-foreground: oklch(0.797 0.165 101.8);
--accent: oklch(0.166 0.048 140.228);
--accent-foreground: oklch(0.754 0.25 142.029);
--destructive: oklch(0.638 0.245 30.453);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.174 0.04 125.708);
--chart-1: oklch(0.174 0.04 125.708);
--chart-2: oklch(0.176 0.034 104.422);
--chart-3: oklch(0.166 0.048 140.228);
--chart-4: oklch(0.233 0.046 103.407);
--chart-5: oklch(0.175 0.041 125.741);
}