Twister is a shadcn/ui theme built around a vivid teal primary color (#12a17b) with vivid cyan accents (#127fa1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#12a17b) on a teal-tinted background (#070e0c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070e0cblack |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #fcfcfcsnow | #08110fblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #070e0cblack |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #12a17bdarkcyan | #12a17bdarkcyan |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #12a133forestgreen | #12a133forestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eef2efwhitesmoke | #0d110eblack |
| Muted foreground | #3d483fdarkslategray | #b7c2basilver |
| Accent | #127fa1darkcyan | #127fa1darkcyan |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #692602maroon | #ec5504orangered |
| Destructive foreground | #fec0a0navajowhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #12a17bdarkcyan | #12a17bdarkcyan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 3.29:1 | AA Large |
| Secondary button | 3.41:1 | AA Large |
| Muted text | 8.42:1 | AAA |
| Accent | 4.57:1 | AA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.16:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 3.29:1 | AA Large |
| Secondary button | 3.41:1 | AA Large |
| Muted text | 10.34:1 | AAA |
| Accent | 4.57:1 | AA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Twister in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.956 0.005 153.149);
--muted-foreground: oklch(0.388 0.019 152.397);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.63 0.124 167.976);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.617 0.186 145.539);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.557 0.102 225.414);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.364 0.106 43.223);
--destructive-foreground: oklch(0.857 0.083 49.514);
--ring: oklch(0.63 0.124 167.976);
--chart-1: oklch(0.63 0.124 167.976);
--chart-2: oklch(0.617 0.186 145.539);
--chart-3: oklch(0.557 0.102 225.414);
--chart-4: oklch(0.656 0.198 145.48);
--chart-5: oklch(0.637 0.127 167.612);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.012 177.152);
--foreground: oklch(0.994 0.002 178.728);
--muted: oklch(0.173 0.008 152.441);
--muted-foreground: oklch(0.803 0.016 152.907);
--popover: oklch(0.154 0.012 177.152);
--popover-foreground: oklch(0.994 0.002 178.728);
--card: oklch(0.169 0.015 176.17);
--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.63 0.124 167.976);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.617 0.186 145.539);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.557 0.102 225.414);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.646 0.199 40.488);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.63 0.124 167.976);
--chart-1: oklch(0.63 0.124 167.976);
--chart-2: oklch(0.617 0.186 145.539);
--chart-3: oklch(0.557 0.102 225.414);
--chart-4: oklch(0.656 0.198 145.48);
--chart-5: oklch(0.637 0.127 167.612);
}