Midline for shadcn/ui

Midline is a shadcn/ui theme built around a vivid deep orange primary color (#4a2b08) with vivid deep yellow accents (#484a08). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep orange primary (#4a2b08) on a neutral background (#070503).

Color palette

TokenLightDark
Background
#ffffffwhite
#070503black
Foreground
#040301black
#f9f7f5whitesmoke
Card
#ffffffwhite
#070503black
Card foreground
#040301black
#f9f7f5whitesmoke
Popover
#ffffffwhite
#070503black
Popover foreground
#040301black
#f9f7f5whitesmoke
Primary
#4a2b08maroon
#4a2b08maroon
Primary foreground
#f3c590burlywood
#f3c590burlywood
Secondary
#4a0a08maroon
#4a0a08maroon
Secondary foreground
#f39490darksalmon
#f39490darksalmon
Muted
#ebdbdbgainsboro
#241414black
Muted foreground
#6b5352dimgray
#ad9594rosybrown
Accent
#484a08darkolivegreen
#484a08darkolivegreen
Accent foreground
#e4ea34greenyellow
#e4ea34greenyellow
Destructive
#8f2a05saddlebrown
#f7571dorangered
Destructive foreground
#fdd7c9bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4a2b08maroon
#4a2b08maroon

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button8.05:1AAA
Secondary button7.06:1AAA
Muted text5.26:1AA
Accent7.15:1AAA
Destructive6.31:1AA
Dark mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button8.05:1AAA
Secondary button7.06:1AAA
Muted text6.31:1AA
Accent7.15:1AAA
Destructive6.32:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.096 0.014 81.382);
  --muted: oklch(0.905 0.017 19.879);
  --muted-foreground: oklch(0.466 0.032 20.657);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.096 0.014 81.382);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.096 0.014 81.382);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.321 0.065 64.284);
  --primary-foreground: oklch(0.852 0.086 69.992);
  --secondary: oklch(0.268 0.095 27.92);
  --secondary-foreground: oklch(0.764 0.116 22.265);
  --accent: oklch(0.394 0.082 111.672);
  --accent-foreground: oklch(0.903 0.187 111.613);
  --destructive: oklch(0.437 0.142 37.056);
  --destructive-foreground: oklch(0.907 0.047 40.999);
  --ring: oklch(0.321 0.065 64.284);
  --chart-1: oklch(0.321 0.065 64.284);
  --chart-2: oklch(0.268 0.095 27.92);
  --chart-3: oklch(0.394 0.082 111.672);
  --chart-4: oklch(0.299 0.108 28.103);
  --chart-5: oklch(0.323 0.067 63.872);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.01 77.603);
  --foreground: oklch(0.978 0.003 71.421);
  --muted: oklch(0.214 0.026 21.635);
  --muted-foreground: oklch(0.691 0.028 20.213);
  --popover: oklch(0.119 0.01 77.603);
  --popover-foreground: oklch(0.978 0.003 71.421);
  --card: oklch(0.119 0.01 77.603);
  --card-foreground: oklch(0.978 0.003 71.421);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.321 0.065 64.284);
  --primary-foreground: oklch(0.852 0.086 69.992);
  --secondary: oklch(0.268 0.095 27.92);
  --secondary-foreground: oklch(0.764 0.116 22.265);
  --accent: oklch(0.394 0.082 111.672);
  --accent-foreground: oklch(0.903 0.187 111.613);
  --destructive: oklch(0.666 0.206 37.816);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.321 0.065 64.284);
  --chart-1: oklch(0.321 0.065 64.284);
  --chart-2: oklch(0.268 0.095 27.92);
  --chart-3: oklch(0.394 0.082 111.672);
  --chart-4: oklch(0.299 0.108 28.103);
  --chart-5: oklch(0.323 0.067 63.872);
}