Set for shadcn/ui

Set is a shadcn/ui theme built around a light purple primary color (#f2deee) with muted light purple accents (#cabac6). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the light purple primary (#f2deee) on a purple-tinted background (#0f050d).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#0f050dblack
Foreground
#090107black
#fdfcfdwhite
Card
#fdfcfdwhite
#0f050dblack
Card foreground
#090107black
#fdfcfdwhite
Popover
#fdfcfdwhite
#0f050dblack
Popover foreground
#090107black
#fdfcfdwhite
Primary
#f2deeelavender
#f2deeelavender
Primary foreground
#702e62rebeccapurple
#702e62rebeccapurple
Secondary
#d9d3d8lightgrey
#2e292ddarkslategray
Secondary foreground
#413940darkslategray
#c8c1c6silver
Muted
#e1d5dfgainsboro
#2a1e27darkslategray
Muted foreground
#5e4559dimgray
#baa1b4darkgray
Accent
#cabac6silver
#483744darkslategray
Accent foreground
#2e232cdarkslategray
#ded4dcgainsboro
Destructive
#c83d0efirebrick
#ef4c15orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2deeelavender
#f2deeelavender

Contrast

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

Light mode
Text on background20.09:1AAA
Text on card20.09:1AAA
Primary button7.30:1AAA
Secondary button7.58:1AAA
Muted text5.99:1AA
Accent8.13:1AAA
Destructive5.08:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button7.30:1AAA
Secondary button8.10:1AAA
Muted text6.75:1AA
Accent7.59:1AAA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 332.659);
  --foreground: oklch(0.105 0.03 333.709);
  --muted: oklch(0.886 0.018 332.936);
  --muted-foreground: oklch(0.425 0.045 334.157);
  --popover: oklch(0.991 0.003 332.659);
  --popover-foreground: oklch(0.105 0.03 333.709);
  --card: oklch(0.991 0.003 332.659);
  --card-foreground: oklch(0.105 0.03 333.709);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.922 0.029 333.096);
  --primary-foreground: oklch(0.413 0.116 336.644);
  --secondary: oklch(0.874 0.009 332.77);
  --secondary-foreground: oklch(0.356 0.016 333.312);
  --accent: oklch(0.805 0.025 333.085);
  --accent-foreground: oklch(0.274 0.022 333.789);
  --destructive: oklch(0.559 0.184 36.214);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.922 0.029 333.096);
  --chart-1: oklch(0.922 0.029 333.096);
  --chart-2: oklch(0.874 0.009 332.77);
  --chart-3: oklch(0.805 0.025 333.085);
  --chart-4: oklch(0.898 0.007 332.738);
  --chart-5: oklch(0.921 0.031 333.13);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.027 334.57);
  --foreground: oklch(0.992 0.001 332.637);
  --muted: oklch(0.252 0.025 334.087);
  --muted-foreground: oklch(0.737 0.039 333.413);
  --popover: oklch(0.138 0.027 334.57);
  --popover-foreground: oklch(0.992 0.001 332.637);
  --card: oklch(0.138 0.027 334.57);
  --card-foreground: oklch(0.992 0.001 332.637);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.922 0.029 333.096);
  --primary-foreground: oklch(0.413 0.116 336.644);
  --secondary: oklch(0.287 0.01 333.171);
  --secondary-foreground: oklch(0.818 0.011 332.822);
  --accent: oklch(0.362 0.031 333.905);
  --accent-foreground: oklch(0.879 0.015 332.881);
  --destructive: oklch(0.64 0.208 36.408);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.922 0.029 333.096);
  --chart-1: oklch(0.922 0.029 333.096);
  --chart-2: oklch(0.287 0.01 333.171);
  --chart-3: oklch(0.362 0.031 333.905);
  --chart-4: oklch(0.317 0.012 333.192);
  --chart-5: oklch(0.921 0.031 333.13);
}