Assured for shadcn/ui

Assured is a shadcn/ui theme built around a vivid purple primary color (#d10099) with vivid red accents (#d10031). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the vivid purple primary (#d10099) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#000000black
Foreground
#0c030ablack
#ffffffwhite
Card
#fcf8fbsnow
#000000black
Card foreground
#0c030ablack
#ffffffwhite
Popover
#fcf8fbsnow
#000000black
Popover foreground
#0c030ablack
#ffffffwhite
Primary
#d10099mediumvioletred
#d10099mediumvioletred
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a000d1darkviolet
#a000d1darkviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dbd5ddgainsboro
#28222adarkslategray
Muted foreground
#5b565ddimgray
#a8a2a9darkgray
Accent
#d10031crimson
#d10031crimson
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#651606maroon
#de300dorangered
Destructive foreground
#fab2a3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d10099mediumvioletred
#d10099mediumvioletred

Contrast

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

Light mode
Text on background19.30:1AAA
Text on card19.30:1AAA
Primary button5.02:1AA
Secondary button6.13:1AA
Muted text4.95:1AA
Accent5.58:1AA
Destructive7.15:1AAA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button5.02:1AA
Secondary button6.13:1AA
Muted text6.20:1AA
Accent5.58:1AA
Destructive4.64:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 334.631);
  --foreground: oklch(0.122 0.029 335.706);
  --muted: oklch(0.879 0.013 318.315);
  --muted-foreground: oklch(0.46 0.013 318.301);
  --popover: oklch(0.983 0.006 334.631);
  --popover-foreground: oklch(0.122 0.029 335.706);
  --card: oklch(0.983 0.006 334.631);
  --card-foreground: oklch(0.122 0.029 335.706);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.574 0.245 344.69);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.531 0.262 314.333);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.544 0.219 21.372);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.336 0.115 33.106);
  --destructive-foreground: oklch(0.827 0.087 31.621);
  --ring: oklch(0.574 0.245 344.69);
  --chart-1: oklch(0.574 0.245 344.69);
  --chart-2: oklch(0.531 0.262 314.333);
  --chart-3: oklch(0.544 0.219 21.372);
  --chart-4: oklch(0.559 0.277 314.266);
  --chart-5: oklch(0.58 0.248 344.944);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.263 0.018 318.261);
  --muted-foreground: oklch(0.72 0.012 318.314);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.574 0.245 344.69);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.531 0.262 314.333);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.544 0.219 21.372);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.585 0.213 32.368);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.574 0.245 344.69);
  --chart-1: oklch(0.574 0.245 344.69);
  --chart-2: oklch(0.531 0.262 314.333);
  --chart-3: oklch(0.544 0.219 21.372);
  --chart-4: oklch(0.559 0.277 314.266);
  --chart-5: oklch(0.58 0.248 344.944);
}