Deviance is a shadcn/ui theme built around a deep pink primary color (#430f1d) with deep blue accents (#0f1d43). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the deep pink primary (#430f1d) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #000000black |
| Foreground | #000000black | #faf9fasnow |
| Card | #fcf8f9snow | #000000black |
| Card foreground | #000000black | #faf9fasnow |
| Popover | #fcf8f9snow | #000000black |
| Popover foreground | #000000black | #faf9fasnow |
| Primary | #430f1dmaroon | #430f1dmaroon |
| Primary foreground | #e99bb1lightpink | #e99bb1lightpink |
| Secondary | #1d430fdarkgreen | #1d430fdarkgreen |
| Secondary foreground | #70d747yellowgreen | #70d747yellowgreen |
| Muted | #d4e3cflightgrey | #22301cdarkslategray |
| Muted foreground | #51544fdarkslategray | #acb0abdarkgray |
| Accent | #0f1d43midnightblue | #0f1d43midnightblue |
| Accent foreground | #9bb1e9lightsteelblue | #9bb1e9lightsteelblue |
| Destructive | #95290fsaddlebrown | #da3d16orangered |
| Destructive foreground | #fbe1damistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #430f1dmaroon | #430f1dmaroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 6.17:1 | AA |
| Muted text | 5.73:1 | AA |
| Accent | 7.69:1 | AAA |
| Destructive | 6.49:1 | AA |
| Text on background | 19.99:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 6.17:1 | AA |
| Muted text | 6.32:1 | AA |
| Accent | 7.69:1 | AAA |
| Destructive | 4.50:1 | AA |
Paste this into your globals.css to use Deviance in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 357.859);
--foreground: oklch(0 0 0);
--muted: oklch(0.899 0.031 136.713);
--muted-foreground: oklch(0.441 0.009 136.671);
--popover: oklch(0.982 0.005 357.859);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.005 357.859);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.263 0.081 7.601);
--primary-foreground: oklch(0.772 0.097 1.17);
--secondary: oklch(0.342 0.09 138.28);
--secondary-foreground: oklch(0.787 0.204 138.188);
--accent: oklch(0.244 0.074 265.144);
--accent-foreground: oklch(0.763 0.085 267.686);
--destructive: oklch(0.447 0.147 34.441);
--destructive-foreground: oklch(0.928 0.031 34.305);
--ring: oklch(0.263 0.081 7.601);
--chart-1: oklch(0.263 0.081 7.601);
--chart-2: oklch(0.342 0.09 138.28);
--chart-3: oklch(0.244 0.074 265.144);
--chart-4: oklch(0.383 0.103 138.381);
--chart-5: oklch(0.264 0.084 8.17);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.001 357.748);
--muted: oklch(0.291 0.04 137.114);
--muted-foreground: oklch(0.752 0.008 136.64);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.984 0.001 357.748);
--card: oklch(0 0 0);
--card-foreground: oklch(0.984 0.001 357.748);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.263 0.081 7.601);
--primary-foreground: oklch(0.772 0.097 1.17);
--secondary: oklch(0.342 0.09 138.28);
--secondary-foreground: oklch(0.787 0.204 138.188);
--accent: oklch(0.244 0.074 265.144);
--accent-foreground: oklch(0.763 0.085 267.686);
--destructive: oklch(0.591 0.2 34.17);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.263 0.081 7.601);
--chart-1: oklch(0.263 0.081 7.601);
--chart-2: oklch(0.342 0.09 138.28);
--chart-3: oklch(0.244 0.074 265.144);
--chart-4: oklch(0.383 0.103 138.381);
--chart-5: oklch(0.264 0.084 8.17);
}