Scented is a shadcn/ui theme built around an orange primary color (#7a5924) with violet accents (#59247a). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the orange primary (#7a5924) on an orange-tinted background (#0c0903).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfaf8snow | #0c0903black |
| Foreground | #040301black | #ffffffwhite |
| Card | #fbf8f4floralwhite | #100c04black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbf8f4floralwhite | #100c04black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #7a5924saddlebrown | #7a5924saddlebrown |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #247a59seagreen | #247a59seagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eef6f3whitesmoke | #09110eblack |
| Muted foreground | #384742darkslategray | #b8c7c1silver |
| Accent | #59247adarkslateblue | #59247adarkslateblue |
| Accent foreground | #ebdcf4lavender | #ebdcf4lavender |
| Destructive | #a42c04firebrick | #fa5d29tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7a5924saddlebrown | #7a5924saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 5.26:1 | AA |
| Muted text | 8.91:1 | AAA |
| Accent | 8.19:1 | AAA |
| Destructive | 7.13:1 | AAA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 5.26:1 | AA |
| Muted text | 10.92:1 | AAA |
| Accent | 8.19:1 | AAA |
| Destructive | 6.65:1 | AA |
Paste this into your globals.css to use Scented in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 79.927);
--foreground: oklch(0.097 0.01 86.369);
--muted: oklch(0.967 0.01 171.305);
--muted-foreground: oklch(0.384 0.022 169.828);
--popover: oklch(0.98 0.006 79.923);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.006 79.923);
--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.488 0.081 76.517);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.519 0.096 163.527);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.381 0.142 309.552);
--accent-foreground: oklch(0.913 0.037 312.71);
--destructive: oklch(0.478 0.162 35.732);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.488 0.081 76.517);
--chart-1: oklch(0.488 0.081 76.517);
--chart-2: oklch(0.519 0.096 163.527);
--chart-3: oklch(0.381 0.142 309.552);
--chart-4: oklch(0.554 0.104 163.423);
--chart-5: oklch(0.491 0.085 76.106);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.017 86.219);
--foreground: oklch(1 0 180);
--muted: oklch(0.167 0.014 168.995);
--muted-foreground: oklch(0.816 0.019 170.921);
--popover: oklch(0.156 0.019 83.01);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.156 0.019 83.01);
--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.488 0.081 76.517);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.519 0.096 163.527);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.381 0.142 309.552);
--accent-foreground: oklch(0.913 0.037 312.71);
--destructive: oklch(0.678 0.201 37.578);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.488 0.081 76.517);
--chart-1: oklch(0.488 0.081 76.517);
--chart-2: oklch(0.519 0.096 163.527);
--chart-3: oklch(0.381 0.142 309.552);
--chart-4: oklch(0.554 0.104 163.423);
--chart-5: oklch(0.491 0.085 76.106);
}