Kindly for shadcn/ui

Kindly is a shadcn/ui theme built around a deep purple primary color (#480f4d) with deep pink accents (#4d0f33). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#480f4d) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#ffffffwhite
#040104black
Foreground
#0c030dblack
#faf5faghostwhite
Card
#ffffffwhite
#040104black
Card foreground
#0c030dblack
#faf5faghostwhite
Popover
#ffffffwhite
#040104black
Popover foreground
#0c030dblack
#faf5faghostwhite
Primary
#480f4dindigo
#480f4dindigo
Primary foreground
#e6a1ecplum
#e6a1ecplum
Secondary
#290f4dmidnightblue
#290f4dmidnightblue
Secondary foreground
#c1a1ecplum
#c1a1ecplum
Muted
#e0dce5gainsboro
#1e1a23black
Muted foreground
#46404fdarkslategray
#b6b0bfsilver
Accent
#4d0f33maroon
#4d0f33maroon
Accent foreground
#eca1cdplum
#eca1cdplum
Destructive
#862409saddlebrown
#d73a0forangered
Destructive foreground
#fbd1c6peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#480f4dindigo
#480f4dindigo

Contrast

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

Light mode
Text on background20.30:1AAA
Text on card20.30:1AAA
Primary button7.37:1AAA
Secondary button7.54:1AAA
Muted text7.37:1AAA
Accent7.37:1AAA
Destructive6.64:1AA
Dark mode
Text on background19.28:1AAA
Text on card19.28:1AAA
Primary button7.37:1AAA
Secondary button7.54:1AAA
Muted text8.09:1AAA
Accent7.37:1AAA
Destructive4.67:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.033 324.901);
  --muted: oklch(0.9 0.012 304.858);
  --muted-foreground: oklch(0.382 0.028 304.045);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.122 0.033 324.901);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.122 0.033 324.901);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.297 0.117 324.316);
  --primary-foreground: oklch(0.801 0.127 323.805);
  --secondary: oklch(0.25 0.106 297.042);
  --secondary-foreground: oklch(0.765 0.11 303.007);
  --accent: oklch(0.291 0.099 349.292);
  --accent-foreground: oklch(0.796 0.105 343.869);
  --destructive: oklch(0.414 0.137 35.019);
  --destructive-foreground: oklch(0.894 0.05 35.953);
  --ring: oklch(0.297 0.117 324.316);
  --chart-1: oklch(0.297 0.117 324.316);
  --chart-2: oklch(0.25 0.106 297.042);
  --chart-3: oklch(0.291 0.099 349.292);
  --chart-4: oklch(0.275 0.119 296.631);
  --chart-5: oklch(0.299 0.12 324.306);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.018 324.761);
  --foreground: oklch(0.974 0.009 323.177);
  --muted: oklch(0.227 0.017 303.999);
  --muted-foreground: oklch(0.767 0.023 304.627);
  --popover: oklch(0.086 0.018 324.761);
  --popover-foreground: oklch(0.974 0.009 323.177);
  --card: oklch(0.086 0.018 324.761);
  --card-foreground: oklch(0.974 0.009 323.177);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.297 0.117 324.316);
  --primary-foreground: oklch(0.801 0.127 323.805);
  --secondary: oklch(0.25 0.106 297.042);
  --secondary-foreground: oklch(0.765 0.11 303.007);
  --accent: oklch(0.291 0.099 349.292);
  --accent-foreground: oklch(0.796 0.105 343.869);
  --destructive: oklch(0.582 0.199 34.525);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.297 0.117 324.316);
  --chart-1: oklch(0.297 0.117 324.316);
  --chart-2: oklch(0.25 0.106 297.042);
  --chart-3: oklch(0.291 0.099 349.292);
  --chart-4: oklch(0.275 0.119 296.631);
  --chart-5: oklch(0.299 0.12 324.306);
}