Scented is a shadcn/ui theme built around a vivid deep blue primary color (#051e4d) with vivid deep orange accents (#4d3405). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid deep blue primary (#051e4d) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #010204black |
| Foreground | #010204black | #f7f7f8whitesmoke |
| Card | #f8f9fbghostwhite | #020408black |
| Card foreground | #000000black | #f9fafaghostwhite |
| Popover | #fcfcfdwhite | #010204black |
| Popover foreground | #010204black | #f7f7f8whitesmoke |
| Primary | #051e4dmidnightblue | #051e4dmidnightblue |
| Primary foreground | #8cb2f8lightskyblue | #8cb2f8lightskyblue |
| Secondary | #4d3405saddlebrown | #4d3405saddlebrown |
| Secondary foreground | #f8d28ckhaki | #f8d28ckhaki |
| Muted | #e6e4e0gainsboro | #1f1d19black |
| Muted foreground | #404040darkslategray | #bfbfbfsilver |
| Accent | #4d3405saddlebrown | #4d3405saddlebrown |
| Accent foreground | #f8d28ckhaki | #f8d28ckhaki |
| Destructive | #a20a02darkred | #fd3126orangered |
| Destructive foreground | #ffd9d7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #051e4dmidnightblue | #051e4dmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 8.15:1 | AAA |
| Accent | 8.11:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 19.37:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 9.15:1 | AAA |
| Accent | 8.11:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Scented in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.001 263.051);
--foreground: oklch(0.085 0.011 255.172);
--muted: oklch(0.919 0.005 83.06);
--muted-foreground: oklch(0.371 0 168.69);
--popover: oklch(0.992 0.001 263.051);
--popover-foreground: oklch(0.085 0.011 255.172);
--card: oklch(0.983 0.003 263.049);
--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.25 0.092 261.045);
--primary-foreground: oklch(0.762 0.109 262.319);
--secondary: oklch(0.344 0.068 76.967);
--secondary-foreground: oklch(0.88 0.098 82.31);
--accent: oklch(0.344 0.068 76.967);
--accent-foreground: oklch(0.88 0.098 82.31);
--destructive: oklch(0.45 0.18 29.802);
--destructive-foreground: oklch(0.915 0.043 21.526);
--ring: oklch(0.25 0.092 261.045);
--chart-1: oklch(0.25 0.092 261.045);
--chart-2: oklch(0.344 0.068 76.967);
--chart-3: oklch(0.344 0.068 76.967);
--chart-4: oklch(0.386 0.077 76.246);
--chart-5: oklch(0.25 0.095 260.887);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.011 255.172);
--foreground: oklch(0.976 0.001 263.051);
--muted: oklch(0.231 0.007 83.049);
--muted-foreground: oklch(0.805 0 169.695);
--popover: oklch(0.085 0.011 255.172);
--popover-foreground: oklch(0.976 0.001 263.051);
--card: oklch(0.108 0.013 255.172);
--card-foreground: oklch(0.984 0.001 263.052);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.25 0.092 261.045);
--primary-foreground: oklch(0.762 0.109 262.319);
--secondary: oklch(0.344 0.068 76.967);
--secondary-foreground: oklch(0.88 0.098 82.31);
--accent: oklch(0.344 0.068 76.967);
--accent-foreground: oklch(0.88 0.098 82.31);
--destructive: oklch(0.642 0.238 28.951);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.25 0.092 261.045);
--chart-1: oklch(0.25 0.092 261.045);
--chart-2: oklch(0.344 0.068 76.967);
--chart-3: oklch(0.344 0.068 76.967);
--chart-4: oklch(0.386 0.077 76.246);
--chart-5: oklch(0.25 0.095 260.887);
}