Corridor for shadcn/ui

Corridor is a shadcn/ui theme built around a light violet primary color (#cab5ed) with light purple accents (#e6b5ed). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#cab5ed) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040208black
#faf9fbghostwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#020104black
#fcfcfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#040208black
#faf9fbghostwhite
Primary
#cab5edthistle
#cab5edthistle
Primary foreground
#2f165amidnightblue
#2f165amidnightblue
Secondary
#b5bdedlightsteelblue
#b5bdedlightsteelblue
Secondary foreground
#161f5amidnightblue
#161f5amidnightblue
Muted
#dedfe8gainsboro
#171821black
Muted foreground
#42434ddarkslategray
#b2b3bdsilver
Accent
#e6b5edthistle
#e6b5edthistle
Accent foreground
#51165aindigo
#51165aindigo
Destructive
#d61305red
#f9291aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cab5edthistle
#cab5edthistle

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.37:1AAA
Primary button8.20:1AAA
Secondary button8.29:1AAA
Muted text7.40:1AAA
Accent7.56:1AAA
Destructive5.31:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.16:1AAA
Primary button8.20:1AAA
Secondary button8.29:1AAA
Muted text8.45:1AAA
Accent7.56:1AAA
Destructive3.91:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.101 0.021 303.71);
  --muted: oklch(0.906 0.012 279.14);
  --muted-foreground: oklch(0.386 0.017 278.646);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.101 0.021 303.71);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.08 0.016 303.71);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.81 0.081 301.393);
  --primary-foreground: oklch(0.281 0.115 294.601);
  --secondary: oklch(0.808 0.069 277.904);
  --secondary-foreground: oklch(0.274 0.106 270.871);
  --accent: oklch(0.835 0.093 321.883);
  --accent-foreground: oklch(0.329 0.126 322.024);
  --destructive: oklch(0.555 0.221 29.789);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.81 0.081 301.393);
  --chart-1: oklch(0.81 0.081 301.393);
  --chart-2: oklch(0.808 0.069 277.904);
  --chart-3: oklch(0.835 0.093 321.883);
  --chart-4: oklch(0.84 0.057 278.228);
  --chart-5: oklch(0.807 0.085 301.31);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.003 302.885);
  --muted: oklch(0.213 0.017 277.979);
  --muted-foreground: oklch(0.77 0.014 279.06);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.003 302.885);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.001 302.907);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.81 0.081 301.393);
  --primary-foreground: oklch(0.281 0.115 294.601);
  --secondary: oklch(0.808 0.069 277.904);
  --secondary-foreground: oklch(0.274 0.106 270.871);
  --accent: oklch(0.835 0.093 321.883);
  --accent-foreground: oklch(0.329 0.126 322.024);
  --destructive: oklch(0.631 0.24 29.656);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.81 0.081 301.393);
  --chart-1: oklch(0.81 0.081 301.393);
  --chart-2: oklch(0.808 0.069 277.904);
  --chart-3: oklch(0.835 0.093 321.883);
  --chart-4: oklch(0.84 0.057 278.228);
  --chart-5: oklch(0.807 0.085 301.31);
}