Assertion for shadcn/ui

Assertion is a shadcn/ui theme built around a muted purple primary color (#826480) with muted pink accents (#826471). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the muted purple primary (#826480) on a purple-tinted background (#10050f).

Color palette

TokenLightDark
Background
#fdf7fdsnow
#10050fblack
Foreground
#000000black
#fbf9fbsnow
Card
#fcf3fblavenderblush
#140613black
Card foreground
#000000black
#fdfcfdwhite
Popover
#fdf7fdsnow
#10050fblack
Popover foreground
#000000black
#fbf9fbsnow
Primary
#826480gray
#826480gray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#746482dimgray
#746482dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4dceagainsboro
#1d1523black
Muted foreground
#48434cdarkslategray
#b8b3bcsilver
Accent
#826471dimgray
#826471dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a90f0ffirebrick
#ec2727crimson
Destructive foreground
#fdececlinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#826480gray
#826480gray

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.33:1AAA
Primary button5.15:1AA
Secondary button5.40:1AA
Muted text7.18:1AAA
Accent5.25:1AA
Destructive6.66:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.28:1AAA
Primary button5.15:1AA
Secondary button5.40:1AA
Muted text8.64:1AAA
Accent5.25:1AA
Destructive4.28:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.01 327.131);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.904 0.021 310.217);
  --muted-foreground: oklch(0.391 0.016 310.07);
  --popover: oklch(0.982 0.01 327.131);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.015 327.178);
  --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.542 0.056 327.952);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.529 0.05 309.561);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.537 0.043 349.89);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.467 0.184 28.332);
  --destructive-foreground: oklch(0.957 0.019 17.483);
  --ring: oklch(0.542 0.056 327.952);
  --chart-1: oklch(0.542 0.056 327.952);
  --chart-2: oklch(0.529 0.05 309.561);
  --chart-3: oklch(0.537 0.043 349.89);
  --chart-4: oklch(0.554 0.053 309.555);
  --chart-5: oklch(0.541 0.069 328.152);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.032 328.761);
  --foreground: oklch(0.984 0.004 327.076);
  --muted: oklch(0.212 0.03 309.08);
  --muted-foreground: oklch(0.774 0.013 310.28);
  --popover: oklch(0.139 0.032 328.761);
  --popover-foreground: oklch(0.984 0.004 327.076);
  --card: oklch(0.152 0.036 328.945);
  --card-foreground: oklch(0.992 0.002 327.057);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.542 0.056 327.952);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.529 0.05 309.561);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.537 0.043 349.89);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.607 0.229 27.494);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.542 0.056 327.952);
  --chart-1: oklch(0.542 0.056 327.952);
  --chart-2: oklch(0.529 0.05 309.561);
  --chart-3: oklch(0.537 0.043 349.89);
  --chart-4: oklch(0.554 0.053 309.555);
  --chart-5: oklch(0.541 0.069 328.152);
}