Scornful is a shadcn/ui theme built around a muted light green primary color (#e9f1eb) with muted light red accents (#f1ebe9). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the muted light green primary (#e9f1eb) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf8mintcream | #010402black |
| Foreground | #051409black | #f8fcf9mintcream |
| Card | #f2fcf5honeydew | #030704black |
| Card foreground | #041007black | #fcfdfcwhite |
| Popover | #f7fdf8mintcream | #010402black |
| Popover foreground | #051409black | #f8fcf9mintcream |
| Primary | #e9f1ebwhitesmoke | #e9f1ebwhitesmoke |
| Primary foreground | #19291dblack | #19291dblack |
| Secondary | #ebe9f1lavender | #ebe9f1lavender |
| Secondary foreground | #494068darkslateblue | #494068darkslateblue |
| Muted | #dcd7eagainsboro | #1a1528black |
| Muted foreground | #5f5a6cdimgray | #9793a5darkgray |
| Accent | #f1ebe9linen | #f1ebe9linen |
| Accent foreground | #684940darkolivegreen | #684940darkolivegreen |
| Destructive | #811d03maroon | #fa5329tomato |
| Destructive foreground | #fdc7b9lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e9f1ebwhitesmoke | #e9f1ebwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.34:1 | AAA |
| Text on card | 18.54:1 | AAA |
| Primary button | 13.29:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 4.72:1 | AA |
| Accent | 6.80:1 | AA |
| Destructive | 6.65:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 13.29:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 6.80:1 | AA |
| Destructive | 6.31:1 | AA |
Paste this into your globals.css to use Scornful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.01 153.081);
--foreground: oklch(0.175 0.033 150.685);
--muted: oklch(0.889 0.025 296.565);
--muted-foreground: oklch(0.48 0.029 295.985);
--popover: oklch(0.988 0.01 153.081);
--popover-foreground: oklch(0.175 0.033 150.685);
--card: oklch(0.983 0.014 152.998);
--card-foreground: oklch(0.158 0.028 151.57);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.951 0.013 153.023);
--primary-foreground: oklch(0.263 0.031 151.086);
--secondary: oklch(0.938 0.012 296.856);
--secondary-foreground: oklch(0.399 0.068 293.835);
--accent: oklch(0.944 0.008 37.703);
--accent-foreground: oklch(0.438 0.045 37.622);
--destructive: oklch(0.397 0.139 34.021);
--destructive-foreground: oklch(0.874 0.065 34.411);
--ring: oklch(0.951 0.013 153.023);
--chart-1: oklch(0.951 0.013 153.023);
--chart-2: oklch(0.938 0.012 296.856);
--chart-3: oklch(0.944 0.008 37.703);
--chart-4: oklch(0.964 0.007 296.956);
--chart-5: oklch(0.952 0.014 152.996);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.012 152.69);
--foreground: oklch(0.987 0.005 153.152);
--muted: oklch(0.212 0.036 293.835);
--muted-foreground: oklch(0.671 0.027 296.365);
--popover: oklch(0.096 0.012 152.69);
--popover-foreground: oklch(0.987 0.005 153.152);
--card: oklch(0.121 0.015 152.69);
--card-foreground: oklch(0.993 0.003 153.197);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.951 0.013 153.023);
--primary-foreground: oklch(0.263 0.031 151.086);
--secondary: oklch(0.938 0.012 296.856);
--secondary-foreground: oklch(0.399 0.068 293.835);
--accent: oklch(0.944 0.008 37.703);
--accent-foreground: oklch(0.438 0.045 37.622);
--destructive: oklch(0.666 0.21 34.743);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.951 0.013 153.023);
--chart-1: oklch(0.951 0.013 153.023);
--chart-2: oklch(0.938 0.012 296.856);
--chart-3: oklch(0.944 0.008 37.703);
--chart-4: oklch(0.964 0.007 296.956);
--chart-5: oklch(0.952 0.014 152.996);
}