Turbulent is a shadcn/ui theme built around a vivid indigo primary color (#3405e1) with neutral gray accents (#d8d8da). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the vivid indigo primary (#3405e1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #000000black |
| Foreground | #07050fblack | #ffffffwhite |
| Card | #f9f8fcghostwhite | #000000black |
| Card foreground | #07050fblack | #ffffffwhite |
| Popover | #f9f8fcghostwhite | #000000black |
| Popover foreground | #07050fblack | #ffffffwhite |
| Primary | #3405e1mediumblue | #3405e1mediumblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d8d8dagainsboro | #302f32darkslategray |
| Secondary foreground | #3f3e42darkslategray | #c9c8cbsilver |
| Muted | #dcd8e8gainsboro | #1a1727black |
| Muted foreground | #515152darkslategray | #adadaedarkgray |
| Accent | #d8d8dagainsboro | #302f32darkslategray |
| Accent foreground | #3f3e42darkslategray | #c9c8cbsilver |
| Destructive | #721709maroon | #ee3c20orangered |
| Destructive foreground | #f9bcb3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3405e1mediumblue | #3405e1mediumblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.11:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 9.31:1 | AAA |
| Secondary button | 7.43:1 | AAA |
| Muted text | 5.69:1 | AA |
| Accent | 7.43:1 | AAA |
| Destructive | 7.00:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 9.31:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 7.85:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Turbulent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 296.229);
--foreground: oklch(0.126 0.025 294.648);
--muted: oklch(0.891 0.022 295.882);
--muted-foreground: oklch(0.435 0.003 296.218);
--popover: oklch(0.981 0.005 296.229);
--popover-foreground: oklch(0.126 0.025 294.648);
--card: oklch(0.981 0.005 296.229);
--card-foreground: oklch(0.126 0.025 294.648);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.431 0.273 272.944);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.882 0.003 296.265);
--secondary-foreground: oklch(0.365 0.007 296.003);
--accent: oklch(0.882 0.003 296.265);
--accent-foreground: oklch(0.365 0.007 296.003);
--destructive: oklch(0.362 0.127 31.647);
--destructive-foreground: oklch(0.849 0.072 28.604);
--ring: oklch(0.431 0.273 272.944);
--chart-1: oklch(0.431 0.273 272.944);
--chart-2: oklch(0.882 0.003 296.265);
--chart-3: oklch(0.882 0.003 296.265);
--chart-4: oklch(0.906 0.003 296.28);
--chart-5: oklch(0.433 0.278 272.175);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.215 0.031 293.556);
--muted-foreground: oklch(0.747 0.002 296.273);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.431 0.273 272.944);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.307 0.005 296.021);
--secondary-foreground: oklch(0.834 0.004 296.233);
--accent: oklch(0.307 0.005 296.021);
--accent-foreground: oklch(0.834 0.004 296.233);
--destructive: oklch(0.625 0.218 31.641);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.431 0.273 272.944);
--chart-1: oklch(0.431 0.273 272.944);
--chart-2: oklch(0.307 0.005 296.021);
--chart-3: oklch(0.307 0.005 296.021);
--chart-4: oklch(0.337 0.006 296.011);
--chart-5: oklch(0.433 0.278 272.175);
}