Contention is a shadcn/ui theme built around a near-black primary color (#060406) with near-black accents (#060406). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the near-black primary (#060406) on a purple-tinted background (#0a040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #0a040bblack |
| Foreground | #0a030cblack | #f9f5faghostwhite |
| Card | #fdfbfewhite | #0a040bblack |
| Card foreground | #0a030cblack | #f9f5faghostwhite |
| Popover | #fdfbfewhite | #0a040bblack |
| Popover foreground | #0a030cblack | #f9f5faghostwhite |
| Primary | #060406black | #060406black |
| Primary foreground | #ab88b4darkgray | #ab88b4darkgray |
| Secondary | #050406black | #050406black |
| Secondary foreground | #9588b4darkgray | #9588b4darkgray |
| Muted | #dad8dfgainsboro | #222027black |
| Muted foreground | #535256darkslategray | #aaa9addarkgray |
| Accent | #060406black | #060406black |
| Accent foreground | #b488a7rosybrown | #b488a7rosybrown |
| Destructive | #db4206orangered | #e04406orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #060406black | #060406black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 6.72:1 | AA |
| Secondary button | 6.29:1 | AA |
| Muted text | 5.49:1 | AA |
| Accent | 6.83:1 | AA |
| Destructive | 4.38:1 | AA Large |
| Text on background | 18.82:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 6.72:1 | AA |
| Secondary button | 6.29:1 | AA |
| Muted text | 6.85:1 | AA |
| Accent | 6.83:1 | AA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Contention in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 319.445);
--foreground: oklch(0.121 0.029 321.061);
--muted: oklch(0.886 0.009 299.868);
--muted-foreground: oklch(0.442 0.006 299.826);
--popover: oklch(0.991 0.003 319.445);
--popover-foreground: oklch(0.121 0.029 321.061);
--card: oklch(0.991 0.003 319.445);
--card-foreground: oklch(0.121 0.029 321.061);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.112 0.009 320.19);
--primary-foreground: oklch(0.675 0.076 319.464);
--secondary: oklch(0.11 0.008 300.112);
--secondary-foreground: oklch(0.654 0.067 298.282);
--accent: oklch(0.112 0.009 336.077);
--accent-foreground: oklch(0.679 0.069 337.674);
--destructive: oklch(0.596 0.198 36.873);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.112 0.009 320.19);
--chart-1: oklch(0.112 0.009 320.19);
--chart-2: oklch(0.11 0.008 300.112);
--chart-3: oklch(0.112 0.009 336.077);
--chart-4: oklch(0.149 0.013 298.572);
--chart-5: oklch(0.111 0.011 320.29);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.024 320.921);
--foreground: oklch(0.974 0.009 319.447);
--muted: oklch(0.25 0.012 299.209);
--muted-foreground: oklch(0.737 0.005 299.926);
--popover: oklch(0.123 0.024 320.921);
--popover-foreground: oklch(0.974 0.009 319.447);
--card: oklch(0.123 0.024 320.921);
--card-foreground: oklch(0.974 0.009 319.447);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.112 0.009 320.19);
--primary-foreground: oklch(0.675 0.076 319.464);
--secondary: oklch(0.11 0.008 300.112);
--secondary-foreground: oklch(0.654 0.067 298.282);
--accent: oklch(0.112 0.009 336.077);
--accent-foreground: oklch(0.679 0.069 337.674);
--destructive: oklch(0.606 0.201 36.833);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.112 0.009 320.19);
--chart-1: oklch(0.112 0.009 320.19);
--chart-2: oklch(0.11 0.008 300.112);
--chart-3: oklch(0.112 0.009 336.077);
--chart-4: oklch(0.149 0.013 298.572);
--chart-5: oklch(0.111 0.011 320.29);
}