Unwitting is a shadcn/ui theme built around a deep teal primary color (#0f6567) with deep red accents (#67100f). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#0f6567) on a teal-tinted background (#051010).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #051010black |
| Foreground | #020d0dblack | #ffffffwhite |
| Card | #ffffffwhite | #051010black |
| Card foreground | #020d0dblack | #ffffffwhite |
| Popover | #ffffffwhite | #051010black |
| Popover foreground | #020d0dblack | #ffffffwhite |
| Primary | #0f6567teal | #0f6567teal |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #67100fmaroon | #67100fmaroon |
| Secondary foreground | #f4b4b3lightpink | #f4b4b3lightpink |
| Muted | #e2dadagainsboro | #251d1dblack |
| Muted foreground | #5c4d4ddimgray | #b2a4a3darkgray |
| Accent | #67100fmaroon | #67100fmaroon |
| Accent foreground | #f4b4b3lightpink | #f4b4b3lightpink |
| Destructive | #931b0bdarkred | #e82b11orangered |
| Destructive foreground | #fcd9d4mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f6567teal | #0f6567teal |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 5.81:1 | AA |
| Accent | 7.27:1 | AAA |
| Destructive | 6.66:1 | AA |
| Text on background | 19.35:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 6.84:1 | AA |
| Accent | 7.27:1 | AAA |
| Destructive | 4.38:1 | AA Large |
Paste this into your globals.css to use Unwitting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.147 0.02 196.394);
--muted: oklch(0.895 0.009 18.509);
--muted-foreground: oklch(0.435 0.02 19.104);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.147 0.02 196.394);
--card: oklch(1 0 180);
--card-foreground: oklch(0.147 0.02 196.394);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.462 0.075 196.705);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.334 0.12 27.351);
--secondary-foreground: oklch(0.829 0.075 19.896);
--accent: oklch(0.334 0.12 27.351);
--accent-foreground: oklch(0.829 0.075 19.896);
--destructive: oklch(0.431 0.157 31.02);
--destructive-foreground: oklch(0.913 0.04 26.788);
--ring: oklch(0.462 0.075 196.705);
--chart-1: oklch(0.462 0.075 196.705);
--chart-2: oklch(0.334 0.12 27.351);
--chart-3: oklch(0.334 0.12 27.351);
--chart-4: oklch(0.363 0.132 27.527);
--chart-5: oklch(0.467 0.076 196.718);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.018 196.825);
--foreground: oklch(1 0 180);
--muted: oklch(0.241 0.012 19.183);
--muted-foreground: oklch(0.73 0.017 18.734);
--popover: oklch(0.16 0.018 196.825);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.16 0.018 196.825);
--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.462 0.075 196.705);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.334 0.12 27.351);
--secondary-foreground: oklch(0.829 0.075 19.896);
--accent: oklch(0.334 0.12 27.351);
--accent-foreground: oklch(0.829 0.075 19.896);
--destructive: oklch(0.601 0.225 30.933);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.462 0.075 196.705);
--chart-1: oklch(0.462 0.075 196.705);
--chart-2: oklch(0.334 0.12 27.351);
--chart-3: oklch(0.334 0.12 27.351);
--chart-4: oklch(0.363 0.132 27.527);
--chart-5: oklch(0.467 0.076 196.718);
}