Normal for shadcn/ui

Normal is a shadcn/ui theme built around a muted deep purple primary color (#3c343d) with muted deep green accents (#343d34). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep purple primary (#3c343d) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#ffffffwhite
#070307black
Foreground
#000000black
#fbf9fbsnow
Card
#fcfcfcsnow
#0b050bblack
Card foreground
#000000black
#fdfcfdwhite
Popover
#fcfcfcsnow
#0b050bblack
Popover foreground
#000000black
#fdfcfdwhite
Primary
#3c343ddarkslategray
#3c343ddarkslategray
Primary foreground
#d5cdd5lightgrey
#d5cdd5lightgrey
Secondary
#343d34darkslategray
#343d34darkslategray
Secondary foreground
#ced5cdlightgrey
#ced5cdlightgrey
Muted
#d5e2d5gainsboro
#1d2a1dblack
Muted foreground
#3d483cdarkslategray
#b7c3b7silver
Accent
#343d34darkslategray
#343d34darkslategray
Accent foreground
#ced5cdlightgrey
#ced5cdlightgrey
Destructive
#982106darkred
#f64923orangered
Destructive foreground
#fddbd3antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3c343ddarkslategray
#3c343ddarkslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.74:1AAA
Secondary button7.57:1AAA
Muted text7.15:1AAA
Accent7.57:1AAA
Destructive6.37:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.76:1AAA
Primary button7.74:1AAA
Secondary button7.57:1AAA
Muted text8.16:1AAA
Accent7.57:1AAA
Destructive3.55:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.899 0.023 144.918);
  --muted-foreground: oklch(0.388 0.025 144.636);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.336 0.02 325.496);
  --primary-foreground: oklch(0.858 0.013 325.203);
  --secondary: oklch(0.347 0.019 144.7);
  --secondary-foreground: oklch(0.865 0.013 144.997);
  --accent: oklch(0.347 0.019 144.7);
  --accent-foreground: oklch(0.865 0.013 144.997);
  --destructive: oklch(0.445 0.158 33.145);
  --destructive-foreground: oklch(0.917 0.04 32.735);
  --ring: oklch(0.336 0.02 325.496);
  --chart-1: oklch(0.336 0.02 325.496);
  --chart-2: oklch(0.347 0.019 144.7);
  --chart-3: oklch(0.347 0.019 144.7);
  --chart-4: oklch(0.377 0.022 144.69);
  --chart-5: oklch(0.335 0.027 325.64);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.018 326.27);
  --foreground: oklch(0.984 0.004 325.126);
  --muted: oklch(0.27 0.031 144.261);
  --muted-foreground: oklch(0.804 0.021 144.916);
  --popover: oklch(0.126 0.021 326.254);
  --popover-foreground: oklch(0.992 0.002 325.113);
  --card: oklch(0.126 0.021 326.254);
  --card-foreground: oklch(0.992 0.002 325.113);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.336 0.02 325.496);
  --primary-foreground: oklch(0.858 0.013 325.203);
  --secondary: oklch(0.347 0.019 144.7);
  --secondary-foreground: oklch(0.865 0.013 144.997);
  --accent: oklch(0.347 0.019 144.7);
  --accent-foreground: oklch(0.865 0.013 144.997);
  --destructive: oklch(0.65 0.215 33.752);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.336 0.02 325.496);
  --chart-1: oklch(0.336 0.02 325.496);
  --chart-2: oklch(0.347 0.019 144.7);
  --chart-3: oklch(0.347 0.019 144.7);
  --chart-4: oklch(0.377 0.022 144.69);
  --chart-5: oklch(0.335 0.027 325.64);
}