Outlying for shadcn/ui

Outlying is a shadcn/ui theme built around a deep indigo primary color (#180e3f) with deep green accents (#343f0e). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the deep indigo primary (#180e3f) on an indigo-tinted background (#05040c).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#05040cblack
Foreground
#060411black
#f9f9fbghostwhite
Card
#f6f5fawhitesmoke
#070510black
Card foreground
#05030dblack
#fcfcfdwhite
Popover
#f6f5fawhitesmoke
#070510black
Popover foreground
#05030dblack
#fcfcfdwhite
Primary
#180e3fmidnightblue
#180e3fmidnightblue
Primary foreground
#a896e8mediumpurple
#a896e8mediumpurple
Secondary
#343f0edarkolivegreen
#343f0edarkolivegreen
Secondary foreground
#b6d643yellowgreen
#b6d643yellowgreen
Muted
#edefe6linen
#171910black
Muted foreground
#4d523ddarkolivegreen
#bec2adsilver
Accent
#343f0edarkolivegreen
#343f0edarkolivegreen
Accent foreground
#b6d643yellowgreen
#b6d643yellowgreen
Destructive
#7d130dmaroon
#e9342bcrimson
Destructive foreground
#f9c6c3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#180e3fmidnightblue
#180e3fmidnightblue

Contrast

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

Light mode
Text on background19.24:1AAA
Text on card18.85:1AAA
Primary button6.98:1AA
Secondary button6.82:1AA
Muted text6.99:1AA
Accent6.82:1AA
Destructive7.07:1AAA
Dark mode
Text on background19.42:1AAA
Text on card19.73:1AAA
Primary button6.98:1AA
Secondary button6.82:1AA
Muted text9.73:1AAA
Accent6.82:1AA
Destructive4.21:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 296.247);
  --foreground: oklch(0.12 0.034 293.973);
  --muted: oklch(0.948 0.012 116.562);
  --muted-foreground: oklch(0.428 0.034 117.803);
  --popover: oklch(0.972 0.007 296.203);
  --popover-foreground: oklch(0.108 0.029 295.08);
  --card: oklch(0.972 0.007 296.203);
  --card-foreground: oklch(0.108 0.029 295.08);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.214 0.088 286.288);
  --primary-foreground: oklch(0.722 0.118 293.168);
  --secondary: oklch(0.346 0.071 120.873);
  --secondary-foreground: oklch(0.825 0.172 120.934);
  --accent: oklch(0.346 0.071 120.873);
  --accent-foreground: oklch(0.825 0.172 120.934);
  --destructive: oklch(0.381 0.141 28.942);
  --destructive-foreground: oklch(0.87 0.059 21.847);
  --ring: oklch(0.214 0.088 286.288);
  --chart-1: oklch(0.214 0.088 286.288);
  --chart-2: oklch(0.346 0.071 120.873);
  --chart-3: oklch(0.346 0.071 120.873);
  --chart-4: oklch(0.39 0.082 121.046);
  --chart-5: oklch(0.213 0.091 285.577);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.114 0.022 295.514);
  --foreground: oklch(0.983 0.003 296.282);
  --muted: oklch(0.208 0.017 117.856);
  --muted-foreground: oklch(0.805 0.03 117.004);
  --popover: oklch(0.126 0.026 294.604);
  --popover-foreground: oklch(0.991 0.001 296.307);
  --card: oklch(0.126 0.026 294.604);
  --card-foreground: oklch(0.991 0.001 296.307);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.214 0.088 286.288);
  --primary-foreground: oklch(0.722 0.118 293.168);
  --secondary: oklch(0.346 0.071 120.873);
  --secondary-foreground: oklch(0.825 0.172 120.934);
  --accent: oklch(0.346 0.071 120.873);
  --accent-foreground: oklch(0.825 0.172 120.934);
  --destructive: oklch(0.61 0.217 28.57);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.214 0.088 286.288);
  --chart-1: oklch(0.214 0.088 286.288);
  --chart-2: oklch(0.346 0.071 120.873);
  --chart-3: oklch(0.346 0.071 120.873);
  --chart-4: oklch(0.39 0.082 121.046);
  --chart-5: oklch(0.213 0.091 285.577);
}