Shrimp for shadcn/ui

Shrimp is a shadcn/ui theme built around a deep purple primary color (#571b65) with deep green accents (#28651b). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#571b65) on a neutral background (#030204).

Color palette

TokenLightDark
Background
#ffffffwhite
#030204black
Foreground
#070208black
#fbf9fbsnow
Card
#fcfcfcsnow
#060307black
Card foreground
#030104black
#fdfcfdwhite
Popover
#fcfcfcsnow
#060307black
Popover foreground
#030104black
#fdfcfdwhite
Primary
#571b65indigo
#571b65indigo
Primary foreground
#e7c3efthistle
#e7c3efthistle
Secondary
#28651bforestgreen
#28651bforestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d3e9cegainsboro
#1b3116black
Muted foreground
#485b43darkolivegreen
#a8bca4darkgray
Accent
#28651bforestgreen
#28651bforestgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a11802darkred
#e72204red
Destructive foreground
#fedcd7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#571b65indigo
#571b65indigo

Contrast

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

Light mode
Text on background20.56:1AAA
Text on card20.34:1AAA
Primary button7.69:1AAA
Secondary button7.09:1AAA
Muted text5.70:1AA
Accent7.09:1AAA
Destructive6.22:1AA
Dark mode
Text on background19.79:1AAA
Text on card20.01:1AAA
Primary button7.69:1AAA
Secondary button7.09:1AAA
Muted text6.91:1AA
Accent7.09:1AAA
Destructive4.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.107 0.022 321.717);
  --muted: oklch(0.91 0.043 139.949);
  --muted-foreground: oklch(0.447 0.045 139.916);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.085 0.018 321.717);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.085 0.018 321.717);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.352 0.132 319.68);
  --primary-foreground: oklch(0.861 0.072 320.062);
  --secondary: oklch(0.449 0.123 140.297);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.449 0.123 140.297);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.455 0.173 31.397);
  --destructive-foreground: oklch(0.922 0.039 28.206);
  --ring: oklch(0.352 0.132 319.68);
  --chart-1: oklch(0.352 0.132 319.68);
  --chart-2: oklch(0.449 0.123 140.297);
  --chart-3: oklch(0.449 0.123 140.297);
  --chart-4: oklch(0.486 0.135 140.321);
  --chart-5: oklch(0.353 0.137 319.598);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.013 321.234);
  --foreground: oklch(0.983 0.004 319.994);
  --muted: oklch(0.288 0.055 139.949);
  --muted-foreground: oklch(0.773 0.039 139.947);
  --popover: oklch(0.11 0.016 321.234);
  --popover-foreground: oklch(0.992 0.002 319.993);
  --card: oklch(0.11 0.016 321.234);
  --card-foreground: oklch(0.992 0.002 319.993);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.352 0.132 319.68);
  --primary-foreground: oklch(0.861 0.072 320.062);
  --secondary: oklch(0.449 0.123 140.297);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.449 0.123 140.297);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.593 0.229 31.005);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.352 0.132 319.68);
  --chart-1: oklch(0.352 0.132 319.68);
  --chart-2: oklch(0.449 0.123 140.297);
  --chart-3: oklch(0.449 0.123 140.297);
  --chart-4: oklch(0.486 0.135 140.321);
  --chart-5: oklch(0.353 0.137 319.598);
}