Tempting is a shadcn/ui theme built around a deep purple primary color (#260821) with deep pink accents (#260812). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the deep purple primary (#260821) on a purple-tinted background (#10050e).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fcsnow | #10050eblack |
| Foreground | #140611black | #ffffffwhite |
| Card | #fdf7fcsnow | #10050eblack |
| Card foreground | #140611black | #ffffffwhite |
| Popover | #fdf7fcsnow | #10050eblack |
| Popover foreground | #140611black | #ffffffwhite |
| Primary | #260821black | #260821black |
| Primary foreground | #e37dd2orchid | #e37dd2orchid |
| Secondary | #1c0826black | #1c0826black |
| Secondary foreground | #c17de3orchid | #c17de3orchid |
| Muted | #e8ddeelavender | #1c1122black |
| Muted foreground | #48454adarkslategray | #b8b5basilver |
| Accent | #260812black | #260812black |
| Accent foreground | #e37d9fpalevioletred | #e37d9fpalevioletred |
| Destructive | #8b2a04saddlebrown | #ea4706orangered |
| Destructive foreground | #fdd4c3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #260821black | #260821black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.69:1 | AAA |
| Text on card | 18.69:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 6.57:1 | AA |
| Muted text | 7.19:1 | AAA |
| Accent | 6.84:1 | AA |
| Destructive | 6.31:1 | AA |
| Text on background | 20.02:1 | AAA |
| Text on card | 20.02:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 6.57:1 | AA |
| Muted text | 8.98:1 | AAA |
| Accent | 6.84:1 | AA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Tempting in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.008 330.936);
--foreground: oklch(0.151 0.034 333.283);
--muted: oklch(0.911 0.026 314.686);
--muted-foreground: oklch(0.396 0.008 314.728);
--popover: oklch(0.982 0.008 330.936);
--popover-foreground: oklch(0.151 0.034 333.283);
--card: oklch(0.982 0.008 330.936);
--card-foreground: oklch(0.151 0.034 333.283);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.199 0.063 334.765);
--primary-foreground: oklch(0.73 0.164 333.615);
--secondary: oklch(0.185 0.062 312.729);
--secondary-foreground: oklch(0.698 0.161 313.583);
--accent: oklch(0.191 0.052 2.493);
--accent-foreground: oklch(0.711 0.132 359.72);
--destructive: oklch(0.431 0.138 37.907);
--destructive-foreground: oklch(0.901 0.052 42.718);
--ring: oklch(0.199 0.063 334.765);
--chart-1: oklch(0.199 0.063 334.765);
--chart-2: oklch(0.185 0.062 312.729);
--chart-3: oklch(0.191 0.052 2.493);
--chart-4: oklch(0.215 0.078 312.331);
--chart-5: oklch(0.199 0.065 334.907);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.029 332.765);
--foreground: oklch(1 0 180);
--muted: oklch(0.201 0.038 313.865);
--muted-foreground: oklch(0.778 0.007 314.784);
--popover: oklch(0.138 0.029 332.765);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.029 332.765);
--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.199 0.063 334.765);
--primary-foreground: oklch(0.73 0.164 333.615);
--secondary: oklch(0.185 0.062 312.729);
--secondary-foreground: oklch(0.698 0.161 313.583);
--accent: oklch(0.191 0.052 2.493);
--accent-foreground: oklch(0.711 0.132 359.72);
--destructive: oklch(0.626 0.208 36.759);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.199 0.063 334.765);
--chart-1: oklch(0.199 0.063 334.765);
--chart-2: oklch(0.185 0.062 312.729);
--chart-3: oklch(0.191 0.052 2.493);
--chart-4: oklch(0.215 0.078 312.331);
--chart-5: oklch(0.199 0.065 334.907);
}