Twist is a shadcn/ui theme built around a deep blue primary color (#131f25) with deep orange accents (#251913). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the deep blue primary (#131f25) on a blue-tinted background (#04090b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #04090bblack |
| Foreground | #010609black | #f8fbfcghostwhite |
| Card | #fbfdfewhite | #04090bblack |
| Card foreground | #010609black | #f8fbfcghostwhite |
| Popover | #fbfdfewhite | #04090bblack |
| Popover foreground | #010609black | #f8fbfcghostwhite |
| Primary | #131f25black | #131f25black |
| Primary foreground | #9dbccdlightsteelblue | #9dbccdlightsteelblue |
| Secondary | #251913black | #251913black |
| Secondary foreground | #cdae9dtan | #cdae9dtan |
| Muted | #e6dbd6gainsboro | #291f19black |
| Muted foreground | #554d49darkslategray | #b6aeaadarkgray |
| Accent | #251913black | #251913black |
| Accent foreground | #cdae9dtan | #cdae9dtan |
| Destructive | #b10c06firebrick | #f6160ered |
| Destructive foreground | #feeceblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #131f25black | #131f25black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 8.41:1 | AAA |
| Secondary button | 8.23:1 | AAA |
| Muted text | 6.09:1 | AA |
| Accent | 8.23:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 19.26:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 8.41:1 | AAA |
| Secondary button | 8.23:1 | AAA |
| Muted text | 7.38:1 | AAA |
| Accent | 8.23:1 | AAA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Twist in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 230.691);
--foreground: oklch(0.117 0.015 222.862);
--muted: oklch(0.9 0.014 50.457);
--muted-foreground: oklch(0.427 0.013 50.278);
--popover: oklch(0.993 0.002 230.691);
--popover-foreground: oklch(0.117 0.015 222.862);
--card: oklch(0.993 0.002 230.691);
--card-foreground: oklch(0.117 0.015 222.862);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.23 0.021 232.396);
--primary-foreground: oklch(0.779 0.042 231.529);
--secondary: oklch(0.228 0.023 49.475);
--secondary-foreground: oklch(0.773 0.044 49.98);
--accent: oklch(0.228 0.023 49.475);
--accent-foreground: oklch(0.773 0.044 49.98);
--destructive: oklch(0.482 0.192 29.284);
--destructive-foreground: oklch(0.957 0.02 19.904);
--ring: oklch(0.23 0.021 232.396);
--chart-1: oklch(0.23 0.021 232.396);
--chart-2: oklch(0.228 0.023 49.475);
--chart-3: oklch(0.228 0.023 49.475);
--chart-4: oklch(0.261 0.028 49.378);
--chart-5: oklch(0.231 0.023 232.605);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.012 225.433);
--foreground: oklch(0.985 0.003 230.707);
--muted: oklch(0.249 0.02 49.717);
--muted-foreground: oklch(0.757 0.011 50.468);
--popover: oklch(0.133 0.012 225.433);
--popover-foreground: oklch(0.985 0.003 230.707);
--card: oklch(0.133 0.012 225.433);
--card-foreground: oklch(0.985 0.003 230.707);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.23 0.021 232.396);
--primary-foreground: oklch(0.779 0.042 231.529);
--secondary: oklch(0.228 0.023 49.475);
--secondary-foreground: oklch(0.773 0.044 49.98);
--accent: oklch(0.228 0.023 49.475);
--accent-foreground: oklch(0.773 0.044 49.98);
--destructive: oklch(0.617 0.246 29.238);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.23 0.021 232.396);
--chart-1: oklch(0.23 0.021 232.396);
--chart-2: oklch(0.228 0.023 49.475);
--chart-3: oklch(0.228 0.023 49.475);
--chart-4: oklch(0.261 0.028 49.378);
--chart-5: oklch(0.231 0.023 232.605);
}