fairyfloss is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted indigo accents (#7e779c). The light mode uses an indigo-tinted background (#595473). Dark mode keeps the near-white primary (#ffffff) on an indigo-tinted background (#595473).
| Token | Light | Dark |
|---|---|---|
| Background | #595473dimgray | #595473dimgray |
| Foreground | #f8f8f2whitesmoke | #f8f8f2whitesmoke |
| Card | #554f6ddimgray | #554f6ddimgray |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #524d6adimgray | #524d6adimgray |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #65607bdimgray | #65607bdimgray |
| Muted foreground | #cccccclightgrey | #cccccclightgrey |
| Accent | #7e779clightslategray | #7e779clightslategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #f7201dcrimson | #f7201dcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #6c6977dimgray | #6c6977dimgray |
| Input | #73717fgray | #73717fgray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 6.72:1 | AA |
| Text on card | 7.68:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 3.70:1 | AA Large |
| Accent | 4.19:1 | AA Large |
| Destructive | 4.05:1 | AA Large |
| Text on background | 6.72:1 | AA |
| Text on card | 7.68:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 3.70:1 | AA Large |
| Accent | 4.19:1 | AA Large |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use fairyfloss in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.463 0.051 292.676);
--foreground: oklch(0.977 0.008 106.548);
--muted: oklch(0.505 0.042 293.254);
--muted-foreground: oklch(0.845 0 164.055);
--popover: oklch(0.438 0.048 292.702);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.446 0.049 292.693);
--card-foreground: oklch(1 0 180);
--border: oklch(0.529 0.021 294.08);
--input: oklch(0.555 0.022 294.074);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.589 0.057 292.964);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.622 0.242 28.534);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.589 0.057 292.964);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.463 0.051 292.676);
--foreground: oklch(0.977 0.008 106.548);
--muted: oklch(0.505 0.042 293.254);
--muted-foreground: oklch(0.845 0 164.055);
--popover: oklch(0.438 0.048 292.702);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.446 0.049 292.693);
--card-foreground: oklch(1 0 180);
--border: oklch(0.529 0.021 294.08);
--input: oklch(0.555 0.022 294.074);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.589 0.057 292.964);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.622 0.242 28.534);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.589 0.057 292.964);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}