Kind for shadcn/ui

Kind is a shadcn/ui theme built around a violet primary color (#852cd8) with teal accents (#2cd885). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the violet primary (#852cd8) on a violet-tinted background (#0a0510).

Color palette

TokenLightDark
Background
#fcfbfewhite
#0a0510black
Foreground
#08020dblack
#ffffffwhite
Card
#fcfbfewhite
#0a0510black
Card foreground
#08020dblack
#ffffffwhite
Popover
#fcfbfewhite
#0a0510black
Popover foreground
#08020dblack
#ffffffwhite
Primary
#852cd8blueviolet
#852cd8blueviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d8852cperu
#d8852cperu
Secondary foreground
#000000black
#000000black
Muted
#e1dedbgainsboro
#24211eblack
Muted foreground
#6b645bdimgray
#a49c94darkgray
Accent
#2cd885mediumseagreen
#2cd885mediumseagreen
Accent foreground
#092f1dblack
#092f1dblack
Destructive
#6b1a06maroon
#f34a20orangered
Destructive foreground
#fab8a8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#852cd8blueviolet
#852cd8blueviolet

Contrast

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

Light mode
Text on background19.91:1AAA
Text on card19.91:1AAA
Primary button6.27:1AA
Secondary button7.31:1AAA
Muted text4.34:1AA Large
Accent7.86:1AAA
Destructive7.06:1AAA
Dark mode
Text on background20.15:1AAA
Text on card20.15:1AAA
Primary button6.27:1AA
Secondary button7.31:1AAA
Muted text5.90:1AA
Accent7.86:1AAA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 309.088);
  --foreground: oklch(0.113 0.033 310.778);
  --muted: oklch(0.902 0.005 69.6);
  --muted-foreground: oklch(0.507 0.016 69.311);
  --popover: oklch(0.99 0.004 309.088);
  --popover-foreground: oklch(0.113 0.033 310.778);
  --card: oklch(0.99 0.004 309.088);
  --card-foreground: oklch(0.113 0.033 310.778);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.52 0.24 301.555);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.69 0.142 62.416);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.781 0.179 155.842);
  --accent-foreground: oklch(0.274 0.055 158.048);
  --destructive: oklch(0.351 0.117 34.483);
  --destructive-foreground: oklch(0.84 0.081 34.505);
  --ring: oklch(0.52 0.24 301.555);
  --chart-1: oklch(0.52 0.24 301.555);
  --chart-2: oklch(0.69 0.142 62.416);
  --chart-3: oklch(0.781 0.179 155.842);
  --chart-4: oklch(0.708 0.135 63.811);
  --chart-5: oklch(0.521 0.246 301.05);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.027 308.927);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.251 0.006 69.384);
  --muted-foreground: oklch(0.696 0.015 69.431);
  --popover: oklch(0.131 0.027 308.927);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.131 0.027 308.927);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.52 0.24 301.555);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.69 0.142 62.416);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.781 0.179 155.842);
  --accent-foreground: oklch(0.274 0.055 158.048);
  --destructive: oklch(0.647 0.212 34.47);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.52 0.24 301.555);
  --chart-1: oklch(0.52 0.24 301.555);
  --chart-2: oklch(0.69 0.142 62.416);
  --chart-3: oklch(0.781 0.179 155.842);
  --chart-4: oklch(0.708 0.135 63.811);
  --chart-5: oklch(0.521 0.246 301.05);
}