Grief is a shadcn/ui theme built around a deep orange primary color (#190c05) with muted light orange accents (#e8e1de). The light mode uses a neutral background (#fdfcfb). Dark mode keeps the deep orange primary (#190c05) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfbsnow | #000000black |
| Foreground | #090401black | #fdfcfcsnow |
| Card | #fdfcfbsnow | #000000black |
| Card foreground | #090401black | #fdfcfcsnow |
| Popover | #fdfcfbsnow | #000000black |
| Popover foreground | #090401black | #fdfcfcsnow |
| Primary | #190c05black | #190c05black |
| Primary foreground | #e19770darksalmon | #e19770darksalmon |
| Secondary | #e8e1degainsboro | #302d2cdarkslategray |
| Secondary foreground | #58463cdarkolivegreen | #cac6c4silver |
| Muted | #eae4e1gainsboro | #1e1815black |
| Muted foreground | #63534bdimgray | #b4a59cdarkgray |
| Accent | #e8e1degainsboro | #302d2cdarkslategray |
| Accent foreground | #58463cdarkolivegreen | #cac6c4silver |
| Destructive | #a33100saddlebrown | #ff621ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #190c05black | #190c05black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 8.06:1 | AAA |
| Secondary button | 6.91:1 | AA |
| Muted text | 5.81:1 | AA |
| Accent | 6.91:1 | AA |
| Destructive | 6.99:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 8.06:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 7.34:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 7.01:1 | AAA |
Paste this into your globals.css to use Grief in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 50.637);
--foreground: oklch(0.115 0.017 62.275);
--muted: oklch(0.923 0.008 50.55);
--muted-foreground: oklch(0.456 0.025 50.004);
--popover: oklch(0.992 0.002 50.637);
--popover-foreground: oklch(0.115 0.017 62.275);
--card: oklch(0.992 0.002 50.637);
--card-foreground: oklch(0.115 0.017 62.275);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.172 0.027 51.306);
--primary-foreground: oklch(0.742 0.103 48.915);
--secondary: oklch(0.915 0.009 50.531);
--secondary-foreground: oklch(0.409 0.03 49.801);
--accent: oklch(0.915 0.009 50.531);
--accent-foreground: oklch(0.409 0.03 49.801);
--destructive: oklch(0.481 0.158 37.998);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.172 0.027 51.306);
--chart-1: oklch(0.172 0.027 51.306);
--chart-2: oklch(0.915 0.009 50.531);
--chart-3: oklch(0.915 0.009 50.531);
--chart-4: oklch(0.939 0.007 50.569);
--chart-5: oklch(0.173 0.028 51.628);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 50.645);
--muted: oklch(0.216 0.011 50.026);
--muted-foreground: oklch(0.732 0.022 50.286);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 50.645);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 50.645);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.172 0.027 51.306);
--primary-foreground: oklch(0.742 0.103 48.915);
--secondary: oklch(0.301 0.005 50.44);
--secondary-foreground: oklch(0.829 0.005 50.583);
--accent: oklch(0.301 0.005 50.44);
--accent-foreground: oklch(0.829 0.005 50.583);
--destructive: oklch(0.692 0.204 39.972);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.172 0.027 51.306);
--chart-1: oklch(0.172 0.027 51.306);
--chart-2: oklch(0.301 0.005 50.44);
--chart-3: oklch(0.301 0.005 50.44);
--chart-4: oklch(0.331 0.006 50.432);
--chart-5: oklch(0.173 0.028 51.628);
}