Flimsy is a shadcn/ui theme built around a neutral gray primary color (#b8b8b8) with neutral gray accents (#b8b8b8). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the neutral gray primary (#b8b8b8) on a neutral background (#080202).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f7snow | #080202black |
| Foreground | #160404black | #ffffffwhite |
| Card | #fdf7f7snow | #080202black |
| Card foreground | #160404black | #ffffffwhite |
| Popover | #fdf7f7snow | #080202black |
| Popover foreground | #160404black | #ffffffwhite |
| Primary | #b8b8b8silver | #b8b8b8silver |
| Primary foreground | #1f1f1fblack | #1f1f1fblack |
| Secondary | #b8b8b8silver | #b8b8b8silver |
| Secondary foreground | #1f1f1fblack | #1f1f1fblack |
| Muted | #f5efefwhitesmoke | #100a0ablack |
| Muted foreground | #544040darkslategray | #bfababdarkgray |
| Accent | #b8b8b8silver | #b8b8b8silver |
| Accent foreground | #1f1f1fblack | #1f1f1fblack |
| Destructive | #9d1307darkred | #f74b3btomato |
| Destructive foreground | #fddbd8mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b8b8b8silver | #b8b8b8silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.80:1 | AAA |
| Text on card | 18.80:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 8.47:1 | AAA |
| Accent | 8.27:1 | AAA |
| Destructive | 6.46:1 | AA |
| Text on background | 20.56:1 | AAA |
| Text on card | 20.56:1 | AAA |
| Primary button | 8.27:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 9.01:1 | AAA |
| Accent | 8.27:1 | AAA |
| Destructive | 3.49:1 | AA Large |
Paste this into your globals.css to use Flimsy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 17.265);
--foreground: oklch(0.141 0.037 23.114);
--muted: oklch(0.958 0.006 17.267);
--muted-foreground: oklch(0.392 0.029 18.465);
--popover: oklch(0.981 0.006 17.265);
--popover-foreground: oklch(0.141 0.037 23.114);
--card: oklch(0.981 0.006 17.265);
--card-foreground: oklch(0.141 0.037 23.114);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.781 0 180);
--primary-foreground: oklch(0.238 0 161.565);
--secondary: oklch(0.781 0 180);
--secondary-foreground: oklch(0.238 0 161.565);
--accent: oklch(0.781 0 180);
--accent-foreground: oklch(0.238 0 161.565);
--destructive: oklch(0.444 0.171 30.145);
--destructive-foreground: oklch(0.919 0.039 24.039);
--ring: oklch(0.781 0 180);
--chart-1: oklch(0.781 0 180);
--chart-2: oklch(0.781 0 180);
--chart-3: oklch(0.781 0 180);
--chart-4: oklch(0.805 0 169.695);
--chart-5: oklch(0.778 0.005 17.261);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.018 20.492);
--foreground: oklch(1 0 180);
--muted: oklch(0.152 0.01 18.36);
--muted-foreground: oklch(0.758 0.024 17.695);
--popover: oklch(0.104 0.018 20.492);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.104 0.018 20.492);
--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.781 0 180);
--primary-foreground: oklch(0.238 0 161.565);
--secondary: oklch(0.781 0 180);
--secondary-foreground: oklch(0.238 0 161.565);
--accent: oklch(0.781 0 180);
--accent-foreground: oklch(0.238 0 161.565);
--destructive: oklch(0.655 0.211 29.213);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.781 0 180);
--chart-1: oklch(0.781 0 180);
--chart-2: oklch(0.781 0 180);
--chart-3: oklch(0.781 0 180);
--chart-4: oklch(0.805 0 169.695);
--chart-5: oklch(0.778 0.005 17.261);
}