Tempting is a shadcn/ui theme built around a vivid light red primary color (#fbb1b8) with muted light red accents (#cfc4c5). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the vivid light red primary (#fbb1b8) on a red-tinted background (#100405).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #100405black |
| Foreground | #000000black | #f8f6f6whitesmoke |
| Card | #fcf8f8snow | #100405black |
| Card foreground | #000000black | #f8f6f6whitesmoke |
| Popover | #fcf8f8snow | #100405black |
| Popover foreground | #000000black | #f8f6f6whitesmoke |
| Primary | #fbb1b8lightpink | #fbb1b8lightpink |
| Primary foreground | #74060fmaroon | #74060fmaroon |
| Secondary | #dad8d8gainsboro | #2a2828darkslategray |
| Secondary foreground | #423e3edarkslategray | #c3c1c1silver |
| Muted | #e3d9dagainsboro | #261c1dblack |
| Muted foreground | #4a3b3cdarkslategray | #c4b5b7silver |
| Accent | #cfc4c5silver | #46393adarkslategray |
| Accent foreground | #352c2cdarkslategray | #ddd5d6gainsboro |
| Destructive | #9d2207firebrick | #f64923orangered |
| Destructive foreground | #fddfd8mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fbb1b8lightpink | #fbb1b8lightpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 6.82:1 | AA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 18.70:1 | AAA |
| Text on card | 18.70:1 | AAA |
| Primary button | 6.82:1 | AA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 8.38:1 | AAA |
| Accent | 7.60:1 | AAA |
| Destructive | 3.55: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.004 11.35);
--foreground: oklch(0 0 0);
--muted: oklch(0.893 0.011 11.519);
--muted-foreground: oklch(0.368 0.021 12.484);
--popover: oklch(0.982 0.004 11.35);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.004 11.35);
--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.833 0.086 13.583);
--primary-foreground: oklch(0.356 0.14 25.508);
--secondary: oklch(0.883 0.003 11.312);
--secondary-foreground: oklch(0.367 0.005 11.565);
--accent: oklch(0.83 0.012 11.568);
--accent-foreground: oklch(0.303 0.014 12.291);
--destructive: oklch(0.455 0.162 33.103);
--destructive-foreground: oklch(0.926 0.035 32.717);
--ring: oklch(0.833 0.086 13.583);
--chart-1: oklch(0.833 0.086 13.583);
--chart-2: oklch(0.883 0.003 11.312);
--chart-3: oklch(0.83 0.012 11.568);
--chart-4: oklch(0.907 0.002 11.298);
--chart-5: oklch(0.832 0.089 13.673);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.025 13.886);
--foreground: oklch(0.976 0.002 11.301);
--muted: oklch(0.24 0.016 12.702);
--muted-foreground: oklch(0.787 0.017 11.715);
--popover: oklch(0.132 0.025 13.886);
--popover-foreground: oklch(0.976 0.002 11.301);
--card: oklch(0.132 0.025 13.886);
--card-foreground: oklch(0.976 0.002 11.301);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.833 0.086 13.583);
--primary-foreground: oklch(0.356 0.14 25.508);
--secondary: oklch(0.279 0.002 11.439);
--secondary-foreground: oklch(0.812 0.003 11.324);
--accent: oklch(0.36 0.018 12.355);
--accent-foreground: oklch(0.879 0.008 11.461);
--destructive: oklch(0.65 0.215 33.752);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.833 0.086 13.583);
--chart-1: oklch(0.833 0.086 13.583);
--chart-2: oklch(0.279 0.002 11.439);
--chart-3: oklch(0.36 0.018 12.355);
--chart-4: oklch(0.309 0.003 11.447);
--chart-5: oklch(0.832 0.089 13.673);
}