Scornful is a shadcn/ui theme built around a light green primary color (#eaecd5) with muted light green accents (#d7d8ca). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the light green primary (#eaecd5) on a neutral background (#060703).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #060703black |
| Foreground | #070802black | #fdfdfcwhite |
| Card | #fbfcf8snow | #0a0a05black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #fdfdfcwhite | #060703black |
| Popover foreground | #070802black | #fdfdfcwhite |
| Primary | #eaecd5beige | #eaecd5beige |
| Primary foreground | #1b1c0dblack | #1b1c0dblack |
| Secondary | #ecece9linen | #333527darkslategray |
| Secondary foreground | #57594adarkolivegreen | #cecfbesilver |
| Muted | #e4e7cbgainsboro | #313418darkslategray |
| Muted foreground | #494b3adarkslategray | #c4c5b4silver |
| Accent | #d7d8calightgrey | #46492cdarkolivegreen |
| Accent foreground | #3f412fdarkslategray | #dcdec9lightgrey |
| Destructive | #702405maroon | #f4581aorangered |
| Destructive foreground | #fbc3aclightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eaecd5beige | #eaecd5beige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 14.31:1 | AAA |
| Secondary button | 6.06:1 | AA |
| Muted text | 7.03:1 | AAA |
| Accent | 7.27:1 | AAA |
| Destructive | 6.96:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 14.31:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 7.32:1 | AAA |
| Accent | 6.78:1 | AA |
| Destructive | 6.26:1 | AA |
Paste this into your globals.css to use Scornful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 111.056);
--foreground: oklch(0.13 0.017 112.305);
--muted: oklch(0.917 0.037 111.755);
--muted-foreground: oklch(0.406 0.028 112.277);
--popover: oklch(0.994 0.002 111.056);
--popover-foreground: oklch(0.13 0.017 112.305);
--card: oklch(0.989 0.004 111.098);
--card-foreground: oklch(0.103 0.014 112.305);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.935 0.031 111.627);
--primary-foreground: oklch(0.221 0.028 113.354);
--secondary: oklch(0.943 0.005 111.111);
--secondary-foreground: oklch(0.458 0.023 111.949);
--accent: oklch(0.878 0.02 111.436);
--accent-foreground: oklch(0.368 0.029 112.486);
--destructive: oklch(0.373 0.115 38.81);
--destructive-foreground: oklch(0.861 0.072 42.59);
--ring: oklch(0.935 0.031 111.627);
--chart-1: oklch(0.935 0.031 111.627);
--chart-2: oklch(0.943 0.005 111.111);
--chart-3: oklch(0.878 0.02 111.436);
--chart-4: oklch(0.965 0.003 111.073);
--chart-5: oklch(0.937 0.033 111.673);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.011 111.889);
--foreground: oklch(0.993 0.001 111.034);
--muted: oklch(0.315 0.044 113.65);
--muted-foreground: oklch(0.818 0.024 111.553);
--popover: oklch(0.125 0.011 111.889);
--popover-foreground: oklch(0.993 0.001 111.034);
--card: oklch(0.143 0.012 111.889);
--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.935 0.031 111.627);
--primary-foreground: oklch(0.221 0.028 113.354);
--secondary: oklch(0.322 0.023 112.355);
--secondary-foreground: oklch(0.85 0.023 111.516);
--accent: oklch(0.396 0.046 113.16);
--accent-foreground: oklch(0.895 0.029 111.618);
--destructive: oklch(0.663 0.203 38.657);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.935 0.031 111.627);
--chart-1: oklch(0.935 0.031 111.627);
--chart-2: oklch(0.322 0.023 112.355);
--chart-3: oklch(0.396 0.046 113.16);
--chart-4: oklch(0.356 0.027 112.395);
--chart-5: oklch(0.937 0.033 111.673);
}