Flimsy is a shadcn/ui theme built around a light green primary color (#f3f7e8) with muted light green accents (#d5d8cf). The light mode uses a neutral background (#fdfefb). Dark mode keeps the light green primary (#f3f7e8) on a neutral background (#060703).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #060703black |
| Foreground | #0a0e02black | #ffffffwhite |
| Card | #fdfefbwhite | #060703black |
| Card foreground | #0a0e02black | #ffffffwhite |
| Popover | #fdfefbwhite | #060703black |
| Popover foreground | #0a0e02black | #ffffffwhite |
| Primary | #f3f7e8linen | #f3f7e8linen |
| Primary foreground | #2b3512darkgreen | #2b3512darkgreen |
| Secondary | #ebebealinen | #282a22darkslategray |
| Secondary foreground | #53544fdarkslategray | #c2c6b8silver |
| Muted | #e0e7cfgainsboro | #293018darkslategray |
| Muted foreground | #4b513ddarkolivegreen | #bcc2aesilver |
| Accent | #d5d8cflightgrey | #3f4630darkslategray |
| Accent foreground | #3d4135darkslategray | #d7dccblightgrey |
| Destructive | #842106maroon | #f5592etomato |
| Destructive foreground | #fccdc0peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f3f7e8linen | #f3f7e8linen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 11.90:1 | AAA |
| Secondary button | 6.41:1 | AA |
| Muted text | 6.50:1 | AA |
| Accent | 7.26:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 11.90:1 | AAA |
| Secondary button | 8.31:1 | AAA |
| Muted text | 7.51:1 | AAA |
| Accent | 7.05:1 | AAA |
| Destructive | 6.34:1 | AA |
Paste this into your globals.css to use Flimsy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 120.087);
--foreground: oklch(0.154 0.031 120.674);
--muted: oklch(0.917 0.033 120.651);
--muted-foreground: oklch(0.425 0.033 121.363);
--popover: oklch(0.995 0.003 120.087);
--popover-foreground: oklch(0.154 0.031 120.674);
--card: oklch(0.995 0.003 120.087);
--card-foreground: oklch(0.154 0.031 120.674);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.969 0.02 120.391);
--primary-foreground: oklch(0.311 0.057 123.636);
--secondary: oklch(0.94 0.002 120.068);
--secondary-foreground: oklch(0.443 0.008 120.345);
--accent: oklch(0.878 0.012 120.269);
--accent-foreground: oklch(0.366 0.02 120.971);
--destructive: oklch(0.407 0.137 34.825);
--destructive-foreground: oklch(0.885 0.057 35.965);
--ring: oklch(0.969 0.02 120.391);
--chart-1: oklch(0.969 0.02 120.391);
--chart-2: oklch(0.94 0.002 120.068);
--chart-3: oklch(0.878 0.012 120.269);
--chart-4: oklch(0.963 0.001 120.056);
--chart-5: oklch(0.97 0.022 120.413);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.011 119.954);
--foreground: oklch(1 0 180);
--muted: oklch(0.294 0.042 122.633);
--muted-foreground: oklch(0.803 0.028 120.635);
--popover: oklch(0.124 0.011 119.954);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.011 119.954);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.969 0.02 120.391);
--primary-foreground: oklch(0.311 0.057 123.636);
--secondary: oklch(0.281 0.015 120.969);
--secondary-foreground: oklch(0.82 0.02 120.445);
--accent: oklch(0.381 0.037 121.739);
--accent-foreground: oklch(0.886 0.023 120.473);
--destructive: oklch(0.666 0.2 35.821);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.969 0.02 120.391);
--chart-1: oklch(0.969 0.02 120.391);
--chart-2: oklch(0.281 0.015 120.969);
--chart-3: oklch(0.381 0.037 121.739);
--chart-4: oklch(0.314 0.018 121.01);
--chart-5: oklch(0.97 0.022 120.413);
}