Mortified is a shadcn/ui theme built around a near-black primary color (#030302) with near-black accents (#030203). The light mode uses a neutral background (#fafcf8). Dark mode keeps the near-black primary (#030302) on a neutral background (#060802).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #060802black |
| Foreground | #0e1405black | #ffffffwhite |
| Card | #f8fbf4whitesmoke | #080c04black |
| Card foreground | #0b1004black | #ffffffwhite |
| Popover | #f8fbf4whitesmoke | #080c04black |
| Popover foreground | #0b1004black | #ffffffwhite |
| Primary | #030302black | #030302black |
| Primary foreground | #9c9e9adarkgray | #9c9e9adarkgray |
| Secondary | #030203black | #030203black |
| Secondary foreground | #9b9a9edarkgray | #9b9a9edarkgray |
| Muted | #dcd1ebgainsboro | #1f142eblack |
| Muted foreground | #3e3748darkslategray | #beb7c8silver |
| Accent | #030203black | #030203black |
| Accent foreground | #9b9a9edarkgray | #9b9a9edarkgray |
| Destructive | #df1001red | #fe4134tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030302black | #030302black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.18:1 | AAA |
| Text on card | 18.42:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 7.77:1 | AAA |
| Accent | 7.39:1 | AAA |
| Destructive | 4.97:1 | AA |
| Text on background | 20.15:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 9.00:1 | AAA |
| Accent | 7.39:1 | AAA |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use Mortified in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 125.138);
--foreground: oklch(0.18 0.031 126.956);
--muted: oklch(0.877 0.037 304.463);
--muted-foreground: oklch(0.352 0.03 303.875);
--popover: oklch(0.984 0.01 125.186);
--popover-foreground: oklch(0.164 0.027 125.947);
--card: oklch(0.984 0.01 125.186);
--card-foreground: oklch(0.164 0.027 125.947);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.092 0.001 125.012);
--primary-foreground: oklch(0.695 0.006 125.165);
--secondary: oklch(0.091 0.001 305.078);
--secondary-foreground: oklch(0.687 0.006 304.923);
--accent: oklch(0.091 0.001 305.078);
--accent-foreground: oklch(0.687 0.006 304.923);
--destructive: oklch(0.572 0.23 29.85);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.092 0.001 125.012);
--chart-1: oklch(0.092 0.001 125.012);
--chart-2: oklch(0.091 0.001 305.078);
--chart-3: oklch(0.091 0.001 305.078);
--chart-4: oklch(0.145 0.001 305.003);
--chart-5: oklch(0.093 0.001 124.964);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.017 124.327);
--foreground: oklch(1 0 180);
--muted: oklch(0.22 0.051 301.616);
--muted-foreground: oklch(0.79 0.024 304.62);
--popover: oklch(0.145 0.02 124.508);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.145 0.02 124.508);
--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.092 0.001 125.012);
--primary-foreground: oklch(0.695 0.006 125.165);
--secondary: oklch(0.091 0.001 305.078);
--secondary-foreground: oklch(0.687 0.006 304.923);
--accent: oklch(0.091 0.001 305.078);
--accent-foreground: oklch(0.687 0.006 304.923);
--destructive: oklch(0.658 0.226 28.932);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.092 0.001 125.012);
--chart-1: oklch(0.092 0.001 125.012);
--chart-2: oklch(0.091 0.001 305.078);
--chart-3: oklch(0.091 0.001 305.078);
--chart-4: oklch(0.145 0.001 305.003);
--chart-5: oklch(0.093 0.001 124.964);
}