Route for shadcn/ui

Route is a shadcn/ui theme built around an indigo primary color (#483d8a) with violet accents (#6f3d8a). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the indigo primary (#483d8a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfbfewhite
#000000black
Foreground
#020109black
#f5f4fawhitesmoke
Card
#fcfbfewhite
#000000black
Card foreground
#020109black
#f5f4fawhitesmoke
Popover
#fcfbfewhite
#000000black
Popover foreground
#020109black
#f5f4fawhitesmoke
Primary
#483d8adarkslateblue
#483d8adarkslateblue
Primary foreground
#fcfbfdsnow
#fcfbfdsnow
Secondary
#3d588adarkslateblue
#3d588adarkslateblue
Secondary foreground
#fbfcfdwhite
#fbfcfdwhite
Muted
#ebecf0lavender
#0f1114black
Muted foreground
#585e6adimgray
#959ba7darkgray
Accent
#6f3d8arebeccapurple
#6f3d8arebeccapurple
Accent foreground
#fdfbfdsnow
#fdfbfdsnow
Destructive
#902609saddlebrown
#f25e36tomato
Destructive foreground
#fcd9cfbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#483d8adarkslateblue
#483d8adarkslateblue

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card20.15:1AAA
Primary button8.82:1AAA
Secondary button6.91:1AA
Muted text5.52:1AA
Accent7.53:1AAA
Destructive6.46:1AA
Dark mode
Text on background19.20:1AAA
Text on card19.20:1AAA
Primary button8.82:1AAA
Secondary button6.91:1AA
Muted text6.76:1AA
Accent7.53:1AAA
Destructive6.45:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 293.244);
  --foreground: oklch(0.087 0.031 290.11);
  --muted: oklch(0.944 0.005 263.045);
  --muted-foreground: oklch(0.482 0.02 262.931);
  --popover: oklch(0.99 0.003 293.244);
  --popover-foreground: oklch(0.087 0.031 290.11);
  --card: oklch(0.99 0.003 293.244);
  --card-foreground: oklch(0.087 0.031 290.11);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.413 0.124 286.503);
  --primary-foreground: oklch(0.99 0.003 293.256);
  --secondary: oklch(0.462 0.089 261.987);
  --secondary-foreground: oklch(0.991 0.002 263.05);
  --accent: oklch(0.455 0.131 312.33);
  --accent-foreground: oklch(0.991 0.003 314.203);
  --destructive: oklch(0.435 0.146 34.858);
  --destructive-foreground: oklch(0.911 0.042 35.945);
  --ring: oklch(0.413 0.124 286.503);
  --chart-1: oklch(0.413 0.124 286.503);
  --chart-2: oklch(0.462 0.089 261.987);
  --chart-3: oklch(0.455 0.131 312.33);
  --chart-4: oklch(0.487 0.094 261.976);
  --chart-5: oklch(0.408 0.133 285.747);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.971 0.008 293.152);
  --muted: oklch(0.178 0.007 262.932);
  --muted-foreground: oklch(0.69 0.018 262.988);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.971 0.008 293.152);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.971 0.008 293.152);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.413 0.124 286.503);
  --primary-foreground: oklch(0.99 0.003 293.256);
  --secondary: oklch(0.462 0.089 261.987);
  --secondary-foreground: oklch(0.991 0.002 263.05);
  --accent: oklch(0.455 0.131 312.33);
  --accent-foreground: oklch(0.991 0.003 314.203);
  --destructive: oklch(0.669 0.19 36.062);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.413 0.124 286.503);
  --chart-1: oklch(0.413 0.124 286.503);
  --chart-2: oklch(0.462 0.089 261.987);
  --chart-3: oklch(0.455 0.131 312.33);
  --chart-4: oklch(0.487 0.094 261.976);
  --chart-5: oklch(0.408 0.133 285.747);
}