Aromatic is a shadcn/ui theme built around a near-white primary color (#fcfdfc) with near-white accents (#fdfcfd). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fcfdfc) on a neutral background (#030704).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030704black |
| Foreground | #051508black | #fcfdfcwhite |
| Card | #ffffffwhite | #030704black |
| Card foreground | #051508black | #fcfdfcwhite |
| Popover | #ffffffwhite | #030704black |
| Popover foreground | #051508black | #fcfdfcwhite |
| Primary | #fcfdfcwhite | #fcfdfcwhite |
| Primary foreground | #253c29darkslategray | #253c29darkslategray |
| Secondary | #fdfcfdwhite | #fdfcfdwhite |
| Secondary foreground | #7b4c72dimgray | #7b4c72dimgray |
| Muted | #e9e2e8gainsboro | #1d161cblack |
| Muted foreground | #483c46darkslategray | #c3b7c0silver |
| Accent | #fdfcfdwhite | #fdfcfdwhite |
| Accent foreground | #7b4c72dimgray | #7b4c72dimgray |
| Destructive | #91300dsaddlebrown | #eb5119orangered |
| Destructive foreground | #fbdfd5antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fcfdfcwhite | #fcfdfcwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.79:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 11.72:1 | AAA |
| Secondary button | 6.57:1 | AA |
| Muted text | 8.19:1 | AAA |
| Accent | 6.57:1 | AA |
| Destructive | 6.29:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 11.72:1 | AAA |
| Secondary button | 6.57:1 | AA |
| Muted text | 9.18:1 | AAA |
| Accent | 6.57:1 | AA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Aromatic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.175 0.035 149.507);
--muted: oklch(0.92 0.012 332.192);
--muted-foreground: oklch(0.373 0.023 332.88);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.175 0.035 149.507);
--card: oklch(1 0 180);
--card-foreground: oklch(0.175 0.035 149.507);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.993 0.002 151.978);
--primary-foreground: oklch(0.331 0.044 149.782);
--secondary: oklch(0.992 0.002 332.033);
--secondary-foreground: oklch(0.483 0.084 334.399);
--accent: oklch(0.992 0.002 332.033);
--accent-foreground: oklch(0.483 0.084 334.399);
--destructive: oklch(0.45 0.138 37.89);
--destructive-foreground: oklch(0.924 0.034 41.064);
--ring: oklch(0.993 0.002 151.978);
--chart-1: oklch(0.993 0.002 151.978);
--chart-2: oklch(0.992 0.002 332.033);
--chart-3: oklch(0.992 0.002 332.033);
--chart-4: oklch(1.016 0.004 151.952);
--chart-5: oklch(0.993 0.002 151.975);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.015 151.356);
--foreground: oklch(0.993 0.003 151.966);
--muted: oklch(0.211 0.017 333.139);
--muted-foreground: oklch(0.791 0.019 332.355);
--popover: oklch(0.121 0.015 151.356);
--popover-foreground: oklch(0.993 0.003 151.966);
--card: oklch(0.121 0.015 151.356);
--card-foreground: oklch(0.993 0.003 151.966);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.993 0.002 151.978);
--primary-foreground: oklch(0.331 0.044 149.782);
--secondary: oklch(0.992 0.002 332.033);
--secondary-foreground: oklch(0.483 0.084 334.399);
--accent: oklch(0.992 0.002 332.033);
--accent-foreground: oklch(0.483 0.084 334.399);
--destructive: oklch(0.64 0.199 37.688);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.993 0.002 151.978);
--chart-1: oklch(0.993 0.002 151.978);
--chart-2: oklch(0.992 0.002 332.033);
--chart-3: oklch(0.992 0.002 332.033);
--chart-4: oklch(1.016 0.004 151.952);
--chart-5: oklch(0.993 0.002 151.975);
}