Assured for shadcn/ui

Assured is a shadcn/ui theme built around a purple primary color (#cc61b1) with cyan accents (#61b1cc). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the purple primary (#cc61b1) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fdf7fbsnow
#040103black
Foreground
#090107black
#f9f6f8whitesmoke
Card
#fdf7fbsnow
#040103black
Card foreground
#090107black
#f9f6f8whitesmoke
Popover
#fdf7fbsnow
#040103black
Popover foreground
#090107black
#f9f6f8whitesmoke
Primary
#cc61b1palevioletred
#cc61b1palevioletred
Primary foreground
#000000black
#000000black
Secondary
#b1cc61darkkhaki
#b1cc61darkkhaki
Secondary foreground
#000000black
#000000black
Muted
#e4e6e0gainsboro
#1d1f19black
Muted foreground
#5d5f59dimgray
#a5a6a0darkgray
Accent
#61b1ccmediumturquoise
#61b1ccmediumturquoise
Accent foreground
#000000black
#000000black
Destructive
#b71a06firebrick
#ed2207red
Destructive foreground
#fff2f0seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cc61b1palevioletred
#cc61b1palevioletred

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button5.91:1AA
Secondary button11.66:1AAA
Muted text5.13:1AA
Accent8.67:1AAA
Destructive6.06:1AA
Dark mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button5.91:1AA
Secondary button11.66:1AAA
Muted text6.78:1AA
Accent8.67:1AAA
Destructive4.32:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.009 334.034);
  --foreground: oklch(0.104 0.033 334.909);
  --muted: oklch(0.922 0.008 117.972);
  --muted-foreground: oklch(0.481 0.009 118.15);
  --popover: oklch(0.982 0.009 334.034);
  --popover-foreground: oklch(0.104 0.033 334.909);
  --card: oklch(0.982 0.009 334.034);
  --card-foreground: oklch(0.104 0.033 334.909);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.648 0.165 337.846);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.802 0.137 121.199);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.72 0.087 221.897);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.499 0.191 30.84);
  --destructive-foreground: oklch(0.97 0.014 26.54);
  --ring: oklch(0.648 0.165 337.846);
  --chart-1: oklch(0.648 0.165 337.846);
  --chart-2: oklch(0.802 0.137 121.199);
  --chart-3: oklch(0.72 0.087 221.897);
  --chart-4: oklch(0.816 0.128 120.864);
  --chart-5: oklch(0.648 0.173 338.059);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.017 334.56);
  --foreground: oklch(0.976 0.004 333.954);
  --muted: oklch(0.235 0.011 118.632);
  --muted-foreground: oklch(0.722 0.008 118.02);
  --popover: oklch(0.086 0.017 334.56);
  --popover-foreground: oklch(0.976 0.004 333.954);
  --card: oklch(0.086 0.017 334.56);
  --card-foreground: oklch(0.976 0.004 333.954);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.648 0.165 337.846);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.802 0.137 121.199);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.72 0.087 221.897);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.605 0.234 30.683);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.648 0.165 337.846);
  --chart-1: oklch(0.648 0.165 337.846);
  --chart-2: oklch(0.802 0.137 121.199);
  --chart-3: oklch(0.72 0.087 221.897);
  --chart-4: oklch(0.816 0.128 120.864);
  --chart-5: oklch(0.648 0.173 338.059);
}