Writhing is a shadcn/ui theme built around a light yellow primary color (#f2eaba) with light blue accents (#bac3f2). The light mode uses a neutral background (#fdfcf6). Dark mode keeps the light yellow primary (#f2eaba) on a yellow-tinted background (#0b0a04).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf6snow | #0b0a04black |
| Foreground | #080702black | #faf9f4whitesmoke |
| Card | #fcfbf2floralwhite | #0f0d06black |
| Card foreground | #040301black | #fcfbf8snow |
| Popover | #fdfcf6snow | #0b0a04black |
| Popover foreground | #080702black | #faf9f4whitesmoke |
| Primary | #f2eabawheat | #f2eabawheat |
| Primary foreground | #110f03black | #110f03black |
| Secondary | #bac3f2lightsteelblue | #bac3f2lightsteelblue |
| Secondary foreground | #142067midnightblue | #142067midnightblue |
| Muted | #d7d9dfgainsboro | #202128black |
| Muted foreground | #575b75dimgray | #8a8ea8lightslategray |
| Accent | #bac3f2lightsteelblue | #bac3f2lightsteelblue |
| Accent foreground | #142067midnightblue | #142067midnightblue |
| Destructive | #95100edarkred | #ea221fcrimson |
| Destructive foreground | #fcdadamistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2eabawheat | #f2eabawheat |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.66:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 15.74:1 | AAA |
| Secondary button | 8.49:1 | AAA |
| Muted text | 4.70:1 | AA |
| Accent | 8.49:1 | AAA |
| Destructive | 6.84:1 | AA |
| Text on background | 18.80:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 15.74:1 | AAA |
| Secondary button | 8.49:1 | AAA |
| Muted text | 4.98:1 | AA |
| Accent | 8.49:1 | AAA |
| Destructive | 4.41:1 | AA Large |
Paste this into your globals.css to use Writhing in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.008 98.427);
--foreground: oklch(0.127 0.015 101.795);
--muted: oklch(0.885 0.009 278.167);
--muted-foreground: oklch(0.478 0.042 276.874);
--popover: oklch(0.991 0.008 98.427);
--popover-foreground: oklch(0.127 0.015 101.795);
--card: oklch(0.987 0.012 98.481);
--card-foreground: oklch(0.101 0.012 101.795);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.931 0.062 99.129);
--primary-foreground: oklch(0.167 0.025 100.965);
--secondary: oklch(0.826 0.067 277.008);
--secondary-foreground: oklch(0.287 0.124 268.978);
--accent: oklch(0.826 0.067 277.008);
--accent-foreground: oklch(0.287 0.124 268.978);
--destructive: oklch(0.429 0.166 28.448);
--destructive-foreground: oklch(0.917 0.037 19.008);
--ring: oklch(0.931 0.062 99.129);
--chart-1: oklch(0.931 0.062 99.129);
--chart-2: oklch(0.826 0.067 277.008);
--chart-3: oklch(0.826 0.067 277.008);
--chart-4: oklch(0.859 0.054 277.331);
--chart-5: oklch(0.933 0.064 99.154);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.015 101.171);
--foreground: oklch(0.983 0.007 98.417);
--muted: oklch(0.249 0.013 277.525);
--muted-foreground: oklch(0.653 0.039 277.378);
--popover: oklch(0.143 0.015 101.171);
--popover-foreground: oklch(0.983 0.007 98.417);
--card: oklch(0.159 0.016 100.162);
--card-foreground: oklch(0.989 0.005 98.384);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.931 0.062 99.129);
--primary-foreground: oklch(0.167 0.025 100.965);
--secondary: oklch(0.826 0.067 277.008);
--secondary-foreground: oklch(0.287 0.124 268.978);
--accent: oklch(0.826 0.067 277.008);
--accent-foreground: oklch(0.287 0.124 268.978);
--destructive: oklch(0.6 0.23 28.317);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.931 0.062 99.129);
--chart-1: oklch(0.931 0.062 99.129);
--chart-2: oklch(0.826 0.067 277.008);
--chart-3: oklch(0.826 0.067 277.008);
--chart-4: oklch(0.859 0.054 277.331);
--chart-5: oklch(0.933 0.064 99.154);
}