Flaky is a shadcn/ui theme built around a muted light green primary color (#c5d3ca) with muted light green accents (#e6ebe7). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted light green primary (#c5d3ca) on a green-tinted background (#060f09).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #060f09black |
| Foreground | #010402black | #fcfdfcwhite |
| Card | #f6fdf9mintcream | #07120bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfefcwhite | #060f09black |
| Popover foreground | #010402black | #fcfdfcwhite |
| Primary | #c5d3calightgrey | #c5d3calightgrey |
| Primary foreground | #2c3a31darkslategray | #2c3a31darkslategray |
| Secondary | #e6ebe7lavender | #27302adarkslategray |
| Secondary foreground | #46584cdarkslategray | #becac3silver |
| Muted | #dce0ddgainsboro | #1f2320black |
| Muted foreground | #577060dimgray | #8fa898darkseagreen |
| Accent | #e6ebe7lavender | #27302adarkslategray |
| Accent foreground | #46584cdarkslategray | #becac3silver |
| Destructive | #d04e16chocolate | #e75a1dchocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c5d3calightgrey | #c5d3calightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 20.40:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 6.28:1 | AA |
| Muted text | 4.04:1 | AA Large |
| Accent | 6.28:1 | AA |
| Destructive | 4.40:1 | AA Large |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.02:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 6.20:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Flaky in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 157.884);
--foreground: oklch(0.1 0.019 157.605);
--muted: oklch(0.903 0.006 157.835);
--muted-foreground: oklch(0.521 0.04 156.239);
--popover: oklch(0.994 0.005 157.884);
--popover-foreground: oklch(0.1 0.019 157.605);
--card: oklch(0.989 0.01 157.782);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.853 0.019 157.521);
--primary-foreground: oklch(0.332 0.023 156.423);
--secondary: oklch(0.934 0.007 157.829);
--secondary-foreground: oklch(0.441 0.028 156.555);
--accent: oklch(0.934 0.007 157.829);
--accent-foreground: oklch(0.441 0.028 156.555);
--destructive: oklch(0.592 0.176 39.871);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.853 0.019 157.521);
--chart-1: oklch(0.853 0.019 157.521);
--chart-2: oklch(0.934 0.007 157.829);
--chart-3: oklch(0.934 0.007 157.829);
--chart-4: oklch(0.956 0.005 157.884);
--chart-5: oklch(0.855 0.023 157.414);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.02 156.638);
--foreground: oklch(0.993 0.002 157.943);
--muted: oklch(0.252 0.009 157.234);
--muted-foreground: oklch(0.708 0.038 156.819);
--popover: oklch(0.155 0.02 156.638);
--popover-foreground: oklch(0.993 0.002 157.943);
--card: oklch(0.17 0.023 155.283);
--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.853 0.019 157.521);
--primary-foreground: oklch(0.332 0.023 156.423);
--secondary: oklch(0.298 0.016 156.829);
--secondary-foreground: oklch(0.828 0.017 157.56);
--accent: oklch(0.298 0.016 156.829);
--accent-foreground: oklch(0.828 0.017 157.56);
--destructive: oklch(0.644 0.188 40.175);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.853 0.019 157.521);
--chart-1: oklch(0.853 0.019 157.521);
--chart-2: oklch(0.298 0.016 156.829);
--chart-3: oklch(0.298 0.016 156.829);
--chart-4: oklch(0.329 0.018 156.785);
--chart-5: oklch(0.855 0.023 157.414);
}