Reveal is a shadcn/ui theme built around a muted deep blue primary color (#38404c) with muted deep orange accents (#4c4538). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted deep blue primary (#38404c) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #000000black |
| Foreground | #020408black | #fcfcfdwhite |
| Card | #f7f9fdghostwhite | #030303black |
| Card foreground | #010204black | #ffffffwhite |
| Popover | #fbfcfewhite | #000000black |
| Popover foreground | #020408black | #fcfcfdwhite |
| Primary | #38404cdarkslategray | #38404cdarkslategray |
| Primary foreground | #d6dae1gainsboro | #d6dae1gainsboro |
| Secondary | #4c4538darkslategray | #4c4538darkslategray |
| Secondary foreground | #e1ddd6gainsboro | #e1ddd6gainsboro |
| Muted | #e9e5dcgainsboro | #231e16black |
| Muted foreground | #72695adimgray | #a59c8drosybrown |
| Accent | #4c4538darkslategray | #4c4538darkslategray |
| Accent foreground | #e1ddd6gainsboro | #e1ddd6gainsboro |
| Destructive | #7c1c09maroon | #d7300ffirebrick |
| Destructive foreground | #fac7bcpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #38404cdarkslategray | #38404cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.99:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 6.99:1 | AA |
| Muted text | 4.29:1 | AA Large |
| Accent | 6.99:1 | AA |
| Destructive | 6.89:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.48:1 | AAA |
| Secondary button | 6.99:1 | AA |
| Muted text | 6.12:1 | AA |
| Accent | 6.99:1 | AA |
| Destructive | 4.87:1 | AA |
Paste this into your globals.css to use Reveal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 261.514);
--foreground: oklch(0.109 0.013 254.067);
--muted: oklch(0.922 0.012 81.507);
--muted-foreground: oklch(0.525 0.026 81.384);
--popover: oklch(0.991 0.003 261.514);
--popover-foreground: oklch(0.109 0.013 254.067);
--card: oklch(0.982 0.005 261.513);
--card-foreground: oklch(0.086 0.01 254.067);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.369 0.024 261.372);
--primary-foreground: oklch(0.887 0.01 261.508);
--secondary: oklch(0.394 0.023 81.331);
--secondary-foreground: oklch(0.898 0.01 81.509);
--accent: oklch(0.394 0.023 81.331);
--accent-foreground: oklch(0.898 0.01 81.509);
--destructive: oklch(0.387 0.134 32.865);
--destructive-foreground: oklch(0.871 0.061 31.349);
--ring: oklch(0.369 0.024 261.372);
--chart-1: oklch(0.369 0.024 261.372);
--chart-2: oklch(0.394 0.023 81.331);
--chart-3: oklch(0.394 0.023 81.331);
--chart-4: oklch(0.424 0.025 81.324);
--chart-5: oklch(0.366 0.029 261.317);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 261.514);
--muted: oklch(0.237 0.017 81.225);
--muted-foreground: oklch(0.697 0.024 81.454);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.002 261.514);
--card: oklch(0.092 0 180);
--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.369 0.024 261.372);
--primary-foreground: oklch(0.887 0.01 261.508);
--secondary: oklch(0.394 0.023 81.331);
--secondary-foreground: oklch(0.898 0.01 81.509);
--accent: oklch(0.394 0.023 81.331);
--accent-foreground: oklch(0.898 0.01 81.509);
--destructive: oklch(0.573 0.206 32.508);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.369 0.024 261.372);
--chart-1: oklch(0.369 0.024 261.372);
--chart-2: oklch(0.394 0.023 81.331);
--chart-3: oklch(0.394 0.023 81.331);
--chart-4: oklch(0.424 0.025 81.324);
--chart-5: oklch(0.366 0.029 261.317);
}