Turn is a shadcn/ui theme built around a deep indigo primary color (#30216e) with deep green accents (#5f6e21). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the deep indigo primary (#30216e) on an indigo-tinted background (#08070e).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #08070eblack |
| Foreground | #030208black | #f7f7f8whitesmoke |
| Card | #f8f7fdghostwhite | #0a0811black |
| Card foreground | #020104black | #faf9fasnow |
| Popover | #fbfbfeghostwhite | #08070eblack |
| Popover foreground | #030208black | #f7f7f8whitesmoke |
| Primary | #30216emidnightblue | #30216emidnightblue |
| Primary foreground | #d6d0f1gainsboro | #d6d0f1gainsboro |
| Secondary | #5f6e21darkolivegreen | #5f6e21darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #edefe6linen | #171910black |
| Muted foreground | #5c5c5cdimgray | #a3a3a3darkgray |
| Accent | #5f6e21darkolivegreen | #5f6e21darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #dd3308orangered | #f75026tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #30216emidnightblue | #30216emidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.00:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 9.02:1 | AAA |
| Secondary button | 5.62:1 | AA |
| Muted text | 5.75:1 | AA |
| Accent | 5.62:1 | AA |
| Destructive | 4.60:1 | AA |
| Text on background | 18.77:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 9.02:1 | AAA |
| Secondary button | 5.62:1 | AA |
| Muted text | 7.05:1 | AAA |
| Accent | 5.62:1 | AA |
| Destructive | 3.41:1 | AA Large |
Paste this into your globals.css to use Turn in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 295.499);
--foreground: oklch(0.099 0.02 294.645);
--muted: oklch(0.948 0.012 115.801);
--muted-foreground: oklch(0.474 0 198.435);
--popover: oklch(0.989 0.004 295.499);
--popover-foreground: oklch(0.099 0.02 294.645);
--card: oklch(0.978 0.009 295.417);
--card-foreground: oklch(0.078 0.016 294.645);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.318 0.127 285.882);
--primary-foreground: oklch(0.873 0.046 294.604);
--secondary: oklch(0.509 0.103 119.937);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.509 0.103 119.937);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.587 0.211 33.27);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.318 0.127 285.882);
--chart-1: oklch(0.318 0.127 285.882);
--chart-2: oklch(0.509 0.103 119.937);
--chart-3: oklch(0.509 0.103 119.937);
--chart-4: oklch(0.547 0.111 119.993);
--chart-5: oklch(0.315 0.132 285.069);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.017 294.391);
--foreground: oklch(0.976 0.002 295.54);
--muted: oklch(0.207 0.016 117.045);
--muted-foreground: oklch(0.716 0 165.964);
--popover: oklch(0.132 0.017 294.391);
--popover-foreground: oklch(0.976 0.002 295.54);
--card: oklch(0.143 0.02 293.308);
--card-foreground: oklch(0.984 0.001 295.553);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.318 0.127 285.882);
--primary-foreground: oklch(0.873 0.046 294.604);
--secondary: oklch(0.509 0.103 119.937);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.509 0.103 119.937);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.659 0.21 34.673);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.318 0.127 285.882);
--chart-1: oklch(0.318 0.127 285.882);
--chart-2: oklch(0.509 0.103 119.937);
--chart-3: oklch(0.509 0.103 119.937);
--chart-4: oklch(0.547 0.111 119.993);
--chart-5: oklch(0.315 0.132 285.069);
}