Unlined for shadcn/ui

Unlined is a shadcn/ui theme built around a vivid deep teal primary color (#011819) with vivid deep blue accents (#010c19). The light mode uses a neutral background (#f8fcfc). Dark mode keeps the vivid deep teal primary (#011819) on a teal-tinted background (#060e0e).

Color palette

TokenLightDark
Background
#f8fcfcmintcream
#060e0eblack
Foreground
#031112black
#f8fbfbghostwhite
Card
#f8fcfcmintcream
#060e0eblack
Card foreground
#031112black
#f8fbfbghostwhite
Popover
#f8fcfcmintcream
#060e0eblack
Popover foreground
#031112black
#f8fbfbghostwhite
Primary
#011819black
#011819black
Primary foreground
#05d6e1darkturquoise
#05d6e1darkturquoise
Secondary
#01190eblack
#01190eblack
Secondary foreground
#05e17espringgreen
#05e17espringgreen
Muted
#e8edeblavender
#121715black
Muted foreground
#3f554bdarkslategray
#aac0b6silver
Accent
#010c19black
#010c19black
Accent foreground
#509dfbcornflowerblue
#509dfbcornflowerblue
Destructive
#8e0a06darkred
#f5170fred
Destructive foreground
#fdcbc9pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#011819black
#011819black

Contrast

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

Light mode
Text on background18.58:1AAA
Text on card18.58:1AAA
Primary button10.24:1AAA
Secondary button10.53:1AAA
Muted text6.79:1AA
Accent7.09:1AAA
Destructive6.62:1AA
Dark mode
Text on background18.76:1AAA
Text on card18.76:1AAA
Primary button10.24:1AAA
Secondary button10.53:1AAA
Muted text9.43:1AAA
Accent7.09:1AAA
Destructive4.19:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 200.831);
  --foreground: oklch(0.163 0.022 199.265);
  --muted: oklch(0.942 0.006 167.636);
  --muted-foreground: oklch(0.428 0.032 165.561);
  --popover: oklch(0.988 0.005 200.831);
  --popover-foreground: oklch(0.163 0.022 199.265);
  --card: oklch(0.988 0.005 200.831);
  --card-foreground: oklch(0.163 0.022 199.265);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.189 0.031 199.374);
  --primary-foreground: oklch(0.797 0.135 201.436);
  --secondary: oklch(0.189 0.04 162.242);
  --secondary-foreground: oklch(0.798 0.201 153.878);
  --accent: oklch(0.148 0.037 246.903);
  --accent-foreground: oklch(0.691 0.159 254.821);
  --destructive: oklch(0.411 0.162 29.225);
  --destructive-foreground: oklch(0.885 0.057 20.591);
  --ring: oklch(0.189 0.031 199.374);
  --chart-1: oklch(0.189 0.031 199.374);
  --chart-2: oklch(0.189 0.04 162.242);
  --chart-3: oklch(0.148 0.037 246.903);
  --chart-4: oklch(0.244 0.055 159.026);
  --chart-5: oklch(0.19 0.032 199.359);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.012 199.858);
  --foreground: oklch(0.987 0.003 200.852);
  --muted: oklch(0.198 0.009 166.542);
  --muted-foreground: oklch(0.789 0.028 166.796);
  --popover: oklch(0.154 0.012 199.858);
  --popover-foreground: oklch(0.987 0.003 200.852);
  --card: oklch(0.154 0.012 199.858);
  --card-foreground: oklch(0.987 0.003 200.852);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.189 0.031 199.374);
  --primary-foreground: oklch(0.797 0.135 201.436);
  --secondary: oklch(0.189 0.04 162.242);
  --secondary-foreground: oklch(0.798 0.201 153.878);
  --accent: oklch(0.148 0.037 246.903);
  --accent-foreground: oklch(0.691 0.159 254.821);
  --destructive: oklch(0.615 0.245 29.214);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.189 0.031 199.374);
  --chart-1: oklch(0.189 0.031 199.374);
  --chart-2: oklch(0.189 0.04 162.242);
  --chart-3: oklch(0.148 0.037 246.903);
  --chart-4: oklch(0.244 0.055 159.026);
  --chart-5: oklch(0.19 0.032 199.359);
}