Touch is a shadcn/ui theme built around a vivid green primary color (#36cd18) with vivid purple accents (#af18cd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#36cd18) on a neutral background (#040703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040703black |
| Foreground | #071504black | #f6faf5whitesmoke |
| Card | #ffffffwhite | #040703black |
| Card foreground | #071504black | #f6faf5whitesmoke |
| Popover | #ffffffwhite | #040703black |
| Popover foreground | #071504black | #f6faf5whitesmoke |
| Primary | #36cd18limegreen | #36cd18limegreen |
| Primary foreground | #061703black | #061703black |
| Secondary | #af18cddarkorchid | #af18cddarkorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e2dee3gainsboro | #201c21black |
| Muted foreground | #5a575bdimgray | #a7a4a8darkgray |
| Accent | #af18cddarkorchid | #af18cddarkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #681008maroon | #ed2412orangered |
| Destructive foreground | #f9b0aalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #36cd18limegreen | #36cd18limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.78:1 | AAA |
| Text on card | 18.78:1 | AAA |
| Primary button | 8.78:1 | AAA |
| Secondary button | 5.46:1 | AA |
| Muted text | 5.36:1 | AA |
| Accent | 5.46:1 | AA |
| Destructive | 7.07:1 | AAA |
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 8.78:1 | AAA |
| Secondary button | 5.46:1 | AA |
| Muted text | 6.79:1 | AA |
| Accent | 5.46:1 | AA |
| Destructive | 4.31:1 | AA Large |
Paste this into your globals.css to use Touch in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.178 0.041 139.288);
--muted: oklch(0.905 0.007 320.543);
--muted-foreground: oklch(0.462 0.007 320.554);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.178 0.041 139.288);
--card: oklch(1 0 180);
--card-foreground: oklch(0.178 0.041 139.288);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.743 0.238 141.214);
--primary-foreground: oklch(0.182 0.048 139.041);
--secondary: oklch(0.556 0.256 319.592);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.556 0.256 319.592);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.337 0.123 30.009);
--destructive-foreground: oklch(0.824 0.086 24.903);
--ring: oklch(0.743 0.238 141.214);
--chart-1: oklch(0.743 0.238 141.214);
--chart-2: oklch(0.556 0.256 319.592);
--chart-3: oklch(0.556 0.256 319.592);
--chart-4: oklch(0.584 0.269 319.568);
--chart-5: oklch(0.751 0.243 141.297);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.018 139.167);
--foreground: oklch(0.98 0.008 140.519);
--muted: oklch(0.234 0.01 320.595);
--muted-foreground: oklch(0.722 0.006 320.545);
--popover: oklch(0.122 0.018 139.167);
--popover-foreground: oklch(0.98 0.008 140.519);
--card: oklch(0.122 0.018 139.167);
--card-foreground: oklch(0.98 0.008 140.519);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.743 0.238 141.214);
--primary-foreground: oklch(0.182 0.048 139.041);
--secondary: oklch(0.556 0.256 319.592);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.556 0.256 319.592);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.606 0.233 30.093);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.743 0.238 141.214);
--chart-1: oklch(0.743 0.238 141.214);
--chart-2: oklch(0.556 0.256 319.592);
--chart-3: oklch(0.556 0.256 319.592);
--chart-4: oklch(0.584 0.269 319.568);
--chart-5: oklch(0.751 0.243 141.297);
}