Scented is a shadcn/ui theme built around a near-black primary color (#21231f) with near-black accents (#211f23). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#21231f) on a neutral background (#030402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030402black |
| Foreground | #070d03black | #ffffffwhite |
| Card | #fcfcfcsnow | #050703black |
| Card foreground | #050902black | #ffffffwhite |
| Popover | #fcfcfcsnow | #050703black |
| Popover foreground | #050902black | #ffffffwhite |
| Primary | #21231fblack | #21231fblack |
| Primary foreground | #babeb7silver | #babeb7silver |
| Secondary | #211f23black | #211f23black |
| Secondary foreground | #bab7besilver | #bab7besilver |
| Muted | #dedce0gainsboro | #211f23black |
| Muted foreground | #645d69dimgray | #9c96a2darkgray |
| Accent | #211f23black | #211f23black |
| Accent foreground | #bab7besilver | #bab7besilver |
| Destructive | #c14401firebrick | #e45101orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #21231fblack | #21231fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.66:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 8.41:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 4.65:1 | AA |
| Accent | 8.21:1 | AAA |
| Destructive | 5.13:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 8.41:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 5.66:1 | AA |
| Accent | 8.21:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Scented in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.148 0.027 128.082);
--muted: oklch(0.897 0.006 309.058);
--muted-foreground: oklch(0.49 0.02 308.693);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.128 0.023 127.728);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.128 0.023 127.728);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.252 0.007 129.406);
--primary-foreground: oklch(0.795 0.01 129.264);
--secondary: oklch(0.245 0.007 308.839);
--secondary-foreground: oklch(0.783 0.01 308.986);
--accent: oklch(0.245 0.007 308.839);
--accent-foreground: oklch(0.783 0.01 308.986);
--destructive: oklch(0.555 0.171 40.715);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.252 0.007 129.406);
--chart-1: oklch(0.252 0.007 129.406);
--chart-2: oklch(0.245 0.007 308.839);
--chart-3: oklch(0.245 0.007 308.839);
--chart-4: oklch(0.276 0.008 308.822);
--chart-5: oklch(0.255 0.011 129.571);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.011 128.285);
--foreground: oklch(1 0 180);
--muted: oklch(0.244 0.008 308.78);
--muted-foreground: oklch(0.681 0.019 308.838);
--popover: oklch(0.123 0.014 128.285);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.014 128.285);
--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.252 0.007 129.406);
--primary-foreground: oklch(0.795 0.01 129.264);
--secondary: oklch(0.245 0.007 308.839);
--secondary-foreground: oklch(0.783 0.01 308.986);
--accent: oklch(0.245 0.007 308.839);
--accent-foreground: oklch(0.783 0.01 308.986);
--destructive: oklch(0.628 0.196 40.268);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.252 0.007 129.406);
--chart-1: oklch(0.252 0.007 129.406);
--chart-2: oklch(0.245 0.007 308.839);
--chart-3: oklch(0.245 0.007 308.839);
--chart-4: oklch(0.276 0.008 308.822);
--chart-5: oklch(0.255 0.011 129.571);
}