Normal for shadcn/ui

Normal is a shadcn/ui theme built around a light indigo primary color (#e6e2f3) with light violet accents (#eee2f3). The light mode uses a neutral background (#f8f6fd). Dark mode keeps the light indigo primary (#e6e2f3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8f6fdghostwhite
#000000black
Foreground
#060312black
#fcfcfdwhite
Card
#f4f2fdghostwhite
#030303black
Card foreground
#04020dblack
#ffffffwhite
Popover
#f4f2fdghostwhite
#030303black
Popover foreground
#04020dblack
#ffffffwhite
Primary
#e6e2f3lavender
#e6e2f3lavender
Primary foreground
#3e2f75darkslateblue
#3e2f75darkslateblue
Secondary
#e2e7f3lavender
#e2e7f3lavender
Secondary foreground
#2f4275darkslateblue
#2f4275darkslateblue
Muted
#d3d8e4gainsboro
#1b202cblack
Muted foreground
#474748darkslategray
#b7b7b8silver
Accent
#eee2f3lavender
#eee2f3lavender
Accent foreground
#612f75darkslateblue
#612f75darkslateblue
Destructive
#7e150cmaroon
#db2514firebrick
Destructive foreground
#f9c7c2pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e6e2f3lavender
#e6e2f3lavender

Contrast

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

Light mode
Text on background19.07:1AAA
Text on card18.61:1AAA
Primary button8.83:1AAA
Secondary button7.85:1AAA
Muted text6.48:1AA
Accent7.73:1AAA
Destructive6.98:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button8.83:1AAA
Secondary button7.85:1AAA
Muted text8.10:1AAA
Accent7.73:1AAA
Destructive4.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0.009 296.155);
  --foreground: oklch(0.115 0.04 293.381);
  --muted: oklch(0.881 0.017 268.647);
  --muted-foreground: oklch(0.398 0.002 268.76);
  --popover: oklch(0.966 0.014 296.062);
  --popover-foreground: oklch(0.104 0.034 294.654);
  --card: oklch(0.966 0.014 296.062);
  --card-foreground: oklch(0.104 0.034 294.654);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.92 0.024 295.855);
  --primary-foreground: oklch(0.361 0.115 289.284);
  --secondary: oklch(0.927 0.018 268.647);
  --secondary-foreground: oklch(0.39 0.089 266.125);
  --accent: oklch(0.927 0.027 316.524);
  --accent-foreground: oklch(0.402 0.124 315.359);
  --destructive: oklch(0.385 0.141 29.965);
  --destructive-foreground: oklch(0.872 0.058 24.356);
  --ring: oklch(0.92 0.024 295.855);
  --chart-1: oklch(0.92 0.024 295.855);
  --chart-2: oklch(0.927 0.018 268.647);
  --chart-3: oklch(0.927 0.027 316.524);
  --chart-4: oklch(0.955 0.011 268.707);
  --chart-5: oklch(0.919 0.026 295.821);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.001 296.308);
  --muted: oklch(0.245 0.024 267.863);
  --muted-foreground: oklch(0.78 0.002 268.778);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.92 0.024 295.855);
  --primary-foreground: oklch(0.361 0.115 289.284);
  --secondary: oklch(0.927 0.018 268.647);
  --secondary-foreground: oklch(0.39 0.089 266.125);
  --accent: oklch(0.927 0.027 316.524);
  --accent-foreground: oklch(0.402 0.124 315.359);
  --destructive: oklch(0.574 0.217 30.078);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.92 0.024 295.855);
  --chart-1: oklch(0.92 0.024 295.855);
  --chart-2: oklch(0.927 0.018 268.647);
  --chart-3: oklch(0.927 0.027 316.524);
  --chart-4: oklch(0.955 0.011 268.707);
  --chart-5: oklch(0.919 0.026 295.821);
}