Causeway for shadcn/ui

Causeway is a shadcn/ui theme built around a purple primary color (#a12fc1) with teal accents (#2fc1a1). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the purple primary (#a12fc1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfewhite
#000000black
Foreground
#0e0311black
#ffffffwhite
Card
#fdfbfewhite
#000000black
Card foreground
#0e0311black
#ffffffwhite
Popover
#fdfbfewhite
#000000black
Popover foreground
#0e0311black
#ffffffwhite
Primary
#a12fc1darkorchid
#a12fc1darkorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c1a12fgoldenrod
#c1a12fgoldenrod
Secondary foreground
#1d1807black
#1d1807black
Muted
#e7e4dagainsboro
#252218black
Muted foreground
#4b4944darkslategray
#bbbab4silver
Accent
#2fc1a1lightseagreen
#2fc1a1lightseagreen
Accent foreground
#071d18black
#071d18black
Destructive
#dd0f08red
#f72d26crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a12fc1darkorchid
#a12fc1darkorchid

Contrast

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

Light mode
Text on background19.63:1AAA
Text on card19.63:1AAA
Primary button5.68:1AA
Secondary button7.10:1AAA
Muted text7.07:1AAA
Accent7.73:1AAA
Destructive5.04:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button5.68:1AA
Secondary button7.10:1AAA
Muted text8.13:1AAA
Accent7.73:1AAA
Destructive3.91:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 318.889);
  --foreground: oklch(0.132 0.038 319.816);
  --muted: oklch(0.919 0.014 94.03);
  --muted-foreground: oklch(0.407 0.009 94.101);
  --popover: oklch(0.991 0.005 318.889);
  --popover-foreground: oklch(0.132 0.038 319.816);
  --card: oklch(0.991 0.005 318.889);
  --card-foreground: oklch(0.132 0.038 319.816);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.542 0.224 317.712);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.719 0.132 92.751);
  --secondary-foreground: oklch(0.21 0.031 94.427);
  --accent: oklch(0.729 0.128 174.112);
  --accent-foreground: oklch(0.21 0.03 177.094);
  --destructive: oklch(0.568 0.228 29.296);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.542 0.224 317.712);
  --chart-1: oklch(0.542 0.224 317.712);
  --chart-2: oklch(0.719 0.132 92.751);
  --chart-3: oklch(0.729 0.128 174.112);
  --chart-4: oklch(0.752 0.138 92.718);
  --chart-5: oklch(0.544 0.231 317.565);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.253 0.019 94.457);
  --muted-foreground: oklch(0.787 0.008 93.973);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.542 0.224 317.712);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.719 0.132 92.751);
  --secondary-foreground: oklch(0.21 0.031 94.427);
  --accent: oklch(0.729 0.128 174.112);
  --accent-foreground: oklch(0.21 0.03 177.094);
  --destructive: oklch(0.63 0.235 28.452);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.542 0.224 317.712);
  --chart-1: oklch(0.542 0.224 317.712);
  --chart-2: oklch(0.719 0.132 92.751);
  --chart-3: oklch(0.729 0.128 174.112);
  --chart-4: oklch(0.752 0.138 92.718);
  --chart-5: oklch(0.544 0.231 317.565);
}