Excursion for shadcn/ui

Excursion is a shadcn/ui theme built around a violet primary color (#9570eb) with green accents (#c6eb70). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the violet primary (#9570eb) on a violet-tinted background (#06040c).

Color palette

TokenLightDark
Background
#fcfbfewhite
#06040cblack
Foreground
#020104black
#ffffffwhite
Card
#fcfbfewhite
#06040cblack
Card foreground
#020104black
#ffffffwhite
Popover
#fcfbfewhite
#06040cblack
Popover foreground
#020104black
#ffffffwhite
Primary
#9570ebmediumpurple
#9570ebmediumpurple
Primary foreground
#000000black
#000000black
Secondary
#c6eb70khaki
#c6eb70khaki
Secondary foreground
#1b2405black
#1b2405black
Muted
#eeefecwhitesmoke
#121310black
Muted foreground
#5b5e55dimgray
#a8aaa1darkgray
Accent
#c6eb70khaki
#c6eb70khaki
Accent foreground
#1b2405black
#1b2405black
Destructive
#911a08darkred
#f33012orangered
Destructive foreground
#fcd5cfbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9570ebmediumpurple
#9570ebmediumpurple

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button5.79:1AA
Secondary button11.88:1AAA
Muted text5.70:1AA
Accent11.88:1AAA
Destructive6.58:1AA
Dark mode
Text on background20.41:1AAA
Text on card20.41:1AAA
Primary button5.79:1AA
Secondary button11.88:1AAA
Muted text7.90:1AAA
Accent11.88:1AAA
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 299.983);
  --foreground: oklch(0.074 0.022 300.351);
  --muted: oklch(0.949 0.004 120.107);
  --muted-foreground: oklch(0.476 0.014 120.55);
  --popover: oklch(0.99 0.003 299.983);
  --popover-foreground: oklch(0.074 0.022 300.351);
  --card: oklch(0.99 0.003 299.983);
  --card-foreground: oklch(0.074 0.022 300.351);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.638 0.178 294.676);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.887 0.155 123.404);
  --secondary-foreground: oklch(0.242 0.052 124.25);
  --accent: oklch(0.887 0.155 123.404);
  --accent-foreground: oklch(0.242 0.052 124.25);
  --destructive: oklch(0.427 0.157 31.496);
  --destructive-foreground: oklch(0.904 0.046 28.274);
  --ring: oklch(0.638 0.178 294.676);
  --chart-1: oklch(0.638 0.178 294.676);
  --chart-2: oklch(0.887 0.155 123.404);
  --chart-3: oklch(0.887 0.155 123.404);
  --chart-4: oklch(0.897 0.143 123.013);
  --chart-5: oklch(0.635 0.184 294.385);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.023 300.093);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.186 0.006 120.568);
  --muted-foreground: oklch(0.734 0.013 120.336);
  --popover: oklch(0.115 0.023 300.093);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.115 0.023 300.093);
  --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.638 0.178 294.676);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.887 0.155 123.404);
  --secondary-foreground: oklch(0.242 0.052 124.25);
  --accent: oklch(0.887 0.155 123.404);
  --accent-foreground: oklch(0.242 0.052 124.25);
  --destructive: oklch(0.622 0.231 31.386);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.638 0.178 294.676);
  --chart-1: oklch(0.638 0.178 294.676);
  --chart-2: oklch(0.887 0.155 123.404);
  --chart-3: oklch(0.887 0.155 123.404);
  --chart-4: oklch(0.897 0.143 123.013);
  --chart-5: oklch(0.635 0.184 294.385);
}