Clan for shadcn/ui

Clan is a shadcn/ui theme built around a light red primary color (#ea9fae) with muted light red accents (#ddc6ca). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#ea9fae) on a neutral background (#070304).

Color palette

TokenLightDark
Background
#ffffffwhite
#070304black
Foreground
#040102black
#fbf9f9snow
Card
#fcfcfcsnow
#0b0506black
Card foreground
#000000black
#fdfcfcsnow
Popover
#ffffffwhite
#070304black
Popover foreground
#040102black
#fbf9f9snow
Primary
#ea9faelightpink
#ea9faelightpink
Primary foreground
#47101bmaroon
#47101bmaroon
Secondary
#e7dee0gainsboro
#3a272bdarkslategray
Secondary foreground
#563e43darkslategray
#d4bfc3silver
Muted
#ddd9dagainsboro
#262222black
Muted foreground
#5d4b4fdimgray
#b4a2a5darkgray
Accent
#ddc6cathistle
#5f353edarkolivegreen
Accent foreground
#462a30darkslategray
#ebdbdegainsboro
Destructive
#d42a0cfirebrick
#f35135tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ea9faelightpink
#ea9faelightpink

Contrast

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

Light mode
Text on background20.78:1AAA
Text on card20.54:1AAA
Primary button7.40:1AAA
Secondary button7.38:1AAA
Muted text5.81:1AA
Accent7.92:1AAA
Destructive5.06:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.78:1AAA
Primary button7.40:1AAA
Secondary button7.99:1AAA
Muted text6.50:1AA
Accent7.61:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.082 0.016 3.482);
  --muted: oklch(0.889 0.005 3.331);
  --muted-foreground: oklch(0.433 0.026 4.749);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.082 0.016 3.482);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.779 0.091 6.277);
  --primary-foreground: oklch(0.272 0.084 13.163);
  --secondary: oklch(0.91 0.01 3.483);
  --secondary-foreground: oklch(0.392 0.034 5.461);
  --accent: oklch(0.846 0.027 4.021);
  --accent-foreground: oklch(0.322 0.043 6.692);
  --destructive: oklch(0.564 0.208 31.844);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.779 0.091 6.277);
  --chart-1: oklch(0.779 0.091 6.277);
  --chart-2: oklch(0.91 0.01 3.483);
  --chart-3: oklch(0.846 0.027 4.021);
  --chart-4: oklch(0.934 0.007 3.394);
  --chart-5: oklch(0.778 0.096 6.436);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.012 3.355);
  --foreground: oklch(0.983 0.003 3.255);
  --muted: oklch(0.255 0.007 3.882);
  --muted-foreground: oklch(0.728 0.022 3.998);
  --popover: oklch(0.108 0.012 3.355);
  --popover-foreground: oklch(0.983 0.003 3.255);
  --card: oklch(0.124 0.014 3.382);
  --card-foreground: oklch(0.992 0.001 3.219);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.779 0.091 6.277);
  --primary-foreground: oklch(0.272 0.084 13.163);
  --secondary: oklch(0.297 0.028 5.696);
  --secondary-foreground: oklch(0.824 0.024 3.951);
  --accent: oklch(0.384 0.06 7.396);
  --accent-foreground: oklch(0.905 0.018 3.71);
  --destructive: oklch(0.655 0.203 32.365);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.779 0.091 6.277);
  --chart-1: oklch(0.779 0.091 6.277);
  --chart-2: oklch(0.297 0.028 5.696);
  --chart-3: oklch(0.384 0.06 7.396);
  --chart-4: oklch(0.326 0.032 5.781);
  --chart-5: oklch(0.778 0.096 6.436);
}