Unlined for shadcn/ui

Unlined is a shadcn/ui theme built around a neutral gray primary color (#737373) with muted red accents (#c4abab). The light mode uses a neutral background (#fefbfb). Dark mode keeps the neutral gray primary (#737373) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fefbfbsnow
#030202black
Foreground
#050101black
#faf5f5whitesmoke
Card
#fdf7f7snow
#070303black
Card foreground
#000000black
#fcf8f8snow
Popover
#fefbfbsnow
#030202black
Popover foreground
#050101black
#faf5f5whitesmoke
Primary
#737373dimgray
#737373dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d6cdcdlightgrey
#181616black
Secondary foreground
#3e3232darkslategray
#b5ababdarkgray
Muted
#ebe5e5linen
#1a1414black
Muted foreground
#5c4d4ddimgray
#b2a3a3darkgray
Accent
#c4ababdarkgray
#322525darkslategray
Accent foreground
#241919black
#cdbcbcsilver
Destructive
#852905saddlebrown
#f86930tomato
Destructive foreground
#fdd0bfpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#737373dimgray
#737373dimgray

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card19.80:1AAA
Primary button4.75:1AA
Secondary button7.85:1AAA
Muted text6.43:1AA
Accent7.94:1AAA
Destructive6.45:1AA
Dark mode
Text on background19.21:1AAA
Text on card19.44:1AAA
Primary button4.75:1AA
Secondary button8.06:1AAA
Muted text7.50:1AAA
Accent8.08:1AAA
Destructive7.02:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 17.212);
  --foreground: oklch(0.077 0.022 23.785);
  --muted: oklch(0.927 0.006 17.274);
  --muted-foreground: oklch(0.434 0.02 17.966);
  --popover: oklch(0.99 0.003 17.212);
  --popover-foreground: oklch(0.077 0.022 23.785);
  --card: oklch(0.98 0.007 17.268);
  --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.555 0 173.991);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.854 0.01 17.356);
  --secondary-foreground: oklch(0.331 0.016 18);
  --accent: oklch(0.763 0.03 17.827);
  --accent-foreground: oklch(0.228 0.018 18.54);
  --destructive: oklch(0.418 0.132 38.185);
  --destructive-foreground: oklch(0.893 0.055 42.695);
  --ring: oklch(0.555 0 173.991);
  --chart-1: oklch(0.555 0 173.991);
  --chart-2: oklch(0.854 0.01 17.356);
  --chart-3: oklch(0.763 0.03 17.827);
  --chart-4: oklch(0.879 0.008 17.317);
  --chart-5: oklch(0.549 0.009 17.418);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.009 19.049);
  --foreground: oklch(0.973 0.006 17.258);
  --muted: oklch(0.198 0.01 18.008);
  --muted-foreground: oklch(0.729 0.018 17.565);
  --popover: oklch(0.086 0.009 19.049);
  --popover-foreground: oklch(0.973 0.006 17.258);
  --card: oklch(0.108 0.011 19.049);
  --card-foreground: oklch(0.982 0.004 17.224);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.555 0 173.991);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.202 0.004 17.526);
  --secondary-foreground: oklch(0.75 0.011 17.4);
  --accent: oklch(0.279 0.02 18.409);
  --accent-foreground: oklch(0.808 0.02 17.574);
  --destructive: oklch(0.69 0.188 40.206);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.555 0 173.991);
  --chart-1: oklch(0.555 0 173.991);
  --chart-2: oklch(0.202 0.004 17.526);
  --chart-3: oklch(0.279 0.02 18.409);
  --chart-4: oklch(0.234 0.006 17.567);
  --chart-5: oklch(0.549 0.009 17.418);
}