Grief is a shadcn/ui theme built around a cyan primary color (#8fcbd1) with blue accents (#8fa9d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#8fcbd1) on a neutral background (#020304).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020304black |
| Foreground | #020708black | #ffffffwhite |
| Card | #ffffffwhite | #020304black |
| Card foreground | #020708black | #ffffffwhite |
| Popover | #ffffffwhite | #020304black |
| Popover foreground | #020708black | #ffffffwhite |
| Primary | #8fcbd1skyblue | #8fcbd1skyblue |
| Primary foreground | #0d1f21black | #0d1f21black |
| Secondary | #8fd1b7mediumaquamarine | #8fd1b7mediumaquamarine |
| Secondary foreground | #0d2119black | #0d2119black |
| Muted | #d5e6e0gainsboro | #192a23black |
| Muted foreground | #444b48darkslategray | #b4bbb8silver |
| Accent | #8fa9d1lightsteelblue | #8fa9d1lightsteelblue |
| Accent foreground | #0d1521black | #0d1521black |
| Destructive | #73210dmaroon | #e8512cchocolate |
| Destructive foreground | #f7c6balightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8fcbd1skyblue | #8fcbd1skyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 9.37:1 | AAA |
| Secondary button | 9.59:1 | AAA |
| Muted text | 6.93:1 | AA |
| Accent | 7.66:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 20.62:1 | AAA |
| Text on card | 20.62:1 | AAA |
| Primary button | 9.37:1 | AAA |
| Secondary button | 9.59:1 | AAA |
| Muted text | 7.71:1 | AAA |
| Accent | 7.66:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Grief in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.123 0.013 202.317);
--muted: oklch(0.912 0.021 169.965);
--muted-foreground: oklch(0.405 0.01 169.871);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.123 0.013 202.317);
--card: oklch(1 0 180);
--card-foreground: oklch(0.123 0.013 202.317);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.802 0.062 204.691);
--primary-foreground: oklch(0.224 0.023 204.824);
--secondary: oklch(0.809 0.077 167.492);
--secondary-foreground: oklch(0.227 0.03 165.966);
--accent: oklch(0.73 0.065 258.348);
--accent-foreground: oklch(0.194 0.026 258.298);
--destructive: oklch(0.376 0.118 34.731);
--destructive-foreground: oklch(0.868 0.059 34.386);
--ring: oklch(0.802 0.062 204.691);
--chart-1: oklch(0.802 0.062 204.691);
--chart-2: oklch(0.809 0.077 167.492);
--chart-3: oklch(0.73 0.065 258.348);
--chart-4: oklch(0.827 0.07 167.903);
--chart-5: oklch(0.806 0.066 204.7);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.007 202.99);
--foreground: oklch(1 0 180);
--muted: oklch(0.266 0.026 167.351);
--muted-foreground: oklch(0.786 0.009 170.298);
--popover: oklch(0.096 0.007 202.99);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.096 0.007 202.99);
--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.802 0.062 204.691);
--primary-foreground: oklch(0.224 0.023 204.824);
--secondary: oklch(0.809 0.077 167.492);
--secondary-foreground: oklch(0.227 0.03 165.966);
--accent: oklch(0.73 0.065 258.348);
--accent-foreground: oklch(0.194 0.026 258.298);
--destructive: oklch(0.636 0.193 34.923);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.802 0.062 204.691);
--chart-1: oklch(0.802 0.062 204.691);
--chart-2: oklch(0.809 0.077 167.492);
--chart-3: oklch(0.73 0.065 258.348);
--chart-4: oklch(0.827 0.07 167.903);
--chart-5: oklch(0.806 0.066 204.7);
}