Inbox for shadcn/ui

Inbox is a shadcn/ui theme built around a light red primary color (#ebbdbc) with light teal accents (#bceaeb). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#ebbdbc) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#ffffffwhite
#040101black
Foreground
#140606black
#f9f5f5whitesmoke
Card
#fcfcfcsnow
#080202black
Card foreground
#100504black
#fbf9f8snow
Popover
#fcfcfcsnow
#080202black
Popover foreground
#100504black
#fbf9f8snow
Primary
#ebbdbclightpink
#ebbdbclightpink
Primary foreground
#5b1d1amaroon
#5b1d1amaroon
Secondary
#bceaebpaleturquoise
#bceaebpaleturquoise
Secondary foreground
#1a595bdarkslategray
#1a595bdarkslategray
Muted
#cae6e7gainsboro
#183435darkslategray
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#bceaebpaleturquoise
#bceaebpaleturquoise
Accent foreground
#1a595bdarkslategray
#1a595bdarkslategray
Destructive
#bd2814firebrick
#e83d26orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ebbdbclightpink
#ebbdbclightpink

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.65:1AAA
Primary button7.69:1AAA
Secondary button6.13:1AA
Muted text7.91:1AAA
Accent6.13:1AA
Destructive6.03:1AA
Dark mode
Text on background19.20:1AAA
Text on card19.59:1AAA
Primary button7.69:1AAA
Secondary button6.13:1AA
Muted text7.24:1AAA
Accent6.13:1AA
Destructive4.09:1AA Large

CSS variables

Paste this into your globals.css to use Inbox in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.026 23.557);
  --muted: oklch(0.906 0.03 199.181);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.134 0.023 23.546);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.134 0.023 23.546);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.84 0.053 20.575);
  --primary-foreground: oklch(0.327 0.092 25.545);
  --secondary: oklch(0.905 0.047 198.953);
  --secondary-foreground: oklch(0.425 0.062 198.389);
  --accent: oklch(0.905 0.047 198.953);
  --accent-foreground: oklch(0.425 0.062 198.389);
  --destructive: oklch(0.521 0.188 31.035);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.84 0.053 20.575);
  --chart-1: oklch(0.84 0.053 20.575);
  --chart-2: oklch(0.905 0.047 198.953);
  --chart-3: oklch(0.905 0.047 198.953);
  --chart-4: oklch(0.921 0.039 199.062);
  --chart-5: oklch(0.838 0.056 20.638);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.015 24.021);
  --foreground: oklch(0.974 0.004 19.669);
  --muted: oklch(0.303 0.034 198.437);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0.104 0.018 24.021);
  --popover-foreground: oklch(0.983 0.003 19.647);
  --card: oklch(0.104 0.018 24.021);
  --card-foreground: oklch(0.983 0.003 19.647);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.84 0.053 20.575);
  --primary-foreground: oklch(0.327 0.092 25.545);
  --secondary: oklch(0.905 0.047 198.953);
  --secondary-foreground: oklch(0.425 0.062 198.389);
  --accent: oklch(0.905 0.047 198.953);
  --accent-foreground: oklch(0.425 0.062 198.389);
  --destructive: oklch(0.616 0.211 31);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.84 0.053 20.575);
  --chart-1: oklch(0.84 0.053 20.575);
  --chart-2: oklch(0.905 0.047 198.953);
  --chart-3: oklch(0.905 0.047 198.953);
  --chart-4: oklch(0.921 0.039 199.062);
  --chart-5: oklch(0.838 0.056 20.638);
}