Tragic Amalfi Coast for shadcn/ui

Tragic Amalfi Coast is a shadcn/ui theme built around a blue primary color (#327cbd) with muted light blue accents (#ced4d9). The light mode uses a neutral background (#f8fafc). Dark mode keeps the blue primary (#327cbd) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#010304black
Foreground
#030b12black
#f5f7f9whitesmoke
Card
#f4f8fbghostwhite
#020508black
Card foreground
#02080dblack
#f9fafbghostwhite
Popover
#f4f8fbghostwhite
#020508black
Popover foreground
#02080dblack
#f9fafbghostwhite
Primary
#327cbdsteelblue
#327cbdsteelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e1e3e5gainsboro
#151a1eblack
Secondary foreground
#454a4fdarkslategray
#a5b3c0darkgray
Muted
#f0f2f4whitesmoke
#0b0d0fblack
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#ced4d9lightgrey
#222f39darkslategray
Accent foreground
#333b42darkslategray
#b9c8d5lightsteelblue
Destructive
#d30e03red
#e20f03red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#dfe0e1gainsboro
#202122black
Input
#dfe0e1gainsboro
#202122black
Ring
#327cbdsteelblue
#327cbdsteelblue

Contrast

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

Light mode
Text on background18.92:1AAA
Text on card18.80:1AAA
Primary button4.39:1AA Large
Secondary button6.96:1AA
Muted text5.36:1AA
Accent7.61:1AAA
Destructive5.48:1AA
Dark mode
Text on background19.27:1AAA
Text on card19.52:1AAA
Primary button4.39:1AA Large
Secondary button8.19:1AAA
Muted text7.09:1AAA
Accent8.02:1AAA
Destructive4.88:1AA

CSS variables

Paste this into your globals.css to use Tragic Amalfi Coast in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.004 244.135);
  --foreground: oklch(0.142 0.022 239.348);
  --muted: oklch(0.961 0.003 244.134);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(0.976 0.005 244.159);
  --popover-foreground: oklch(0.129 0.019 235.458);
  --card: oklch(0.976 0.005 244.159);
  --card-foreground: oklch(0.129 0.019 235.458);
  --border: oklch(0.908 0.002 244.111);
  --input: oklch(0.908 0.002 244.111);
  --primary: oklch(0.573 0.124 248.345);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.915 0.003 244.135);
  --secondary-foreground: oklch(0.407 0.011 244.42);
  --accent: oklch(0.867 0.01 244.23);
  --accent-foreground: oklch(0.348 0.017 244.685);
  --destructive: oklch(0.548 0.22 29.617);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.573 0.124 248.345);
  --chart-1: oklch(0.573 0.124 248.345);
  --chart-2: oklch(0.915 0.003 244.135);
  --chart-3: oklch(0.867 0.01 244.23);
  --chart-4: oklch(0.938 0.002 244.122);
  --chart-5: oklch(0.574 0.129 248.693);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.09 0.009 236.939);
  --foreground: oklch(0.976 0.003 244.132);
  --muted: oklch(0.157 0.005 244.519);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0.113 0.011 236.939);
  --popover-foreground: oklch(0.984 0.002 244.118);
  --card: oklch(0.113 0.011 236.939);
  --card-foreground: oklch(0.984 0.002 244.118);
  --border: oklch(0.248 0.002 244.208);
  --input: oklch(0.248 0.002 244.208);
  --primary: oklch(0.573 0.124 248.345);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.214 0.011 244.751);
  --secondary-foreground: oklch(0.761 0.025 244.492);
  --accent: oklch(0.297 0.026 245.224);
  --accent-foreground: oklch(0.825 0.025 244.46);
  --destructive: oklch(0.577 0.232 29.593);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.573 0.124 248.345);
  --chart-1: oklch(0.573 0.124 248.345);
  --chart-2: oklch(0.214 0.011 244.751);
  --chart-3: oklch(0.297 0.026 245.224);
  --chart-4: oklch(0.246 0.014 244.813);
  --chart-5: oklch(0.574 0.129 248.693);
}