Diva Salmon for shadcn/ui

Diva Salmon is a shadcn/ui theme built around a vivid light violet primary color (#c0a0f8) with muted light violet accents (#e8e6ea). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light violet primary (#c0a0f8) on a violet-tinted background (#07050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#07050ablack
Foreground
#020104black
#ffffffwhite
Card
#ffffffwhite
#07050ablack
Card foreground
#020104black
#ffffffwhite
Popover
#ffffffwhite
#07050ablack
Popover foreground
#020104black
#ffffffwhite
Primary
#c0a0f8plum
#c0a0f8plum
Primary foreground
#27075fmidnightblue
#27075fmidnightblue
Secondary
#e8e6ealavender
#141316black
Secondary foreground
#4d4955darkslategray
#aca9b2darkgray
Muted
#d7d3dfgainsboro
#25202cdarkslategray
Muted foreground
#4d4659darkslategray
#ada6b9darkgray
Accent
#e8e6ealavender
#141316black
Accent foreground
#4d4955darkslategray
#aca9b2darkgray
Destructive
#c72c05firebrick
#f93b0borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eae9eclavender
#1e1c21black
Input
#eae9eclavender
#1e1c21black
Ring
#c0a0f8plum
#c0a0f8plum

Contrast

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

Light mode
Text on background20.81:1AAA
Text on card20.81:1AAA
Primary button7.52:1AAA
Secondary button7.06:1AAA
Muted text6.09:1AA
Accent7.06:1AAA
Destructive5.54:1AA
Dark mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button7.52:1AAA
Secondary button7.98:1AAA
Muted text6.75:1AA
Accent7.98:1AAA
Destructive3.71:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.076 0.021 304.003);
  --muted: oklch(0.873 0.017 302.626);
  --muted-foreground: oklch(0.407 0.032 301.704);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.076 0.021 304.003);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.076 0.021 304.003);
  --border: oklch(0.935 0.005 302.846);
  --input: oklch(0.935 0.005 302.846);
  --primary: oklch(0.768 0.127 300.31);
  --primary-foreground: oklch(0.259 0.136 289.457);
  --secondary: oklch(0.928 0.005 302.845);
  --secondary-foreground: oklch(0.414 0.022 302.132);
  --accent: oklch(0.928 0.005 302.845);
  --accent-foreground: oklch(0.414 0.022 302.132);
  --destructive: oklch(0.541 0.195 33.258);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.768 0.127 300.31);
  --chart-1: oklch(0.768 0.127 300.31);
  --chart-2: oklch(0.928 0.005 302.845);
  --chart-3: oklch(0.928 0.005 302.845);
  --chart-4: oklch(0.952 0.003 302.875);
  --chart-5: oklch(0.765 0.131 300.202);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.015 303.396);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.255 0.024 301.505);
  --muted-foreground: oklch(0.738 0.028 302.35);
  --popover: oklch(0.122 0.015 303.396);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.015 303.396);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.23 0.011 302.208);
  --input: oklch(0.23 0.011 302.208);
  --primary: oklch(0.768 0.127 300.31);
  --primary-foreground: oklch(0.259 0.136 289.457);
  --secondary: oklch(0.19 0.005 302.521);
  --secondary-foreground: oklch(0.739 0.014 302.631);
  --accent: oklch(0.19 0.005 302.521);
  --accent-foreground: oklch(0.739 0.014 302.631);
  --destructive: oklch(0.641 0.23 33.312);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.768 0.127 300.31);
  --chart-1: oklch(0.768 0.127 300.31);
  --chart-2: oklch(0.19 0.005 302.521);
  --chart-3: oklch(0.19 0.005 302.521);
  --chart-4: oklch(0.222 0.007 302.468);
  --chart-5: oklch(0.765 0.131 300.202);
}