Twine is a shadcn/ui theme built around a neutral gray primary color (#c1c1c2) with neutral gray accents (#c2c2c1). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the neutral gray primary (#c1c1c2) on a blue-tinted background (#04050b).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #04050bblack |
| Foreground | #000000black | #f8f9fcghostwhite |
| Card | #fbfbfeghostwhite | #04050bblack |
| Card foreground | #000000black | #f8f9fcghostwhite |
| Popover | #fbfbfeghostwhite | #04050bblack |
| Popover foreground | #000000black | #f8f9fcghostwhite |
| Primary | #c1c1c2silver | #c1c1c2silver |
| Primary foreground | #282829darkslategray | #282829darkslategray |
| Secondary | #c2c2c1silver | #c2c2c1silver |
| Secondary foreground | #292928darkslategray | #292928darkslategray |
| Muted | #ebe9dbantiquewhite | #242214black |
| Muted foreground | #686655dimgray | #aaa897darkgray |
| Accent | #c2c2c1silver | #c2c2c1silver |
| Accent foreground | #292928darkslategray | #292928darkslategray |
| Destructive | #a03a0esaddlebrown | #d84e13chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c1c1c2silver | #c1c1c2silver |
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.21:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 4.74:1 | AA |
| Accent | 8.19:1 | AAA |
| Destructive | 6.80:1 | AA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 8.21:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 6.67:1 | AA |
| Accent | 8.19:1 | AAA |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use Twine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 280.277);
--foreground: oklch(0 0 0);
--muted: oklch(0.931 0.018 100.619);
--muted-foreground: oklch(0.506 0.026 101.049);
--popover: oklch(0.99 0.003 280.277);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.99 0.003 280.277);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.812 0.002 280.301);
--primary-foreground: oklch(0.279 0.001 280.257);
--secondary: oklch(0.815 0.002 100.359);
--secondary-foreground: oklch(0.281 0.001 100.402);
--accent: oklch(0.815 0.002 100.359);
--accent-foreground: oklch(0.281 0.001 100.402);
--destructive: oklch(0.486 0.145 39.851);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.812 0.002 280.301);
--chart-1: oklch(0.812 0.002 280.301);
--chart-2: oklch(0.815 0.002 100.359);
--chart-3: oklch(0.815 0.002 100.359);
--chart-4: oklch(0.838 0.001 100.354);
--chart-5: oklch(0.808 0.006 280.213);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.016 275.831);
--foreground: oklch(0.981 0.004 280.265);
--muted: oklch(0.249 0.024 101.55);
--muted-foreground: oklch(0.728 0.024 100.806);
--popover: oklch(0.118 0.016 275.831);
--popover-foreground: oklch(0.981 0.004 280.265);
--card: oklch(0.118 0.016 275.831);
--card-foreground: oklch(0.981 0.004 280.265);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.812 0.002 280.301);
--primary-foreground: oklch(0.279 0.001 280.257);
--secondary: oklch(0.815 0.002 100.359);
--secondary-foreground: oklch(0.281 0.001 100.402);
--accent: oklch(0.815 0.002 100.359);
--accent-foreground: oklch(0.281 0.001 100.402);
--destructive: oklch(0.605 0.184 39.404);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.812 0.002 280.301);
--chart-1: oklch(0.812 0.002 280.301);
--chart-2: oklch(0.815 0.002 100.359);
--chart-3: oklch(0.815 0.002 100.359);
--chart-4: oklch(0.838 0.001 100.354);
--chart-5: oklch(0.808 0.006 280.213);
}