Turning is a shadcn/ui theme built around a vivid deep yellow primary color (#464101) with vivid deep purple accents (#410146). The light mode uses a neutral background (#fefefb). Dark mode keeps the vivid deep yellow primary (#464101) on a yellow-tinted background (#100f05).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #100f05black |
| Foreground | #121103black | #faf9f5whitesmoke |
| Card | #fefefbwhite | #100f05black |
| Card foreground | #121103black | #faf9f5whitesmoke |
| Popover | #fefefbwhite | #100f05black |
| Popover foreground | #121103black | #faf9f5whitesmoke |
| Primary | #464101darkolivegreen | #464101darkolivegreen |
| Primary foreground | #faeb19gold | #faeb19gold |
| Secondary | #014641darkslategray | #014641darkslategray |
| Secondary foreground | #19faebaqua | #19faebaqua |
| Muted | #cde5e3gainsboro | #1a3231darkslategray |
| Muted foreground | #626464dimgray | #9b9d9cdarkgray |
| Accent | #410146indigo | #410146indigo |
| Accent foreground | #f47dfcviolet | #f47dfcviolet |
| Destructive | #a71611firebrick | #ea302acrimson |
| Destructive foreground | #fdedeclinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #464101darkolivegreen | #464101darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.73:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 4.50:1 | AA |
| Accent | 6.94:1 | AA |
| Destructive | 6.69:1 | AA |
| Text on background | 18.27:1 | AAA |
| Text on card | 18.27:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 4.95:1 | AA |
| Accent | 6.94:1 | AA |
| Destructive | 4.24:1 | AA Large |
Paste this into your globals.css to use Turning in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 103.166);
--foreground: oklch(0.173 0.029 105.882);
--muted: oklch(0.903 0.026 191.826);
--muted-foreground: oklch(0.503 0.002 192.323);
--popover: oklch(0.996 0.004 103.166);
--popover-foreground: oklch(0.173 0.029 105.882);
--card: oklch(0.996 0.004 103.166);
--card-foreground: oklch(0.173 0.029 105.882);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.37 0.078 105.043);
--primary-foreground: oklch(0.924 0.192 104.777);
--secondary: oklch(0.355 0.061 187.364);
--secondary-foreground: oklch(0.889 0.153 187.023);
--accent: oklch(0.269 0.123 325.079);
--accent-foreground: oklch(0.769 0.21 324.828);
--destructive: oklch(0.467 0.179 28.806);
--destructive-foreground: oklch(0.959 0.018 19.867);
--ring: oklch(0.37 0.078 105.043);
--chart-1: oklch(0.37 0.078 105.043);
--chart-2: oklch(0.355 0.061 187.364);
--chart-3: oklch(0.269 0.123 325.079);
--chart-4: oklch(0.405 0.07 187.153);
--chart-5: oklch(0.373 0.079 105.021);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.165 0.021 105.243);
--foreground: oklch(0.982 0.005 103.2);
--muted: oklch(0.299 0.031 190.158);
--muted-foreground: oklch(0.693 0.002 192.357);
--popover: oklch(0.165 0.021 105.243);
--popover-foreground: oklch(0.982 0.005 103.2);
--card: oklch(0.165 0.021 105.243);
--card-foreground: oklch(0.982 0.005 103.2);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.37 0.078 105.043);
--primary-foreground: oklch(0.924 0.192 104.777);
--secondary: oklch(0.355 0.061 187.364);
--secondary-foreground: oklch(0.889 0.153 187.023);
--accent: oklch(0.269 0.123 325.079);
--accent-foreground: oklch(0.769 0.21 324.828);
--destructive: oklch(0.609 0.221 28.154);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.37 0.078 105.043);
--chart-1: oklch(0.37 0.078 105.043);
--chart-2: oklch(0.355 0.061 187.364);
--chart-3: oklch(0.269 0.123 325.079);
--chart-4: oklch(0.405 0.07 187.153);
--chart-5: oklch(0.373 0.079 105.021);
}