Reveal is a shadcn/ui theme built around a muted deep pink primary color (#1a1416) with muted deep teal accents (#141a18). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the muted deep pink primary (#1a1416) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #000000black |
| Foreground | #160309black | #f8f6f7whitesmoke |
| Card | #fcf8f9snow | #000000black |
| Card foreground | #160309black | #f8f6f7whitesmoke |
| Popover | #fcf8f9snow | #000000black |
| Popover foreground | #160309black | #f8f6f7whitesmoke |
| Primary | #1a1416black | #1a1416black |
| Primary foreground | #bca4acdarkgray | #bca4acdarkgray |
| Secondary | #141a18black | #141a18black |
| Secondary foreground | #a4bcb4darkgray | #a4bcb4darkgray |
| Muted | #e5ebe9lavender | #141a18black |
| Muted foreground | #506d64dimgray | #92afa6darkgray |
| Accent | #141a18black | #141a18black |
| Accent foreground | #a4bcb4darkgray | #a4bcb4darkgray |
| Destructive | #a21a10firebrick | #ea3b2ecrimson |
| Destructive foreground | #fde9e8linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a1416black | #1a1416black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.96:1 | AAA |
| Text on card | 18.96:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 8.74:1 | AAA |
| Muted text | 4.68:1 | AA |
| Accent | 8.74:1 | AAA |
| Destructive | 6.66:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 8.74:1 | AAA |
| Muted text | 7.48:1 | AAA |
| Accent | 8.74:1 | AAA |
| Destructive | 4.06:1 | AA Large |
Paste this into your globals.css to use Reveal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 355.742);
--foreground: oklch(0.144 0.039 359.357);
--muted: oklch(0.935 0.007 175.401);
--muted-foreground: oklch(0.508 0.036 173.339);
--popover: oklch(0.982 0.004 355.742);
--popover-foreground: oklch(0.144 0.039 359.357);
--card: oklch(0.982 0.004 355.742);
--card-foreground: oklch(0.144 0.039 359.357);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.199 0.012 357.295);
--primary-foreground: oklch(0.742 0.029 356.734);
--secondary: oklch(0.212 0.011 173.986);
--secondary-foreground: oklch(0.774 0.028 174.519);
--accent: oklch(0.212 0.011 173.986);
--accent-foreground: oklch(0.774 0.028 174.519);
--destructive: oklch(0.46 0.172 29.57);
--destructive-foreground: oklch(0.95 0.021 22.478);
--ring: oklch(0.199 0.012 357.295);
--chart-1: oklch(0.199 0.012 357.295);
--chart-2: oklch(0.212 0.011 173.986);
--chart-3: oklch(0.212 0.011 173.986);
--chart-4: oklch(0.247 0.014 173.817);
--chart-5: oklch(0.198 0.014 357.64);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.003 355.693);
--muted: oklch(0.211 0.01 174.201);
--muted-foreground: oklch(0.729 0.034 174.195);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.003 355.693);
--card: oklch(0 0 0);
--card-foreground: oklch(0.976 0.003 355.693);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.199 0.012 357.295);
--primary-foreground: oklch(0.742 0.029 356.734);
--secondary: oklch(0.212 0.011 173.986);
--secondary-foreground: oklch(0.774 0.028 174.519);
--accent: oklch(0.212 0.011 173.986);
--accent-foreground: oklch(0.774 0.028 174.519);
--destructive: oklch(0.618 0.214 28.976);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.199 0.012 357.295);
--chart-1: oklch(0.199 0.012 357.295);
--chart-2: oklch(0.212 0.011 173.986);
--chart-3: oklch(0.212 0.011 173.986);
--chart-4: oklch(0.247 0.014 173.817);
--chart-5: oklch(0.198 0.014 357.64);
}