Flowery is a shadcn/ui theme built around a muted deep green primary color (#252717) with muted deep indigo accents (#181727). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#252717) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #080802black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #080802black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #080802black | #ffffffwhite |
| Primary | #252717black | #252717black |
| Primary foreground | #c6caa5silver | #c6caa5silver |
| Secondary | #181727black | #181727black |
| Secondary foreground | #a9a5cadarkgray | #a9a5cadarkgray |
| Muted | #d0cee4lightgrey | #1d1b31darkslategray |
| Muted foreground | #555558dimgray | #a7a7aadarkgray |
| Accent | #181727black | #181727black |
| Accent foreground | #a9a5cadarkgray | #a9a5cadarkgray |
| Destructive | #660605maroon | #f41410red |
| Destructive foreground | #fba4a2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #252717black | #252717black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.07:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 9.01:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 4.80:1 | AA |
| Accent | 7.51:1 | AAA |
| Destructive | 6.84:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 9.01:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 6.96:1 | AA |
| Accent | 7.51:1 | AAA |
| Destructive | 4.24:1 | AA Large |
Paste this into your globals.css to use Flowery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.019 112.436);
--muted: oklch(0.859 0.031 290.334);
--muted-foreground: oklch(0.451 0.006 290.779);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.131 0.019 112.436);
--card: oklch(1 0 180);
--card-foreground: oklch(0.131 0.019 112.436);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.264 0.028 112.957);
--primary-foreground: oklch(0.827 0.05 112.136);
--secondary: oklch(0.213 0.031 288.041);
--secondary-foreground: oklch(0.738 0.053 289.608);
--accent: oklch(0.213 0.031 288.041);
--accent-foreground: oklch(0.738 0.053 289.608);
--destructive: oklch(0.326 0.127 28.765);
--destructive-foreground: oklch(0.804 0.103 20.662);
--ring: oklch(0.264 0.028 112.957);
--chart-1: oklch(0.264 0.028 112.957);
--chart-2: oklch(0.213 0.031 288.041);
--chart-3: oklch(0.213 0.031 288.041);
--chart-4: oklch(0.24 0.038 287.792);
--chart-5: oklch(0.267 0.031 113.136);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.237 0.042 287.316);
--muted-foreground: oklch(0.728 0.005 290.886);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.264 0.028 112.957);
--primary-foreground: oklch(0.827 0.05 112.136);
--secondary: oklch(0.213 0.031 288.041);
--secondary-foreground: oklch(0.738 0.053 289.608);
--accent: oklch(0.213 0.031 288.041);
--accent-foreground: oklch(0.738 0.053 289.608);
--destructive: oklch(0.612 0.244 28.959);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.264 0.028 112.957);
--chart-1: oklch(0.264 0.028 112.957);
--chart-2: oklch(0.213 0.031 288.041);
--chart-3: oklch(0.213 0.031 288.041);
--chart-4: oklch(0.24 0.038 287.792);
--chart-5: oklch(0.267 0.031 113.136);
}