Scented is a shadcn/ui theme built around a light green primary color (#d8f3dc) with light purple accents (#f3d8ef). The light mode uses a neutral background (#f6fdf7). Dark mode keeps the light green primary (#d8f3dc) on a green-tinted background (#030c05).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdf7mintcream | #030c05black |
| Foreground | #020803black | #f8fcf9mintcream |
| Card | #f6fdf7mintcream | #030c05black |
| Card foreground | #020803black | #f8fcf9mintcream |
| Popover | #f6fdf7mintcream | #030c05black |
| Popover foreground | #020803black | #f8fcf9mintcream |
| Primary | #d8f3dcgainsboro | #d8f3dcgainsboro |
| Primary foreground | #0c2710black | #0c2710black |
| Secondary | #f3d8efmistyrose | #f3d8efmistyrose |
| Secondary foreground | #752469purple | #752469purple |
| Muted | #f2eef1whitesmoke | #110d11black |
| Muted foreground | #5c515adimgray | #aea3acdarkgray |
| Accent | #f3d8efmistyrose | #f3d8efmistyrose |
| Accent foreground | #752469purple | #752469purple |
| Destructive | #6a2906saddlebrown | #f26418chocolate |
| Destructive foreground | #fac5a8navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d8f3dcgainsboro | #d8f3dcgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.62:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 13.53:1 | AAA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 6.55:1 | AA |
| Accent | 7.17:1 | AAA |
| Destructive | 7.03:1 | AAA |
| Text on background | 19.16:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 13.53:1 | AAA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 7.91:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 6.59:1 | AA |
Paste this into your globals.css to use Scented in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.011 150.104);
--foreground: oklch(0.124 0.025 148.995);
--muted: oklch(0.952 0.007 330.336);
--muted-foreground: oklch(0.45 0.019 330.793);
--popover: oklch(0.988 0.011 150.104);
--popover-foreground: oklch(0.124 0.025 148.995);
--card: oklch(0.988 0.011 150.104);
--card-foreground: oklch(0.124 0.025 148.995);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.938 0.042 149.651);
--primary-foreground: oklch(0.245 0.054 146.722);
--secondary: oklch(0.911 0.042 330.834);
--secondary-foreground: oklch(0.411 0.14 334.358);
--accent: oklch(0.911 0.042 330.834);
--accent-foreground: oklch(0.411 0.14 334.358);
--destructive: oklch(0.37 0.102 43.796);
--destructive-foreground: oklch(0.863 0.072 49.678);
--ring: oklch(0.938 0.042 149.651);
--chart-1: oklch(0.938 0.042 149.651);
--chart-2: oklch(0.911 0.042 330.834);
--chart-3: oklch(0.911 0.042 330.834);
--chart-4: oklch(0.938 0.029 330.646);
--chart-5: oklch(0.939 0.044 149.617);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.024 149.134);
--foreground: oklch(0.987 0.005 150.176);
--muted: oklch(0.167 0.01 331.016);
--muted-foreground: oklch(0.727 0.017 330.55);
--popover: oklch(0.14 0.024 149.134);
--popover-foreground: oklch(0.987 0.005 150.176);
--card: oklch(0.14 0.024 149.134);
--card-foreground: oklch(0.987 0.005 150.176);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.938 0.042 149.651);
--primary-foreground: oklch(0.245 0.054 146.722);
--secondary: oklch(0.911 0.042 330.834);
--secondary-foreground: oklch(0.411 0.14 334.358);
--accent: oklch(0.911 0.042 330.834);
--accent-foreground: oklch(0.411 0.14 334.358);
--destructive: oklch(0.673 0.191 43.041);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.938 0.042 149.651);
--chart-1: oklch(0.938 0.042 149.651);
--chart-2: oklch(0.911 0.042 330.834);
--chart-3: oklch(0.911 0.042 330.834);
--chart-4: oklch(0.938 0.029 330.646);
--chart-5: oklch(0.939 0.044 149.617);
}