Mastoid for shadcn/ui

Mastoid is a shadcn/ui theme built around a vivid light purple primary color (#fdd8fb) with vivid light pink accents (#fdd8e9). The light mode uses a neutral background (#fdf6fd). Dark mode keeps the vivid light purple primary (#fdd8fb) on a purple-tinted background (#0c030b).

Color palette

TokenLightDark
Background
#fdf6fdsnow
#0c030bblack
Foreground
#000000black
#fbf8fbsnow
Card
#fdf6fdsnow
#0c030bblack
Card foreground
#000000black
#fbf8fbsnow
Popover
#fdf6fdsnow
#0c030bblack
Popover foreground
#000000black
#fbf8fbsnow
Primary
#fdd8fblavenderblush
#fdd8fblavenderblush
Primary foreground
#3a0337midnightblue
#3a0337midnightblue
Secondary
#ecd8fdlavender
#ecd8fdlavender
Secondary foreground
#59099aindigo
#59099aindigo
Muted
#f0eef1whitesmoke
#0f0e11black
Muted foreground
#554a5edimgray
#aca1b5darkgray
Accent
#fdd8e9mistyrose
#fdd8e9mistyrose
Accent foreground
#9a094abrown
#9a094abrown
Destructive
#b40c04firebrick
#fb3c32tomato
Destructive foreground
#ffeceblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fdd8fblavenderblush
#fdd8fblavenderblush

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button13.16:1AAA
Secondary button8.21:1AAA
Muted text7.22:1AAA
Accent6.45:1AA
Destructive6.15:1AA
Dark mode
Text on background19.24:1AAA
Text on card19.24:1AAA
Primary button13.16:1AAA
Secondary button8.21:1AAA
Muted text7.80:1AAA
Accent6.45:1AA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.012 327.146);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.952 0.004 310.403);
  --muted-foreground: oklch(0.428 0.036 309.665);
  --popover: oklch(0.982 0.012 327.146);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.012 327.146);
  --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.924 0.06 327.622);
  --primary-foreground: oklch(0.246 0.105 330.523);
  --secondary: oklch(0.911 0.053 309.897);
  --secondary-foreground: oklch(0.386 0.199 300.699);
  --accent: oklch(0.919 0.045 349.12);
  --accent-foreground: oklch(0.446 0.175 3.264);
  --destructive: oklch(0.487 0.195 29.639);
  --destructive-foreground: oklch(0.958 0.02 21.166);
  --ring: oklch(0.924 0.06 327.622);
  --chart-1: oklch(0.924 0.06 327.622);
  --chart-2: oklch(0.911 0.053 309.897);
  --chart-3: oklch(0.919 0.045 349.12);
  --chart-4: oklch(0.944 0.033 310.114);
  --chart-5: oklch(0.924 0.062 327.642);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.028 328.552);
  --foreground: oklch(0.983 0.005 327.085);
  --muted: oklch(0.167 0.005 310.133);
  --muted-foreground: oklch(0.724 0.031 310.036);
  --popover: oklch(0.124 0.028 328.552);
  --popover-foreground: oklch(0.983 0.005 327.085);
  --card: oklch(0.124 0.028 328.552);
  --card-foreground: oklch(0.983 0.005 327.085);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.924 0.06 327.622);
  --primary-foreground: oklch(0.246 0.105 330.523);
  --secondary: oklch(0.911 0.053 309.897);
  --secondary-foreground: oklch(0.386 0.199 300.699);
  --accent: oklch(0.919 0.045 349.12);
  --accent-foreground: oklch(0.446 0.175 3.264);
  --destructive: oklch(0.648 0.227 28.42);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.924 0.06 327.622);
  --chart-1: oklch(0.924 0.06 327.622);
  --chart-2: oklch(0.911 0.053 309.897);
  --chart-3: oklch(0.919 0.045 349.12);
  --chart-4: oklch(0.944 0.033 310.114);
  --chart-5: oklch(0.924 0.062 327.642);
}