Frilly is a shadcn/ui theme built around a muted light violet primary color (#e4dce9) with muted light violet accents (#d8cfdd). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted light violet primary (#e4dce9) on a neutral background (#060307).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #060307black |
| Foreground | #0b0510black | #faf9fbghostwhite |
| Card | #fdfbfewhite | #060307black |
| Card foreground | #0b0510black | #faf9fbghostwhite |
| Popover | #fdfbfewhite | #060307black |
| Popover foreground | #0b0510black | #faf9fbghostwhite |
| Primary | #e4dce9gainsboro | #e4dce9gainsboro |
| Primary foreground | #4e395bdarkslategray | #4e395bdarkslategray |
| Secondary | #d8cfddlightgrey | #242424darkslategray |
| Secondary foreground | #403348darkslategray | #bdbdbdsilver |
| Muted | #e1d2eagainsboro | #2d1515black |
| Muted foreground | #403d42darkslategray | #c2bdbdsilver |
| Accent | #d8cfddlightgrey | #242424darkslategray |
| Accent foreground | #403348darkslategray | #bdbdbdsilver |
| Destructive | #873103saddlebrown | #fb7228tomato |
| Destructive foreground | #fed4bepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e4dce9gainsboro | #e4dce9gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.52:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 7.66:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 7.41:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 6.22:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.66:1 | AAA |
| Secondary button | 8.29:1 | AAA |
| Muted text | 9.18:1 | AAA |
| Accent | 8.29:1 | AAA |
| Destructive | 7.51:1 | AAA |
Paste this into your globals.css to use Frilly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 312.952);
--foreground: oklch(0.132 0.028 313.067);
--muted: oklch(0.882 0.037 312.701);
--muted-foreground: oklch(0.366 0.01 312.807);
--popover: oklch(0.99 0.005 312.952);
--popover-foreground: oklch(0.132 0.028 313.067);
--card: oklch(0.99 0.005 312.952);
--card-foreground: oklch(0.132 0.028 313.067);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.906 0.019 312.84);
--primary-foreground: oklch(0.382 0.062 311.849);
--secondary: oklch(0.866 0.021 312.82);
--secondary-foreground: oklch(0.343 0.039 312.2);
--accent: oklch(0.866 0.021 312.82);
--accent-foreground: oklch(0.343 0.039 312.2);
--destructive: oklch(0.432 0.128 42.235);
--destructive-foreground: oklch(0.9 0.055 49.93);
--ring: oklch(0.906 0.019 312.84);
--chart-1: oklch(0.906 0.019 312.84);
--chart-2: oklch(0.866 0.021 312.82);
--chart-3: oklch(0.866 0.021 312.82);
--chart-4: oklch(0.892 0.017 312.856);
--chart-5: oklch(0.905 0.022 312.821);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.016 314.265);
--foreground: oklch(0.984 0.002 312.972);
--muted: oklch(0.231 0.04 20.628);
--muted-foreground: oklch(0.802 0.006 17.276);
--popover: oklch(0.107 0.016 314.265);
--popover-foreground: oklch(0.984 0.002 312.972);
--card: oklch(0.107 0.016 314.265);
--card-foreground: oklch(0.984 0.002 312.972);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.906 0.019 312.84);
--primary-foreground: oklch(0.382 0.062 311.849);
--secondary: oklch(0.259 0 167.471);
--secondary-foreground: oklch(0.797 0 180);
--accent: oklch(0.259 0 167.471);
--accent-foreground: oklch(0.797 0 180);
--destructive: oklch(0.706 0.186 44.613);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.906 0.019 312.84);
--chart-1: oklch(0.906 0.019 312.84);
--chart-2: oklch(0.259 0 167.471);
--chart-3: oklch(0.259 0 167.471);
--chart-4: oklch(0.29 0 180);
--chart-5: oklch(0.905 0.022 312.821);
}