Sorrowful is a shadcn/ui theme built around a light orange primary color (#f2dbcf) with light violet accents (#dbcff2). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the light orange primary (#f2dbcf) on a neutral background (#080403).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf9f8snow | #080403black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fbf6f4whitesmoke | #0b0604black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf9f8snow | #080403black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #f2dbcfbisque | #f2dbcfbisque |
| Primary foreground | #703a1fsaddlebrown | #703a1fsaddlebrown |
| Secondary | #cff2dbgainsboro | #cff2dbgainsboro |
| Secondary foreground | #092011black | #092011black |
| Muted | #dde9e1gainsboro | #16221ablack |
| Muted foreground | #465d4edarkslategray | #a2b9aadarkgray |
| Accent | #dbcff2gainsboro | #dbcff2gainsboro |
| Accent foreground | #3a1f70midnightblue | #3a1f70midnightblue |
| Destructive | #b31c0ffirebrick | #ee3f2ftomato |
| Destructive foreground | #fef6f6snow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2dbcfbisque | #f2dbcfbisque |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.06:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 14.15:1 | AAA |
| Muted text | 5.72:1 | AA |
| Accent | 8.82:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 20.39:1 | AAA |
| Text on card | 20.10:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 14.15:1 | AAA |
| Muted text | 7.85:1 | AAA |
| Accent | 8.82:1 | AAA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Sorrowful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.004 48.704);
--foreground: oklch(0 0 0);
--muted: oklch(0.923 0.017 156.883);
--muted-foreground: oklch(0.455 0.037 155.474);
--popover: oklch(0.984 0.004 48.704);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.977 0.006 48.679);
--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.906 0.03 48.368);
--primary-foreground: oklch(0.411 0.086 45.823);
--secondary: oklch(0.929 0.048 156.17);
--secondary-foreground: oklch(0.22 0.042 152.295);
--accent: oklch(0.875 0.049 300.587);
--accent-foreground: oklch(0.326 0.132 292.899);
--destructive: oklch(0.494 0.186 30.078);
--destructive-foreground: oklch(0.98 0.009 23.667);
--ring: oklch(0.906 0.03 48.368);
--chart-1: oklch(0.906 0.03 48.368);
--chart-2: oklch(0.929 0.048 156.17);
--chart-3: oklch(0.875 0.049 300.587);
--chart-4: oklch(0.947 0.036 156.47);
--chart-5: oklch(0.906 0.032 48.349);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.011 55.607);
--foreground: oklch(1 0 180);
--muted: oklch(0.238 0.023 155.065);
--muted-foreground: oklch(0.763 0.033 156.353);
--popover: oklch(0.115 0.011 55.607);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.131 0.012 55.378);
--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.906 0.03 48.368);
--primary-foreground: oklch(0.411 0.086 45.823);
--secondary: oklch(0.929 0.048 156.17);
--secondary-foreground: oklch(0.22 0.042 152.295);
--accent: oklch(0.875 0.049 300.587);
--accent-foreground: oklch(0.326 0.132 292.899);
--destructive: oklch(0.629 0.214 29.562);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.906 0.03 48.368);
--chart-1: oklch(0.906 0.03 48.368);
--chart-2: oklch(0.929 0.048 156.17);
--chart-3: oklch(0.875 0.049 300.587);
--chart-4: oklch(0.947 0.036 156.47);
--chart-5: oklch(0.906 0.032 48.349);
}