Reveal for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.96:1AAA
Text on card18.96:1AAA
Primary button7.84:1AAA
Secondary button8.74:1AAA
Muted text4.68:1AA
Accent8.74:1AAA
Destructive6.66:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button7.84:1AAA
Secondary button8.74:1AAA
Muted text7.48:1AAA
Accent8.74:1AAA
Destructive4.06:1AA Large

CSS variables

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);
}