Flower is a shadcn/ui theme built around a light violet primary color (#f7f4fb) with neutral gray accents (#cecbd2). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#f7f4fb) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050307black |
| Foreground | #040109black | #ffffffwhite |
| Card | #fcfcfcsnow | #07040bblack |
| Card foreground | #020104black | #ffffffwhite |
| Popover | #fcfcfcsnow | #07040bblack |
| Popover foreground | #020104black | #ffffffwhite |
| Primary | #f7f4fbghostwhite | #f7f4fbghostwhite |
| Primary foreground | #56338adarkslateblue | #56338adarkslateblue |
| Secondary | #cecbd2lightgrey | #201c27black |
| Secondary foreground | #353239darkslategray | #b8aec6silver |
| Muted | #e4dfeclavender | #181320black |
| Muted foreground | #65616bdimgray | #98949edarkgray |
| Accent | #cecbd2lightgrey | #201c27black |
| Accent foreground | #353239darkslategray | #b8aec6silver |
| Destructive | #d41b02firebrick | #fc2003red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f7f4fbghostwhite | #f7f4fbghostwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.72:1 | AAA |
| Text on card | 20.37:1 | AAA |
| Primary button | 8.60:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 4.61:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 5.30:1 | AA |
| Text on background | 20.56:1 | AAA |
| Text on card | 20.35:1 | AAA |
| Primary button | 8.60:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 6.13:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Flower in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.094 0.03 305.938);
--muted: oklch(0.911 0.019 304.04);
--muted-foreground: oklch(0.5 0.017 303.866);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.075 0.024 305.938);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.075 0.024 305.938);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.971 0.01 304.201);
--primary-foreground: oklch(0.41 0.139 298.499);
--secondary: oklch(0.847 0.01 304.18);
--secondary-foreground: oklch(0.322 0.014 303.736);
--accent: oklch(0.847 0.01 304.18);
--accent-foreground: oklch(0.322 0.014 303.736);
--destructive: oklch(0.554 0.217 30.701);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.971 0.01 304.201);
--chart-1: oklch(0.971 0.01 304.201);
--chart-2: oklch(0.847 0.01 304.18);
--chart-3: oklch(0.847 0.01 304.18);
--chart-4: oklch(0.871 0.008 304.211);
--chart-5: oklch(0.97 0.01 304.191);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.018 305.194);
--foreground: oklch(1 0 180);
--muted: oklch(0.199 0.028 302.265);
--muted-foreground: oklch(0.673 0.016 304.015);
--popover: oklch(0.118 0.021 305.088);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.118 0.021 305.088);
--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.971 0.01 304.201);
--primary-foreground: oklch(0.41 0.139 298.499);
--secondary: oklch(0.235 0.022 302.976);
--secondary-foreground: oklch(0.767 0.034 303.702);
--accent: oklch(0.235 0.022 302.976);
--accent-foreground: oklch(0.767 0.034 303.702);
--destructive: oklch(0.631 0.248 30.56);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.971 0.01 304.201);
--chart-1: oklch(0.971 0.01 304.201);
--chart-2: oklch(0.235 0.022 302.976);
--chart-3: oklch(0.235 0.022 302.976);
--chart-4: oklch(0.264 0.027 302.888);
--chart-5: oklch(0.97 0.01 304.191);
}