Flowery is a shadcn/ui theme built around a neutral gray primary color (#9a988d) with neutral gray accents (#988d9a). The light mode uses a neutral background (#fefefb). Dark mode keeps the neutral gray primary (#9a988d) on a yellow-tinted background (#100e05).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #100e05black |
| Foreground | #161304black | #fdfdfcwhite |
| Card | #fdfcf6snow | #141206black |
| Card foreground | #110f03black | #ffffffwhite |
| Popover | #fdfcf6snow | #141206black |
| Popover foreground | #110f03black | #ffffffwhite |
| Primary | #9a988drosybrown | #9a988drosybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #8d9a98lightslategray | #8d9a98lightslategray |
| Secondary foreground | #000000black | #000000black |
| Muted | #eef1f1whitesmoke | #0e1110black |
| Muted foreground | #536e6adimgray | #91aca8darkgray |
| Accent | #988d9alightslategray | #988d9alightslategray |
| Accent foreground | #000000black | #000000black |
| Destructive | #682803maroon | #f97224tomato |
| Destructive foreground | #fdc2a1navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9a988drosybrown | #9a988drosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.37:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 4.86:1 | AA |
| Accent | 6.64:1 | AA |
| Destructive | 7.06:1 | AAA |
| Text on background | 18.97:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 7.84:1 | AAA |
| Accent | 6.64:1 | AA |
| Destructive | 7.49:1 | AAA |
Paste this into your globals.css to use Flowery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 98.373);
--foreground: oklch(0.185 0.029 100.377);
--muted: oklch(0.957 0.004 186.498);
--muted-foreground: oklch(0.517 0.032 184.913);
--popover: oklch(0.991 0.008 98.429);
--popover-foreground: oklch(0.167 0.026 100.995);
--card: oklch(0.991 0.008 98.429);
--card-foreground: oklch(0.167 0.026 100.995);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.679 0.016 98.636);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.676 0.015 186.026);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.659 0.023 321.139);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.366 0.103 44.672);
--destructive-foreground: oklch(0.859 0.081 51.369);
--ring: oklch(0.679 0.016 98.636);
--chart-1: oklch(0.679 0.016 98.636);
--chart-2: oklch(0.676 0.015 186.026);
--chart-3: oklch(0.659 0.023 321.139);
--chart-4: oklch(0.701 0.014 186.09);
--chart-5: oklch(0.686 0.024 98.775);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.163 0.021 100.549);
--foreground: oklch(0.994 0.001 98.338);
--muted: oklch(0.174 0.005 185.78);
--muted-foreground: oklch(0.722 0.031 185.488);
--popover: oklch(0.179 0.023 100.012);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.179 0.023 100.012);
--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.679 0.016 98.636);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.676 0.015 186.026);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.659 0.023 321.139);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.705 0.185 45.629);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.679 0.016 98.636);
--chart-1: oklch(0.679 0.016 98.636);
--chart-2: oklch(0.676 0.015 186.026);
--chart-3: oklch(0.659 0.023 321.139);
--chart-4: oklch(0.701 0.014 186.09);
--chart-5: oklch(0.686 0.024 98.775);
}