Amalfi Coast Prawn for shadcn/ui

Amalfi Coast Prawn is a shadcn/ui theme built around a blue primary color (#2d7cb9) with indigo accents (#2d36b9). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the blue primary (#2d7cb9) on a blue-tinted background (#05080a).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#05080ablack
Foreground
#000000black
#ffffffwhite
Card
#fbfdfdwhite
#05080ablack
Card foreground
#000000black
#ffffffwhite
Popover
#fbfdfdwhite
#05080ablack
Popover foreground
#000000black
#ffffffwhite
Primary
#2d7cb9steelblue
#2d7cb9steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2db9aflightseagreen
#2db9aflightseagreen
Secondary foreground
#051513black
#051513black
Muted
#d5dcdcgainsboro
#232a29darkslategray
Muted foreground
#505858dimgray
#a7afaedarkgray
Accent
#2d36b9darkslateblue
#2d36b9darkslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c64d0cchocolate
#f3712btomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e2e3e4gainsboro
#181a1bblack
Input
#e2e3e4gainsboro
#181a1bblack
Ring
#2d7cb9steelblue
#2d7cb9steelblue

Contrast

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

Light mode
Text on background20.54:1AAA
Text on card20.54:1AAA
Primary button4.47:1AA Large
Secondary button7.70:1AAA
Muted text5.25:1AA
Accent8.98:1AAA
Destructive4.72:1AA
Dark mode
Text on background20.08:1AAA
Text on card20.08:1AAA
Primary button4.47:1AA Large
Secondary button7.70:1AAA
Muted text6.56:1AA
Accent8.98:1AAA
Destructive7.18:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 240.307);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.89 0.007 192.252);
  --muted-foreground: oklch(0.454 0.011 191.936);
  --popover: oklch(0.992 0.002 240.307);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0.002 240.307);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.915 0.002 240.312);
  --input: oklch(0.915 0.002 240.312);
  --primary: oklch(0.567 0.121 245.607);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.712 0.114 188.1);
  --secondary-foreground: oklch(0.179 0.022 189.904);
  --accent: oklch(0.423 0.201 271.073);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.574 0.168 42.188);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.567 0.121 245.607);
  --chart-1: oklch(0.567 0.121 245.607);
  --chart-2: oklch(0.712 0.114 188.1);
  --chart-3: oklch(0.423 0.201 271.073);
  --chart-4: oklch(0.747 0.12 188.078);
  --chart-5: oklch(0.57 0.126 246.014);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.009 235.363);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.277 0.01 191.689);
  --muted-foreground: oklch(0.747 0.01 192.161);
  --popover: oklch(0.131 0.009 235.363);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.131 0.009 235.363);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.215 0.002 240.443);
  --input: oklch(0.215 0.002 240.443);
  --primary: oklch(0.567 0.121 245.607);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.712 0.114 188.1);
  --secondary-foreground: oklch(0.179 0.022 189.904);
  --accent: oklch(0.423 0.201 271.073);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.694 0.178 45.031);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.567 0.121 245.607);
  --chart-1: oklch(0.567 0.121 245.607);
  --chart-2: oklch(0.712 0.114 188.1);
  --chart-3: oklch(0.423 0.201 271.073);
  --chart-4: oklch(0.747 0.12 188.078);
  --chart-5: oklch(0.57 0.126 246.014);
}