Catamaran for shadcn/ui

Catamaran is a shadcn/ui theme built around a muted deep orange primary color (#443027) with muted deep violet accents (#302744). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the muted deep orange primary (#443027) on an orange-tinted background (#0c0604).

Color palette

TokenLightDark
Background
#fcf9f8snow
#0c0604black
Foreground
#170903black
#fdfcfcsnow
Card
#fcf9f8snow
#0c0604black
Card foreground
#170903black
#fdfcfcsnow
Popover
#fcf9f8snow
#0c0604black
Popover foreground
#170903black
#fdfcfcsnow
Primary
#443027darkslategray
#443027darkslategray
Primary foreground
#dccac1lightgrey
#dccac1lightgrey
Secondary
#274430darkslategray
#274430darkslategray
Secondary foreground
#c1dccalightgrey
#c1dccalightgrey
Muted
#f1f4f2whitesmoke
#0b0e0cblack
Muted foreground
#4e504fdarkslategray
#afb1b0darkgray
Accent
#302744darkslategray
#302744darkslategray
Accent foreground
#cac1dcthistle
#cac1dcthistle
Destructive
#7b2809saddlebrown
#ee5017orangered
Destructive foreground
#facdbdpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#443027darkslategray
#443027darkslategray

Contrast

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

Light mode
Text on background18.62:1AAA
Text on card18.62:1AAA
Primary button7.79:1AAA
Secondary button7.33:1AAA
Muted text7.31:1AAA
Accent8.10:1AAA
Destructive6.75:1AA
Dark mode
Text on background19.64:1AAA
Text on card19.64:1AAA
Primary button7.79:1AAA
Secondary button7.33:1AAA
Muted text8.98:1AAA
Accent8.10:1AAA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.003 46.818);
  --foreground: oklch(0.159 0.03 52.562);
  --muted: oklch(0.963 0.004 156.487);
  --muted-foreground: oklch(0.429 0.003 156.436);
  --popover: oklch(0.984 0.003 46.818);
  --popover-foreground: oklch(0.159 0.03 52.562);
  --card: oklch(0.984 0.003 46.818);
  --card-foreground: oklch(0.159 0.03 52.562);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.33 0.033 45.94);
  --primary-foreground: oklch(0.851 0.023 46.567);
  --secondary: oklch(0.357 0.049 153.428);
  --secondary-foreground: oklch(0.869 0.037 155.693);
  --accent: oklch(0.297 0.052 297.705);
  --accent-foreground: oklch(0.827 0.037 300.025);
  --destructive: oklch(0.399 0.122 37.941);
  --destructive-foreground: oklch(0.883 0.056 40.956);
  --ring: oklch(0.33 0.033 45.94);
  --chart-1: oklch(0.33 0.033 45.94);
  --chart-2: oklch(0.357 0.049 153.428);
  --chart-3: oklch(0.297 0.052 297.705);
  --chart-4: oklch(0.39 0.055 153.346);
  --chart-5: oklch(0.331 0.037 45.842);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.014 53.96);
  --foreground: oklch(0.992 0.001 46.843);
  --muted: oklch(0.16 0.006 155.864);
  --muted-foreground: oklch(0.758 0.002 156.499);
  --popover: oklch(0.131 0.014 53.96);
  --popover-foreground: oklch(0.992 0.001 46.843);
  --card: oklch(0.131 0.014 53.96);
  --card-foreground: oklch(0.992 0.001 46.843);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.33 0.033 45.94);
  --primary-foreground: oklch(0.851 0.023 46.567);
  --secondary: oklch(0.357 0.049 153.428);
  --secondary-foreground: oklch(0.869 0.037 155.693);
  --accent: oklch(0.297 0.052 297.705);
  --accent-foreground: oklch(0.827 0.037 300.025);
  --destructive: oklch(0.643 0.203 37.447);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.33 0.033 45.94);
  --chart-1: oklch(0.33 0.033 45.94);
  --chart-2: oklch(0.357 0.049 153.428);
  --chart-3: oklch(0.297 0.052 297.705);
  --chart-4: oklch(0.39 0.055 153.346);
  --chart-5: oklch(0.331 0.037 45.842);
}