Tempting is a shadcn/ui theme built around a vivid green primary color (#0bc148) with vivid pink accents (#c10b84). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid green primary (#0bc148) on a green-tinted background (#060f09).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #060f09black |
| Foreground | #031709black | #f9fbfamintcream |
| Card | #f6fdf9mintcream | #07120bblack |
| Card foreground | #021208black | #fcfdfcwhite |
| Popover | #fbfefcwhite | #060f09black |
| Popover foreground | #031709black | #f9fbfamintcream |
| Primary | #0bc148limegreen | #0bc148limegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c10b84mediumvioletred | #c10b84mediumvioletred |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eed8e7gainsboro | #271120black |
| Muted foreground | #634b5bdimgray | #b49cacdarkgray |
| Accent | #c10b84mediumvioletred | #c10b84mediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #600f06maroon | #f2321corangered |
| Destructive foreground | #f9a89flightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0bc148limegreen | #0bc148limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.30:1 | AAA |
| Text on card | 18.66:1 | AAA |
| Primary button | 2.40:1 | Fail |
| Secondary button | 5.76:1 | AA |
| Muted text | 5.79:1 | AA |
| Accent | 5.76:1 | AA |
| Destructive | 7.08:1 | AAA |
| Text on background | 18.74:1 | AAA |
| Text on card | 18.66:1 | AAA |
| Primary button | 2.40:1 | Fail |
| Secondary button | 5.76:1 | AA |
| Muted text | 6.98:1 | AA |
| Accent | 5.76:1 | AA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Tempting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 157.168);
--foreground: oklch(0.182 0.04 153.641);
--muted: oklch(0.904 0.032 337.955);
--muted-foreground: oklch(0.443 0.041 339.033);
--popover: oklch(0.994 0.005 157.168);
--popover-foreground: oklch(0.182 0.04 153.641);
--card: oklch(0.989 0.009 157.069);
--card-foreground: oklch(0.164 0.034 154.999);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.707 0.208 146.948);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.539 0.222 348.105);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.539 0.222 348.105);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.319 0.116 30.737);
--destructive-foreground: oklch(0.808 0.098 26.43);
--ring: oklch(0.707 0.208 146.948);
--chart-1: oklch(0.707 0.208 146.948);
--chart-2: oklch(0.539 0.222 348.105);
--chart-3: oklch(0.539 0.222 348.105);
--chart-4: oklch(0.569 0.234 348.196);
--chart-5: oklch(0.714 0.212 146.705);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.155 0.02 155.938);
--foreground: oklch(0.986 0.002 157.225);
--muted: oklch(0.216 0.044 341.095);
--muted-foreground: oklch(0.72 0.036 338.249);
--popover: oklch(0.155 0.02 155.938);
--popover-foreground: oklch(0.986 0.002 157.225);
--card: oklch(0.17 0.023 154.636);
--card-foreground: oklch(0.993 0.001 157.245);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.707 0.208 146.948);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.539 0.222 348.105);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.539 0.222 348.105);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.623 0.228 30.513);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.707 0.208 146.948);
--chart-1: oklch(0.707 0.208 146.948);
--chart-2: oklch(0.539 0.222 348.105);
--chart-3: oklch(0.539 0.222 348.105);
--chart-4: oklch(0.569 0.234 348.196);
--chart-5: oklch(0.714 0.212 146.705);
}