Flaky is a shadcn/ui theme built around a neutral gray primary color (#b6b8b9) with neutral gray accents (#b8b9b6). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#b6b8b9) on a blue-tinted background (#03090c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #03090cblack |
| Foreground | #010304black | #f8fafcghostwhite |
| Card | #ffffffwhite | #03090cblack |
| Card foreground | #010304black | #f8fafcghostwhite |
| Popover | #ffffffwhite | #03090cblack |
| Popover foreground | #010304black | #f8fafcghostwhite |
| Primary | #b6b8b9silver | #b6b8b9silver |
| Primary foreground | #1e1f1fblack | #1e1f1fblack |
| Secondary | #b9b6b8silver | #b9b6b8silver |
| Secondary foreground | #1f1e1fblack | #1f1e1fblack |
| Muted | #e3dee1gainsboro | #211c1fblack |
| Muted foreground | #604d5adimgray | #b29fabdarkgray |
| Accent | #b8b9b6silver | #b8b9b6silver |
| Accent foreground | #1f1f1eblack | #1f1f1eblack |
| Destructive | #d03506firebrick | #f85725tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b6b8b9silver | #b6b8b9silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.66:1 | AAA |
| Primary button | 8.30:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 8.37:1 | AAA |
| Destructive | 5.00:1 | AA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 8.30:1 | AAA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 6.72:1 | AA |
| Accent | 8.37:1 | AAA |
| Destructive | 6.37:1 | AA |
Paste this into your globals.css to use Flaky in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.093 0.012 222.578);
--muted: oklch(0.906 0.006 338.121);
--muted-foreground: oklch(0.445 0.032 339.411);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.093 0.012 222.578);
--card: oklch(1 0 180);
--card-foreground: oklch(0.093 0.012 222.578);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.782 0.003 230.704);
--primary-foreground: oklch(0.238 0.001 230.743);
--secondary: oklch(0.78 0.004 338.095);
--secondary-foreground: oklch(0.237 0.002 338.193);
--accent: oklch(0.784 0.004 122.296);
--accent-foreground: oklch(0.239 0.002 122.37);
--destructive: oklch(0.565 0.197 34.624);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.782 0.003 230.704);
--chart-1: oklch(0.782 0.003 230.704);
--chart-2: oklch(0.78 0.004 338.095);
--chart-3: oklch(0.784 0.004 122.296);
--chart-4: oklch(0.804 0.004 338.079);
--chart-5: oklch(0.782 0.006 230.77);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.013 225.146);
--foreground: oklch(0.985 0.003 230.703);
--muted: oklch(0.234 0.008 338.712);
--muted-foreground: oklch(0.722 0.028 338.777);
--popover: oklch(0.133 0.013 225.146);
--popover-foreground: oklch(0.985 0.003 230.703);
--card: oklch(0.133 0.013 225.146);
--card-foreground: oklch(0.985 0.003 230.703);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.782 0.003 230.704);
--primary-foreground: oklch(0.238 0.001 230.743);
--secondary: oklch(0.78 0.004 338.095);
--secondary-foreground: oklch(0.237 0.002 338.193);
--accent: oklch(0.784 0.004 122.296);
--accent-foreground: oklch(0.239 0.002 122.37);
--destructive: oklch(0.668 0.206 36.411);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.782 0.003 230.704);
--chart-1: oklch(0.782 0.003 230.704);
--chart-2: oklch(0.78 0.004 338.095);
--chart-3: oklch(0.784 0.004 122.296);
--chart-4: oklch(0.804 0.004 338.079);
--chart-5: oklch(0.782 0.006 230.77);
}