Tactile is a shadcn/ui theme built around a deep green primary color (#104c26) with deep orange accents (#4c2610). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the deep green primary (#104c26) on a neutral background (#020804).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #020804black |
| Foreground | #06140bblack | #fcfdfcwhite |
| Card | #f5faf7whitesmoke | #040c07black |
| Card foreground | #051009black | #ffffffwhite |
| Popover | #f5faf7whitesmoke | #040c07black |
| Popover foreground | #051009black | #ffffffwhite |
| Primary | #104c26darkgreen | #104c26darkgreen |
| Primary foreground | #a2ebbdpalegreen | #a2ebbdpalegreen |
| Secondary | #26104cmidnightblue | #26104cmidnightblue |
| Secondary foreground | #bda2ebplum | #bda2ebplum |
| Muted | #efecf3whitesmoke | #0e0c13black |
| Muted foreground | #615a6cdimgray | #9993a5darkgray |
| Accent | #4c2610maroon | #4c2610maroon |
| Accent foreground | #ebbda2burlywood | #ebbda2burlywood |
| Destructive | #b62711firebrick | #ed533btomato |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #104c26darkgreen | #104c26darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.21:1 | AAA |
| Text on card | 18.34:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 5.65:1 | AA |
| Accent | 7.76:1 | AAA |
| Destructive | 6.21:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 6.53:1 | AA |
| Accent | 7.76:1 | AAA |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use Tactile in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 158.608);
--foreground: oklch(0.173 0.027 155.628);
--muted: oklch(0.948 0.009 302.786);
--muted-foreground: oklch(0.482 0.029 301.997);
--popover: oklch(0.98 0.008 158.551);
--popover-foreground: oklch(0.157 0.023 157.092);
--card: oklch(0.98 0.008 158.551);
--card-foreground: oklch(0.157 0.023 157.092);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.368 0.088 151.212);
--primary-foreground: oklch(0.881 0.097 156.04);
--secondary: oklch(0.247 0.103 294.353);
--secondary-foreground: oklch(0.763 0.106 300.755);
--accent: oklch(0.315 0.066 48.671);
--accent-foreground: oklch(0.833 0.065 51.594);
--destructive: oklch(0.507 0.182 31.571);
--destructive-foreground: oklch(0.99 0.004 27.953);
--ring: oklch(0.368 0.088 151.212);
--chart-1: oklch(0.368 0.088 151.212);
--chart-2: oklch(0.247 0.103 294.353);
--chart-3: oklch(0.315 0.066 48.671);
--chart-4: oklch(0.271 0.116 293.912);
--chart-5: oklch(0.372 0.091 150.905);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.017 158.506);
--foreground: oklch(0.993 0.002 158.681);
--muted: oklch(0.161 0.014 301.604);
--muted-foreground: oklch(0.673 0.027 302.316);
--popover: oklch(0.141 0.019 158.346);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.019 158.346);
--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.368 0.088 151.212);
--primary-foreground: oklch(0.881 0.097 156.04);
--secondary: oklch(0.247 0.103 294.353);
--secondary-foreground: oklch(0.763 0.106 300.755);
--accent: oklch(0.315 0.066 48.671);
--accent-foreground: oklch(0.833 0.065 51.594);
--destructive: oklch(0.647 0.194 31.428);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.368 0.088 151.212);
--chart-1: oklch(0.368 0.088 151.212);
--chart-2: oklch(0.247 0.103 294.353);
--chart-3: oklch(0.315 0.066 48.671);
--chart-4: oklch(0.271 0.116 293.912);
--chart-5: oklch(0.372 0.091 150.905);
}