Confirmation is a shadcn/ui theme built around a muted deep indigo primary color (#2b2640) with muted deep violet accents (#382640). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep indigo primary (#2b2640) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020104black |
| Foreground | #010104black | #ffffffwhite |
| Card | #ffffffwhite | #020104black |
| Card foreground | #010104black | #ffffffwhite |
| Popover | #ffffffwhite | #020104black |
| Popover foreground | #010104black | #ffffffwhite |
| Primary | #2b2640darkslategray | #2b2640darkslategray |
| Primary foreground | #c4bfd9thistle | #c4bfd9thistle |
| Secondary | #262e40darkslategray | #262e40darkslategray |
| Secondary foreground | #bfc7d9lightsteelblue | #bfc7d9lightsteelblue |
| Muted | #ebeceflavender | #101114black |
| Muted foreground | #4b4e53darkslategray | #acafb4darkgray |
| Accent | #382640darkslategray | #382640darkslategray |
| Accent foreground | #d1bfd9thistle | #d1bfd9thistle |
| Destructive | #8f310fsaddlebrown | #e95d2bchocolate |
| Destructive foreground | #fbdfd5antiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2b2640darkslategray | #2b2640darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.84:1 | AAA |
| Text on card | 20.84:1 | AAA |
| Primary button | 8.14:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 7.09:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 6.34:1 | AA |
| Text on background | 20.82:1 | AAA |
| Text on card | 20.82:1 | AAA |
| Primary button | 8.14:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 8.57:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 6.06:1 | AA |
Paste this into your globals.css to use Confirmation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.072 0.022 292.972);
--muted: oklch(0.944 0.003 265.99);
--muted-foreground: oklch(0.422 0.01 265.892);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.072 0.022 292.972);
--card: oklch(1 0 180);
--card-foreground: oklch(0.072 0.022 292.972);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.286 0.048 291.468);
--primary-foreground: oklch(0.816 0.037 293.969);
--secondary: oklch(0.302 0.035 265.13);
--secondary-foreground: oklch(0.829 0.027 265.83);
--accent: oklch(0.301 0.052 314.655);
--accent-foreground: oklch(0.827 0.041 315.217);
--destructive: oklch(0.447 0.134 38.219);
--destructive-foreground: oklch(0.924 0.033 41.071);
--ring: oklch(0.286 0.048 291.468);
--chart-1: oklch(0.286 0.048 291.468);
--chart-2: oklch(0.302 0.035 265.13);
--chart-3: oklch(0.301 0.052 314.655);
--chart-4: oklch(0.33 0.039 265.095);
--chart-5: oklch(0.282 0.054 290.977);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.077 0.017 293.53);
--foreground: oklch(1 0 180);
--muted: oklch(0.178 0.005 265.847);
--muted-foreground: oklch(0.752 0.008 265.956);
--popover: oklch(0.077 0.017 293.53);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.077 0.017 293.53);
--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.286 0.048 291.468);
--primary-foreground: oklch(0.816 0.037 293.969);
--secondary: oklch(0.302 0.035 265.13);
--secondary-foreground: oklch(0.829 0.027 265.83);
--accent: oklch(0.301 0.052 314.655);
--accent-foreground: oklch(0.827 0.041 315.217);
--destructive: oklch(0.652 0.184 38.931);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.286 0.048 291.468);
--chart-1: oklch(0.286 0.048 291.468);
--chart-2: oklch(0.302 0.035 265.13);
--chart-3: oklch(0.301 0.052 314.655);
--chart-4: oklch(0.33 0.039 265.095);
--chart-5: oklch(0.282 0.054 290.977);
}