Length for shadcn/ui

Length is a shadcn/ui theme built around a light red primary color (#f8d3dc) with light blue accents (#d3dcf8). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the light red primary (#f8d3dc) on a red-tinted background (#0b0406).

Color palette

TokenLightDark
Background
#fdf7f8snow
#0b0406black
Foreground
#090103black
#ffffffwhite
Card
#fdf7f8snow
#0b0406black
Card foreground
#090103black
#ffffffwhite
Popover
#fdf7f8snow
#0b0406black
Popover foreground
#090103black
#ffffffwhite
Primary
#f8d3dcmistyrose
#f8d3dcmistyrose
Primary foreground
#851430brown
#851430brown
Secondary
#dcf8d3beige
#dcf8d3beige
Secondary foreground
#102c07black
#102c07black
Muted
#e8f0e5beige
#121a0fblack
Muted foreground
#474847darkslategray
#b7b8b7silver
Accent
#d3dcf8lavender
#d3dcf8lavender
Accent foreground
#143085midnightblue
#143085midnightblue
Destructive
#872e08saddlebrown
#e34d0dorangered
Destructive foreground
#fcd6c5peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8d3dcmistyrose
#f8d3dcmistyrose

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button7.15:1AAA
Secondary button13.32:1AAA
Muted text7.89:1AAA
Accent8.57:1AAA
Destructive6.42:1AA
Dark mode
Text on background20.30:1AAA
Text on card20.30:1AAA
Primary button7.15:1AAA
Secondary button13.32:1AAA
Muted text8.94:1AAA
Accent8.57:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 0.053);
  --foreground: oklch(0.101 0.026 359.749);
  --muted: oklch(0.946 0.018 137.795);
  --muted-foreground: oklch(0.401 0.003 137.775);
  --popover: oklch(0.981 0.006 0.053);
  --popover-foreground: oklch(0.101 0.026 359.749);
  --card: oklch(0.981 0.006 0.053);
  --card-foreground: oklch(0.101 0.026 359.749);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.9 0.044 1.207);
  --primary-foreground: oklch(0.404 0.146 13.74);
  --secondary: oklch(0.95 0.058 137.874);
  --secondary-foreground: oklch(0.263 0.071 138.869);
  --accent: oklch(0.896 0.04 270.938);
  --accent-foreground: oklch(0.35 0.146 265.152);
  --destructive: oklch(0.428 0.13 39.539);
  --destructive-foreground: oklch(0.903 0.048 44.521);
  --ring: oklch(0.9 0.044 1.207);
  --chart-1: oklch(0.9 0.044 1.207);
  --chart-2: oklch(0.95 0.058 137.874);
  --chart-3: oklch(0.896 0.04 270.938);
  --chart-4: oklch(0.965 0.041 137.837);
  --chart-5: oklch(0.899 0.046 1.263);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.018 359.923);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.206 0.025 138.028);
  --muted-foreground: oklch(0.782 0.002 137.768);
  --popover: oklch(0.122 0.018 359.923);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.018 359.923);
  --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.9 0.044 1.207);
  --primary-foreground: oklch(0.404 0.146 13.74);
  --secondary: oklch(0.95 0.058 137.874);
  --secondary-foreground: oklch(0.263 0.071 138.869);
  --accent: oklch(0.896 0.04 270.938);
  --accent-foreground: oklch(0.35 0.146 265.152);
  --destructive: oklch(0.621 0.196 38.607);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.9 0.044 1.207);
  --chart-1: oklch(0.9 0.044 1.207);
  --chart-2: oklch(0.95 0.058 137.874);
  --chart-3: oklch(0.896 0.04 270.938);
  --chart-4: oklch(0.965 0.041 137.837);
  --chart-5: oklch(0.899 0.046 1.263);
}