Witty is a shadcn/ui theme built around a vivid light teal primary color (#9cfcd7) with neutral gray accents (#ccd1cf). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid light teal primary (#9cfcd7) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #010403black |
| Foreground | #010403black | #f6f9f8whitesmoke |
| Card | #fbfefdwhite | #010403black |
| Card foreground | #010403black | #f6f9f8whitesmoke |
| Popover | #fbfefdwhite | #010403black |
| Popover foreground | #010403black | #f6f9f8whitesmoke |
| Primary | #9cfcd7aquamarine | #9cfcd7aquamarine |
| Primary foreground | #03633edarkslategray | #03633edarkslategray |
| Secondary | #ccd1cflightgrey | #111815black |
| Secondary foreground | #323936darkslategray | #a0bab0darkgray |
| Muted | #d2eae1gainsboro | #152d24darkslategray |
| Muted foreground | #4c5250darkslategray | #adb3b1darkgray |
| Accent | #ccd1cflightgrey | #111815black |
| Accent foreground | #323936darkslategray | #a0bab0darkgray |
| Destructive | #a23b0bsaddlebrown | #f06828chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9cfcd7aquamarine | #9cfcd7aquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 6.07:1 | AA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 6.29:1 | AA |
| Accent | 7.68:1 | AAA |
| Destructive | 6.62:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 6.07:1 | AA |
| Secondary button | 8.72:1 | AAA |
| Muted text | 6.87:1 | AA |
| Accent | 8.72:1 | AAA |
| Destructive | 6.70:1 | AA |
Paste this into your globals.css to use Witty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 171.5);
--foreground: oklch(0.098 0.011 171.837);
--muted: oklch(0.916 0.028 170.682);
--muted-foreground: oklch(0.433 0.009 170.98);
--popover: oklch(0.994 0.003 171.5);
--popover-foreground: oklch(0.098 0.011 171.837);
--card: oklch(0.994 0.003 171.5);
--card-foreground: oklch(0.098 0.011 171.837);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.922 0.106 167.626);
--primary-foreground: oklch(0.442 0.101 159.128);
--secondary: oklch(0.857 0.007 171.354);
--secondary-foreground: oklch(0.337 0.01 170.737);
--accent: oklch(0.857 0.007 171.354);
--accent-foreground: oklch(0.337 0.01 170.737);
--destructive: oklch(0.492 0.146 40.53);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.922 0.106 167.626);
--chart-1: oklch(0.922 0.106 167.626);
--chart-2: oklch(0.857 0.007 171.354);
--chart-3: oklch(0.857 0.007 171.354);
--chart-4: oklch(0.88 0.006 171.398);
--chart-5: oklch(0.925 0.109 167.502);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.011 171.829);
--foreground: oklch(0.98 0.004 171.465);
--muted: oklch(0.275 0.035 167.084);
--muted-foreground: oklch(0.761 0.008 171.292);
--popover: oklch(0.098 0.011 171.829);
--popover-foreground: oklch(0.98 0.004 171.465);
--card: oklch(0.098 0.011 171.829);
--card-foreground: oklch(0.98 0.004 171.465);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.922 0.106 167.626);
--primary-foreground: oklch(0.442 0.101 159.128);
--secondary: oklch(0.2 0.011 169.891);
--secondary-foreground: oklch(0.768 0.032 170.34);
--accent: oklch(0.2 0.011 169.891);
--accent-foreground: oklch(0.768 0.032 170.34);
--destructive: oklch(0.677 0.183 42.221);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.922 0.106 167.626);
--chart-1: oklch(0.922 0.106 167.626);
--chart-2: oklch(0.2 0.011 169.891);
--chart-3: oklch(0.2 0.011 169.891);
--chart-4: oklch(0.236 0.015 169.679);
--chart-5: oklch(0.925 0.109 167.502);
}