Tempting is a shadcn/ui theme built around a muted teal primary color (#6f8582) with muted blue accents (#6f7e85). The light mode uses a neutral background (#fbfefe). Dark mode keeps the muted teal primary (#6f8582) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefewhite | #030706black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f6fdfcmintcream | #050a09black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f6fdfcmintcream | #050a09black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #6f8582slategray | #6f8582slategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6f8577gray | #6f8577gray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9f2ecwhitesmoke | #0d1610black |
| Muted foreground | #596e60dimgray | #91a698darkseagreen |
| Accent | #6f7e85slategray | #6f7e85slategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d13d15firebrick | #e84417orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6f8582slategray | #6f8582slategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.72:1 | AAA |
| Text on card | 20.44:1 | AAA |
| Primary button | 3.90:1 | AA Large |
| Secondary button | 3.94:1 | AA Large |
| Muted text | 4.79:1 | AA |
| Accent | 4.19:1 | AA Large |
| Destructive | 4.77:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 3.90:1 | AA Large |
| Secondary button | 3.94:1 | AA Large |
| Muted text | 7.09:1 | AAA |
| Accent | 4.19:1 | AA Large |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Tempting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 185.35);
--foreground: oklch(0 0 0);
--muted: oklch(0.952 0.013 156.989);
--muted-foreground: oklch(0.517 0.035 155.82);
--popover: oklch(0.99 0.008 185.249);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.99 0.008 185.249);
--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.599 0.026 184.275);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.596 0.034 156.056);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.584 0.021 229.264);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.575 0.19 34.983);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.599 0.026 184.275);
--chart-1: oklch(0.599 0.026 184.275);
--chart-2: oklch(0.596 0.034 156.056);
--chart-3: oklch(0.584 0.021 229.264);
--chart-4: oklch(0.622 0.034 156.096);
--chart-5: oklch(0.606 0.034 183.902);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.009 185.228);
--foreground: oklch(1 0 180);
--muted: oklch(0.191 0.019 155.081);
--muted-foreground: oklch(0.706 0.032 156.3);
--popover: oklch(0.139 0.01 185.226);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.01 185.226);
--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.599 0.026 184.275);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.596 0.034 156.056);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.584 0.021 229.264);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.621 0.207 34.904);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.599 0.026 184.275);
--chart-1: oklch(0.599 0.026 184.275);
--chart-2: oklch(0.596 0.034 156.056);
--chart-3: oklch(0.584 0.021 229.264);
--chart-4: oklch(0.622 0.034 156.096);
--chart-5: oklch(0.606 0.034 183.902);
}