Mortified is a shadcn/ui theme built around a muted deep yellow primary color (#272620) with muted deep green accents (#242720). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted deep yellow primary (#272620) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #070703black |
| Foreground | #0c0b04black | #ffffffwhite |
| Card | #fdfcf7snow | #0b0a04black |
| Card foreground | #080702black | #ffffffwhite |
| Popover | #fefefbwhite | #070703black |
| Popover foreground | #0c0b04black | #ffffffwhite |
| Primary | #272620darkslategray | #272620darkslategray |
| Primary foreground | #c3c1b7silver | #c3c1b7silver |
| Secondary | #272320black | #272320black |
| Secondary foreground | #c3bcb7silver | #c3bcb7silver |
| Muted | #dddbd9gainsboro | #262322black |
| Muted foreground | #6b5c52dimgray | #ad9e94rosybrown |
| Accent | #242720black | #242720black |
| Accent foreground | #bec3b7silver | #bec3b7silver |
| Destructive | #7c0d03maroon | #fa4433tomato |
| Destructive foreground | #fdbab4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #272620darkslategray | #272620darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 8.38:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 4.64:1 | AA |
| Accent | 8.42:1 | AAA |
| Destructive | 6.69:1 | AA |
| Text on background | 20.18:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 8.38:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 8.42:1 | AAA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Mortified in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 101.345);
--foreground: oklch(0.147 0.018 104.018);
--muted: oklch(0.893 0.004 56.378);
--muted-foreground: oklch(0.486 0.025 55.734);
--popover: oklch(0.996 0.004 101.345);
--popover-foreground: oklch(0.147 0.018 104.018);
--card: oklch(0.991 0.007 101.403);
--card-foreground: oklch(0.128 0.016 104.31);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.268 0.01 101.876);
--primary-foreground: oklch(0.81 0.015 101.573);
--secondary: oklch(0.26 0.008 56.035);
--secondary-foreground: oklch(0.798 0.011 56.252);
--accent: oklch(0.267 0.012 125.01);
--accent-foreground: oklch(0.809 0.017 124.653);
--destructive: oklch(0.376 0.145 30.439);
--destructive-foreground: oklch(0.85 0.078 24.716);
--ring: oklch(0.268 0.01 101.876);
--chart-1: oklch(0.268 0.01 101.876);
--chart-2: oklch(0.26 0.008 56.035);
--chart-3: oklch(0.267 0.012 125.01);
--chart-4: oklch(0.291 0.009 56.014);
--chart-5: oklch(0.271 0.014 102.041);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.013 103.787);
--foreground: oklch(1 0 180);
--muted: oklch(0.259 0.005 56.167);
--muted-foreground: oklch(0.71 0.022 56.001);
--popover: oklch(0.126 0.013 103.787);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.014 103.667);
--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.268 0.01 101.876);
--primary-foreground: oklch(0.81 0.015 101.573);
--secondary: oklch(0.26 0.008 56.035);
--secondary-foreground: oklch(0.798 0.011 56.252);
--accent: oklch(0.267 0.012 125.01);
--accent-foreground: oklch(0.809 0.017 124.653);
--destructive: oklch(0.653 0.221 29.534);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.268 0.01 101.876);
--chart-1: oklch(0.268 0.01 101.876);
--chart-2: oklch(0.26 0.008 56.035);
--chart-3: oklch(0.267 0.012 125.01);
--chart-4: oklch(0.291 0.009 56.014);
--chart-5: oklch(0.271 0.014 102.041);
}