Corridor for shadcn/ui

Corridor is a shadcn/ui theme built around a blue primary color (#1c38c4) with yellow accents (#c4a81c). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the blue primary (#1c38c4) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#010204black
Foreground
#010204black
#ffffffwhite
Card
#f7f8fdghostwhite
#010204black
Card foreground
#010204black
#ffffffwhite
Popover
#f7f8fdghostwhite
#010204black
Popover foreground
#010204black
#ffffffwhite
Primary
#1c38c4mediumblue
#1c38c4mediumblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c4a81cgoldenrod
#c4a81cgoldenrod
Secondary foreground
#120f03black
#120f03black
Muted
#e5e4dcgainsboro
#23221ablack
Muted foreground
#676456dimgray
#a9a698darkgray
Accent
#c4a81cgoldenrod
#c4a81cgoldenrod
Accent foreground
#120f03black
#120f03black
Destructive
#a01c0dfirebrick
#ed3a26orangered
Destructive foreground
#fde5e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1c38c4mediumblue
#1c38c4mediumblue

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button8.68:1AAA
Secondary button8.21:1AAA
Muted text4.64:1AA
Accent8.21:1AAA
Destructive6.54:1AA
Dark mode
Text on background20.77:1AAA
Text on card20.77:1AAA
Primary button8.68:1AAA
Secondary button8.21:1AAA
Muted text6.53:1AA
Accent8.21:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.007 277.161);
  --foreground: oklch(0.081 0.013 270.92);
  --muted: oklch(0.917 0.011 97.419);
  --muted-foreground: oklch(0.502 0.022 97.794);
  --popover: oklch(0.979 0.007 277.161);
  --popover-foreground: oklch(0.081 0.013 270.92);
  --card: oklch(0.979 0.007 277.161);
  --card-foreground: oklch(0.081 0.013 270.92);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.431 0.217 266.57);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.736 0.145 96.412);
  --secondary-foreground: oklch(0.169 0.028 100.138);
  --accent: oklch(0.736 0.145 96.412);
  --accent-foreground: oklch(0.169 0.028 100.138);
  --destructive: oklch(0.457 0.169 30.52);
  --destructive-foreground: oklch(0.941 0.026 25.237);
  --ring: oklch(0.431 0.217 266.57);
  --chart-1: oklch(0.431 0.217 266.57);
  --chart-2: oklch(0.736 0.145 96.412);
  --chart-3: oklch(0.736 0.145 96.412);
  --chart-4: oklch(0.773 0.153 96.373);
  --chart-5: oklch(0.43 0.224 266.176);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.012 271.398);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.25 0.015 97.953);
  --muted-foreground: oklch(0.724 0.02 97.615);
  --popover: oklch(0.081 0.012 271.398);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.081 0.012 271.398);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.431 0.217 266.57);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.736 0.145 96.412);
  --secondary-foreground: oklch(0.169 0.028 100.138);
  --accent: oklch(0.736 0.145 96.412);
  --accent-foreground: oklch(0.169 0.028 100.138);
  --destructive: oklch(0.622 0.218 30.403);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.431 0.217 266.57);
  --chart-1: oklch(0.431 0.217 266.57);
  --chart-2: oklch(0.736 0.145 96.412);
  --chart-3: oklch(0.736 0.145 96.412);
  --chart-4: oklch(0.773 0.153 96.373);
  --chart-5: oklch(0.43 0.224 266.176);
}