Expedition for shadcn/ui

Expedition is a shadcn/ui theme built around a deep blue primary color (#060a13) with deep yellow accents (#130f06). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#060a13) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fcfcfdwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#060a13black
#060a13black
Primary foreground
#7895d3cornflowerblue
#7895d3cornflowerblue
Secondary
#130f06black
#130f06black
Secondary foreground
#d3b678burlywood
#d3b678burlywood
Muted
#ebe3d1antiquewhite
#2e2614black
Muted foreground
#525251darkslategray
#aeaeaddarkgray
Accent
#130f06black
#130f06black
Accent foreground
#d3b678burlywood
#d3b678burlywood
Destructive
#983801saddlebrown
#fe5e01orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#060a13black
#060a13black

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.62:1AA
Secondary button9.75:1AAA
Muted text6.10:1AA
Accent9.75:1AAA
Destructive7.21:1AAA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button6.62:1AA
Secondary button9.75:1AAA
Muted text6.74:1AA
Accent9.75:1AAA
Destructive6.79:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.916 0.025 86.086);
  --muted-foreground: oklch(0.438 0.002 86.024);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.147 0.021 262.868);
  --primary-foreground: oklch(0.673 0.098 264.828);
  --secondary: oklch(0.171 0.019 86.773);
  --secondary-foreground: oklch(0.789 0.087 85.624);
  --accent: oklch(0.171 0.019 86.773);
  --accent-foreground: oklch(0.789 0.087 85.624);
  --destructive: oklch(0.472 0.14 42.684);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.147 0.021 262.868);
  --chart-1: oklch(0.147 0.021 262.868);
  --chart-2: oklch(0.171 0.019 86.773);
  --chart-3: oklch(0.171 0.019 86.773);
  --chart-4: oklch(0.214 0.027 85.304);
  --chart-5: oklch(0.146 0.022 262.44);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.002 265.999);
  --muted: oklch(0.272 0.032 85.499);
  --muted-foreground: oklch(0.75 0.002 86.015);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.002 265.999);
  --card: oklch(0.092 0 180);
  --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.147 0.021 262.868);
  --primary-foreground: oklch(0.673 0.098 264.828);
  --secondary: oklch(0.171 0.019 86.773);
  --secondary-foreground: oklch(0.789 0.087 85.624);
  --accent: oklch(0.171 0.019 86.773);
  --accent-foreground: oklch(0.789 0.087 85.624);
  --destructive: oklch(0.684 0.209 41.17);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.147 0.021 262.868);
  --chart-1: oklch(0.147 0.021 262.868);
  --chart-2: oklch(0.171 0.019 86.773);
  --chart-3: oklch(0.171 0.019 86.773);
  --chart-4: oklch(0.214 0.027 85.304);
  --chart-5: oklch(0.146 0.022 262.44);
}