Tempting is a shadcn/ui theme built around a green primary color (#8ac65d) with green accents (#5dc664). The light mode uses a neutral background (#fafcf8). Dark mode keeps the green primary (#8ac65d) on a neutral background (#050802).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #050802black |
| Foreground | #0c1504black | #fafbf8snow |
| Card | #f7fbf4whitesmoke | #070c04black |
| Card foreground | #091103black | #fcfdfcwhite |
| Popover | #fafcf8snow | #050802black |
| Popover foreground | #0c1504black | #fafbf8snow |
| Primary | #8ac65dyellowgreen | #8ac65dyellowgreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #bfc65ddarkkhaki | #bfc65ddarkkhaki |
| Secondary foreground | #000000black | #000000black |
| Muted | #f2f3ecwhitesmoke | #12130cblack |
| Muted foreground | #4a4a45darkslategray | #babab5silver |
| Accent | #5dc664mediumseagreen | #5dc664mediumseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #9e2000darkred | #ff5429tomato |
| Destructive foreground | #ffdad1bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8ac65dyellowgreen | #8ac65dyellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.09:1 | AAA |
| Text on card | 18.33:1 | AAA |
| Primary button | 10.31:1 | AAA |
| Secondary button | 11.44:1 | AAA |
| Muted text | 7.98:1 | AAA |
| Accent | 9.72:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 19.42:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 10.31:1 | AAA |
| Secondary button | 11.44:1 | AAA |
| Muted text | 9.61:1 | AAA |
| Accent | 9.72:1 | AAA |
| Destructive | 6.54:1 | AA |
Paste this into your globals.css to use Tempting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 131.144);
--foreground: oklch(0.182 0.037 132.07);
--muted: oklch(0.962 0.009 109.643);
--muted-foreground: oklch(0.408 0.009 109.902);
--popover: oklch(0.988 0.007 131.144);
--popover-foreground: oklch(0.182 0.037 132.07);
--card: oklch(0.983 0.01 131.175);
--card-foreground: oklch(0.165 0.032 130.922);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.762 0.151 133.327);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.799 0.13 112.433);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.741 0.168 144.897);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.455 0.166 33.478);
--destructive-foreground: oklch(0.918 0.043 34.327);
--ring: oklch(0.762 0.151 133.327);
--chart-1: oklch(0.762 0.151 133.327);
--chart-2: oklch(0.799 0.13 112.433);
--chart-3: oklch(0.741 0.168 144.897);
--chart-4: oklch(0.813 0.122 112.206);
--chart-5: oklch(0.77 0.159 133.477);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.019 129.797);
--foreground: oklch(0.987 0.004 131.122);
--muted: oklch(0.182 0.013 110.739);
--muted-foreground: oklch(0.788 0.008 109.666);
--popover: oklch(0.126 0.019 129.797);
--popover-foreground: oklch(0.987 0.004 131.122);
--card: oklch(0.144 0.022 129.944);
--card-foreground: oklch(0.994 0.002 131.103);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.762 0.151 133.327);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.799 0.13 112.433);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.741 0.168 144.897);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.676 0.214 34.697);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.762 0.151 133.327);
--chart-1: oklch(0.762 0.151 133.327);
--chart-2: oklch(0.799 0.13 112.433);
--chart-3: oklch(0.741 0.168 144.897);
--chart-4: oklch(0.813 0.122 112.206);
--chart-5: oklch(0.77 0.159 133.477);
}