Deposition for shadcn/ui

Deposition is a shadcn/ui theme built around a neutral gray primary color (#5e5e5e) with muted light red accents (#dcc6c6). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#5e5e5e) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fefbfbsnow
#040101black
Foreground
#000000black
#f8f6f6whitesmoke
Card
#fefbfbsnow
#040101black
Card foreground
#000000black
#f8f6f6whitesmoke
Popover
#fefbfbsnow
#040101black
Popover foreground
#000000black
#f8f6f6whitesmoke
Primary
#5e5e5edimgray
#5e5e5edimgray
Primary foreground
#f7f7f7whitesmoke
#f7f7f7whitesmoke
Secondary
#ece4e4linen
#171212black
Secondary foreground
#5c4242darkolivegreen
#b6a4a4darkgray
Muted
#f4f0f0whitesmoke
#0f0b0bblack
Muted foreground
#6f5858dimgray
#a79090rosybrown
Accent
#dcc6c6thistle
#2a1d1dblack
Accent foreground
#462b2bdarkslategray
#c9b1b1silver
Destructive
#6c0b04maroon
#f84235tomato
Destructive foreground
#fcaca6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5e5e5edimgray
#5e5e5edimgray

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card20.38:1AAA
Primary button6.02:1AA
Secondary button7.27:1AAA
Muted text5.79:1AA
Accent7.89:1AAA
Destructive6.85:1AA
Dark mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button6.02:1AA
Secondary button7.80:1AAA
Muted text6.56:1AA
Accent8.03:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 17.217);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.959 0.004 17.234);
  --muted-foreground: oklch(0.483 0.032 18.306);
  --popover: oklch(0.99 0.004 17.217);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.004 17.217);
  --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.483 0 180);
  --primary-foreground: oklch(0.977 0 180);
  --secondary: oklch(0.926 0.008 17.301);
  --secondary-foreground: oklch(0.408 0.035 18.707);
  --accent: oklch(0.845 0.025 17.655);
  --accent-foreground: oklch(0.321 0.04 19.517);
  --destructive: oklch(0.341 0.13 30.048);
  --destructive-foreground: oklch(0.82 0.095 23.861);
  --ring: oklch(0.483 0 180);
  --chart-1: oklch(0.483 0 180);
  --chart-2: oklch(0.926 0.008 17.301);
  --chart-3: oklch(0.845 0.025 17.655);
  --chart-4: oklch(0.951 0.005 17.25);
  --chart-5: oklch(0.478 0.007 17.412);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.013 20.215);
  --foreground: oklch(0.976 0.002 17.191);
  --muted: oklch(0.154 0.007 17.955);
  --muted-foreground: oklch(0.674 0.029 17.888);
  --popover: oklch(0.083 0.013 20.215);
  --popover-foreground: oklch(0.976 0.002 17.191);
  --card: oklch(0.083 0.013 20.215);
  --card-foreground: oklch(0.976 0.002 17.191);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.483 0 180);
  --primary-foreground: oklch(0.977 0 180);
  --secondary: oklch(0.188 0.007 17.829);
  --secondary-foreground: oklch(0.736 0.021 17.639);
  --accent: oklch(0.248 0.02 18.617);
  --accent-foreground: oklch(0.78 0.028 17.759);
  --destructive: oklch(0.648 0.22 28.816);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.483 0 180);
  --chart-1: oklch(0.483 0 180);
  --chart-2: oklch(0.188 0.007 17.829);
  --chart-3: oklch(0.248 0.02 18.617);
  --chart-4: oklch(0.221 0.01 17.922);
  --chart-5: oklch(0.478 0.007 17.412);
}