Squiggly is a shadcn/ui theme built around a deep green primary color (#0e1103) with muted light green accents (#d6dac8). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#0e1103) on a green-tinted background (#0c0d07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0d07black |
| Foreground | #0e1004black | #fafbf9snow |
| Card | #ffffffwhite | #0c0d07black |
| Card foreground | #0e1004black | #fafbf9snow |
| Popover | #ffffffwhite | #0c0d07black |
| Popover foreground | #0e1004black | #fafbf9snow |
| Primary | #0e1103black | #0e1103black |
| Primary foreground | #9aba26yellowgreen | #9aba26yellowgreen |
| Secondary | #e3e5dcgainsboro | #1c1d16black |
| Secondary foreground | #4d523ddarkolivegreen | #b9bda8silver |
| Muted | #e7e9dcgainsboro | #202316black |
| Muted foreground | #525252darkslategray | #adadaddarkgray |
| Accent | #d6dac8lightgrey | #393e28darkslategray |
| Accent foreground | #3e432ddarkslategray | #d2d7c1lightgrey |
| Destructive | #b44208firebrick | #ef570borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0e1103black | #0e1103black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 8.56:1 | AAA |
| Secondary button | 6.37:1 | AA |
| Muted text | 6.37:1 | AA |
| Accent | 7.21:1 | AAA |
| Destructive | 5.64:1 | AA |
| Text on background | 18.75:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 8.56:1 | AAA |
| Secondary button | 8.82:1 | AAA |
| Muted text | 7.16:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use Squiggly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.166 0.025 118.245);
--muted: oklch(0.93 0.017 116.671);
--muted-foreground: oklch(0.437 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.166 0.025 118.245);
--card: oklch(1 0 180);
--card-foreground: oklch(0.166 0.025 118.245);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.169 0.029 118.444);
--primary-foreground: oklch(0.74 0.168 121.79);
--secondary: oklch(0.918 0.012 116.577);
--secondary-foreground: oklch(0.428 0.034 117.803);
--accent: oklch(0.881 0.025 116.847);
--accent-foreground: oklch(0.373 0.037 118.163);
--destructive: oklch(0.531 0.16 40.859);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.169 0.029 118.444);
--chart-1: oklch(0.169 0.029 118.444);
--chart-2: oklch(0.918 0.012 116.577);
--chart-3: oklch(0.881 0.025 116.847);
--chart-4: oklch(0.939 0.009 116.51);
--chart-5: oklch(0.17 0.03 118.515);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.014 117.515);
--foreground: oklch(0.986 0.002 116.366);
--muted: oklch(0.247 0.024 118.095);
--muted-foreground: oklch(0.749 0 158.199);
--popover: oklch(0.157 0.014 117.515);
--popover-foreground: oklch(0.986 0.002 116.366);
--card: oklch(0.157 0.014 117.515);
--card-foreground: oklch(0.986 0.002 116.366);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.169 0.029 118.444);
--primary-foreground: oklch(0.74 0.168 121.79);
--secondary: oklch(0.227 0.014 117.42);
--secondary-foreground: oklch(0.789 0.03 117.021);
--accent: oklch(0.352 0.036 118.21);
--accent-foreground: oklch(0.869 0.029 116.944);
--destructive: oklch(0.652 0.2 40.335);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.169 0.029 118.444);
--chart-1: oklch(0.169 0.029 118.444);
--chart-2: oklch(0.227 0.014 117.42);
--chart-3: oklch(0.352 0.036 118.21);
--chart-4: oklch(0.262 0.017 117.51);
--chart-5: oklch(0.17 0.03 118.515);
}