Fragrant is a shadcn/ui theme built around a muted deep green primary color (#1a231e) with muted light green accents (#d3e3db). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#1a231e) on a green-tinted background (#050a07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050a07black |
| Foreground | #000000black | #f5faf7whitesmoke |
| Card | #ffffffwhite | #050a07black |
| Card foreground | #000000black | #f5faf7whitesmoke |
| Popover | #ffffffwhite | #050a07black |
| Popover foreground | #000000black | #f5faf7whitesmoke |
| Primary | #1a231eblack | #1a231eblack |
| Primary foreground | #adc2b7silver | #adc2b7silver |
| Secondary | #e8edealavender | #2e3833darkslategray |
| Secondary foreground | #485b51darkslategray | #c7d1cclightgrey |
| Muted | #f0f4f2whitesmoke | #0b0f0dblack |
| Muted foreground | #566c60dimgray | #93a99ddarkseagreen |
| Accent | #d3e3dbgainsboro | #354b3fdarkslategray |
| Accent foreground | #345141darkslategray | #d2dfd8gainsboro |
| Destructive | #9e200afirebrick | #f2563atomato |
| Destructive foreground | #fde2ddmistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a231eblack | #1a231eblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.56:1 | AAA |
| Secondary button | 6.13:1 | AA |
| Muted text | 5.10:1 | AA |
| Accent | 6.58:1 | AA |
| Destructive | 6.39:1 | AA |
| Text on background | 18.89:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 8.56:1 | AAA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 7.74:1 | AAA |
| Accent | 6.89:1 | AA |
| Destructive | 6.18:1 | AA |
Paste this into your globals.css to use Fragrant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.964 0.005 163.325);
--muted-foreground: oklch(0.509 0.031 161.795);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.246 0.016 161.679);
--primary-foreground: oklch(0.795 0.028 162.516);
--secondary: oklch(0.942 0.006 163.276);
--secondary-foreground: oklch(0.453 0.029 161.687);
--accent: oklch(0.902 0.02 162.868);
--accent-foreground: oklch(0.406 0.044 160.325);
--destructive: oklch(0.456 0.165 32.043);
--destructive-foreground: oklch(0.934 0.03 29.613);
--ring: oklch(0.246 0.016 161.679);
--chart-1: oklch(0.246 0.016 161.679);
--chart-2: oklch(0.942 0.006 163.276);
--chart-3: oklch(0.902 0.02 162.868);
--chart-4: oklch(0.964 0.004 163.342);
--chart-5: oklch(0.248 0.019 161.325);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.011 163.484);
--foreground: oklch(0.98 0.006 163.279);
--muted: oklch(0.161 0.007 162.301);
--muted-foreground: oklch(0.714 0.029 162.383);
--popover: oklch(0.137 0.011 163.484);
--popover-foreground: oklch(0.98 0.006 163.279);
--card: oklch(0.137 0.011 163.484);
--card-foreground: oklch(0.98 0.006 163.279);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.246 0.016 161.679);
--primary-foreground: oklch(0.795 0.028 162.516);
--secondary: oklch(0.33 0.017 162.099);
--secondary-foreground: oklch(0.852 0.013 163.044);
--accent: oklch(0.389 0.033 161.051);
--accent-foreground: oklch(0.893 0.017 162.962);
--destructive: oklch(0.66 0.197 32.315);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.246 0.016 161.679);
--chart-1: oklch(0.246 0.016 161.679);
--chart-2: oklch(0.33 0.017 162.099);
--chart-3: oklch(0.389 0.033 161.051);
--chart-4: oklch(0.361 0.019 162.06);
--chart-5: oklch(0.248 0.019 161.325);
}