Turbulent is a shadcn/ui theme built around a vivid deep blue primary color (#0a2175) with vivid deep green accents (#21750a). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep blue primary (#0a2175) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010204black |
| Foreground | #03050cblack | #ffffffwhite |
| Card | #ffffffwhite | #010204black |
| Card foreground | #03050cblack | #ffffffwhite |
| Popover | #ffffffwhite | #010204black |
| Popover foreground | #03050cblack | #ffffffwhite |
| Primary | #0a2175midnightblue | #0a2175midnightblue |
| Primary foreground | #b9c7f9lightblue | #b9c7f9lightblue |
| Secondary | #750a21maroon | #750a21maroon |
| Secondary foreground | #f9b9c7lightpink | #f9b9c7lightpink |
| Muted | #f0eaeclinen | #150f10black |
| Muted foreground | #473e40darkslategray | #c1b8basilver |
| Accent | #21750aforestgreen | #21750aforestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c2240ffirebrick | #ee3017orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a2175midnightblue | #0a2175midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.37:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 8.43:1 | AAA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 8.72:1 | AAA |
| Accent | 5.78:1 | AA |
| Destructive | 5.89:1 | AA |
| Text on background | 20.75:1 | AAA |
| Text on card | 20.75:1 | AAA |
| Primary button | 8.43:1 | AAA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 9.77:1 | AAA |
| Accent | 5.78:1 | AA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Turbulent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.118 0.018 267.037);
--muted: oklch(0.943 0.006 2.241);
--muted-foreground: oklch(0.373 0.013 3.028);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.118 0.018 267.037);
--card: oklch(1 0 180);
--card-foreground: oklch(0.118 0.018 267.037);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.302 0.145 265.393);
--primary-foreground: oklch(0.835 0.072 272.699);
--secondary: oklch(0.363 0.137 17.582);
--secondary-foreground: oklch(0.847 0.076 4.468);
--accent: oklch(0.494 0.155 140.5);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.527 0.196 30.97);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.302 0.145 265.393);
--chart-1: oklch(0.302 0.145 265.393);
--chart-2: oklch(0.363 0.137 17.582);
--chart-3: oklch(0.494 0.155 140.5);
--chart-4: oklch(0.393 0.15 17.944);
--chart-5: oklch(0.301 0.149 265.14);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.01 268.327);
--foreground: oklch(1 0 180);
--muted: oklch(0.177 0.009 3.48);
--muted-foreground: oklch(0.791 0.011 2.443);
--popover: oklch(0.084 0.01 268.327);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.084 0.01 268.327);
--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.302 0.145 265.393);
--primary-foreground: oklch(0.835 0.072 272.699);
--secondary: oklch(0.363 0.137 17.582);
--secondary-foreground: oklch(0.847 0.076 4.468);
--accent: oklch(0.494 0.155 140.5);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.614 0.226 30.996);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.302 0.145 265.393);
--chart-1: oklch(0.302 0.145 265.393);
--chart-2: oklch(0.363 0.137 17.582);
--chart-3: oklch(0.494 0.155 140.5);
--chart-4: oklch(0.393 0.15 17.944);
--chart-5: oklch(0.301 0.149 265.14);
}