Narrow Stratos for shadcn/ui

Narrow Stratos is a shadcn/ui theme built around a vivid deep indigo primary color (#00043d) with vivid deep violet accents (#1b003d). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep indigo primary (#00043d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020312black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#02030eblack
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#020312black
#ffffffwhite
Primary
#00043dmidnightblue
#00043dmidnightblue
Primary foreground
#d6d9fflavender
#d6d9fflavender
Secondary
#00233dmidnightblue
#00233dmidnightblue
Secondary foreground
#70c1fflightskyblue
#70c1fflightskyblue
Muted
#eef0f2whitesmoke
#0d1011black
Muted foreground
#3d4951darkslategray
#aeb9c2silver
Accent
#1b003dmidnightblue
#1b003dmidnightblue
Accent foreground
#e8d6fflavender
#e8d6fflavender
Destructive
#5e2308maroon
#ee6c2ftomato
Destructive foreground
#f7bca1lightpink
#000000black
Border
#f2f2f3whitesmoke
#1d1e20black
Input
#f2f2f3whitesmoke
#1d1e20black
Ring
#00043dmidnightblue
#00043dmidnightblue

Contrast

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

Light mode
Text on background20.50:1AAA
Text on card20.10:1AAA
Primary button14.02:1AAA
Secondary button8.24:1AAA
Muted text8.08:1AAA
Accent13.91:1AAA
Destructive7.34:1AAA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button14.02:1AAA
Secondary button8.24:1AAA
Muted text9.58:1AAA
Accent13.91:1AAA
Destructive6.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.112 0.038 273.098);
  --muted: oklch(0.954 0.004 240.335);
  --muted-foreground: oklch(0.398 0.021 241.037);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.112 0.038 273.098);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.101 0.033 273.176);
  --border: oklch(0.961 0.001 283.084);
  --input: oklch(0.961 0.001 283.084);
  --primary: oklch(0.173 0.107 264.181);
  --primary-foreground: oklch(0.895 0.052 282.059);
  --secondary: oklch(0.247 0.064 246.145);
  --secondary-foreground: oklch(0.784 0.119 243.207);
  --accent: oklch(0.193 0.106 294.909);
  --accent-foreground: oklch(0.904 0.058 304.884);
  --destructive: oklch(0.341 0.094 41.988);
  --destructive-foreground: oklch(0.843 0.078 46);
  --ring: oklch(0.173 0.107 264.181);
  --chart-1: oklch(0.173 0.107 264.181);
  --chart-2: oklch(0.247 0.064 246.145);
  --chart-3: oklch(0.193 0.106 294.909);
  --chart-4: oklch(0.283 0.075 247.544);
  --chart-5: oklch(0.171 0.11 263.068);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.169 0.006 240.743);
  --muted-foreground: oklch(0.779 0.018 240.598);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.234 0.004 282.786);
  --input: oklch(0.234 0.004 282.786);
  --primary: oklch(0.173 0.107 264.181);
  --primary-foreground: oklch(0.895 0.052 282.059);
  --secondary: oklch(0.247 0.064 246.145);
  --secondary-foreground: oklch(0.784 0.119 243.207);
  --accent: oklch(0.193 0.106 294.909);
  --accent-foreground: oklch(0.904 0.058 304.884);
  --destructive: oklch(0.68 0.176 42.788);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.173 0.107 264.181);
  --chart-1: oklch(0.173 0.107 264.181);
  --chart-2: oklch(0.247 0.064 246.145);
  --chart-3: oklch(0.193 0.106 294.909);
  --chart-4: oklch(0.283 0.075 247.544);
  --chart-5: oklch(0.171 0.11 263.068);
}