Scornful is a shadcn/ui theme built around an orange primary color (#d27d56) with cyan accents (#56abd2). The light mode uses a neutral background (#fcf9f7). Dark mode keeps the orange primary (#d27d56) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf9f7snow | #000000black |
| Foreground | #040201black | #fdfcfcsnow |
| Card | #fcf9f7snow | #000000black |
| Card foreground | #040201black | #fdfcfcsnow |
| Popover | #fcf9f7snow | #000000black |
| Popover foreground | #040201black | #fdfcfcsnow |
| Primary | #d27d56peru | #d27d56peru |
| Primary foreground | #000000black | #000000black |
| Secondary | #56abd2cornflowerblue | #56abd2cornflowerblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #eaeef1lavender | #0e1315black |
| Muted foreground | #556972dimgray | #8da1aadarkgray |
| Accent | #56abd2cornflowerblue | #56abd2cornflowerblue |
| Accent foreground | #000000black | #000000black |
| Destructive | #913b0dsaddlebrown | #e65d14chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d27d56peru | #d27d56peru |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.76:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 4.94:1 | AA |
| Accent | 8.12:1 | AAA |
| Destructive | 7.37:1 | AAA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 6.94:1 | AA |
| Accent | 8.12:1 | AAA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Scornful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.004 46.808);
--foreground: oklch(0.091 0.009 54.269);
--muted: oklch(0.947 0.006 226.935);
--muted-foreground: oklch(0.507 0.029 227.723);
--popover: oklch(0.984 0.004 46.808);
--popover-foreground: oklch(0.091 0.009 54.269);
--card: oklch(0.984 0.004 46.808);
--card-foreground: oklch(0.091 0.009 54.269);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.673 0.119 45.073);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.703 0.1 230.548);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.703 0.1 230.548);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.465 0.128 43.623);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.673 0.119 45.073);
--chart-1: oklch(0.673 0.119 45.073);
--chart-2: oklch(0.703 0.1 230.548);
--chart-3: oklch(0.703 0.1 230.548);
--chart-4: oklch(0.723 0.094 229.945);
--chart-5: oklch(0.675 0.125 44.934);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 46.842);
--muted: oklch(0.183 0.009 227.572);
--muted-foreground: oklch(0.696 0.027 227.397);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 46.842);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.001 46.842);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.673 0.119 45.073);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.703 0.1 230.548);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.703 0.1 230.548);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.647 0.185 42.793);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.673 0.119 45.073);
--chart-1: oklch(0.673 0.119 45.073);
--chart-2: oklch(0.703 0.1 230.548);
--chart-3: oklch(0.703 0.1 230.548);
--chart-4: oklch(0.723 0.094 229.945);
--chart-5: oklch(0.675 0.125 44.934);
}