Plate for shadcn/ui

Plate is a shadcn/ui theme built around a near-black primary color (#000000) with muted light red accents (#e1d5d5). The light mode uses a neutral background (#fdf6f6). Dark mode keeps the near-black primary (#000000) on a neutral background (#080202).

Color palette

TokenLightDark
Background
#fdf6f6snow
#080202black
Foreground
#110303black
#fdfcfcsnow
Card
#fdf6f6snow
#080202black
Card foreground
#110303black
#fdfcfcsnow
Popover
#fdf6f6snow
#080202black
Popover foreground
#110303black
#fdfcfcsnow
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#e1d5d5gainsboro
#292929darkslategray
Secondary foreground
#4e3737darkslategray
#c2c2c2silver
Muted
#eae1e1gainsboro
#1e1515black
Muted foreground
#444141darkslategray
#bebbbbsilver
Accent
#e1d5d5gainsboro
#292929darkslategray
Accent foreground
#4e3737darkslategray
#c2c2c2silver
Destructive
#b10502darkred
#ed0602red
Destructive foreground
#ffe6e6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#000000black
#000000black

Contrast

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

Light mode
Text on background19.03:1AAA
Text on card19.03:1AAA
Primary button7.37:1AAA
Secondary button7.64:1AAA
Muted text7.88:1AAA
Accent7.64:1AAA
Destructive6.14:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button7.37:1AAA
Secondary button8.18:1AAA
Muted text9.37:1AAA
Accent8.18:1AAA
Destructive4.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 17.283);
  --foreground: oklch(0.13 0.03 22.102);
  --muted: oklch(0.917 0.009 17.319);
  --muted-foreground: oklch(0.378 0.004 17.316);
  --popover: oklch(0.98 0.007 17.283);
  --popover-foreground: oklch(0.13 0.03 22.102);
  --card: oklch(0.98 0.007 17.283);
  --card-foreground: oklch(0.13 0.03 22.102);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.883 0.013 17.411);
  --secondary-foreground: oklch(0.362 0.032 18.767);
  --accent: oklch(0.883 0.013 17.411);
  --accent-foreground: oklch(0.362 0.032 18.767);
  --destructive: oklch(0.478 0.194 29.336);
  --destructive-foreground: oklch(0.945 0.027 18.81);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.883 0.013 17.411);
  --chart-3: oklch(0.883 0.013 17.411);
  --chart-4: oklch(0.909 0.01 17.349);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.019 20.789);
  --foreground: oklch(0.991 0.002 17.192);
  --muted: oklch(0.208 0.013 18.281);
  --muted-foreground: oklch(0.795 0.003 17.22);
  --popover: oklch(0.103 0.019 20.789);
  --popover-foreground: oklch(0.991 0.002 17.192);
  --card: oklch(0.103 0.019 20.789);
  --card-foreground: oklch(0.991 0.002 17.192);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.28 0 180);
  --secondary-foreground: oklch(0.813 0 165.964);
  --accent: oklch(0.28 0 180);
  --accent-foreground: oklch(0.813 0 165.964);
  --destructive: oklch(0.596 0.243 29.304);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.28 0 180);
  --chart-3: oklch(0.28 0 180);
  --chart-4: oklch(0.311 0 180);
  --chart-5: oklch(0 0 0);
}