Trusting for shadcn/ui

Trusting is a shadcn/ui theme built around a vivid indigo primary color (#5959f8) with vivid green accents (#59f859). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid indigo primary (#5959f8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#000000black
Foreground
#040415black
#fcfcfdwhite
Card
#f8f8fcghostwhite
#000000black
Card foreground
#040415black
#fcfcfdwhite
Popover
#f8f8fcghostwhite
#000000black
Popover foreground
#040415black
#fcfcfdwhite
Primary
#5959f8royalblue
#5959f8royalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#f85959tomato
#f85959tomato
Secondary foreground
#1d0101black
#1d0101black
Muted
#dbd6d6gainsboro
#292424darkslategray
Muted foreground
#5b5757dimgray
#a8a4a4darkgray
Accent
#59f859limegreen
#59f859limegreen
Accent foreground
#011d01black
#011d01black
Destructive
#731807maroon
#f0310forangered
Destructive foreground
#fabdb2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5959f8royalblue
#5959f8royalblue

Contrast

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

Light mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button5.01:1AA
Secondary button6.19:1AA
Muted text4.97:1AA
Accent12.73:1AAA
Destructive6.98:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button5.01:1AA
Secondary button6.19:1AA
Muted text6.21:1AA
Accent12.73:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.004 286.32);
  --foreground: oklch(0.123 0.041 278.464);
  --muted: oklch(0.881 0.005 17.253);
  --muted-foreground: oklch(0.462 0.005 17.324);
  --popover: oklch(0.981 0.004 286.32);
  --popover-foreground: oklch(0.123 0.041 278.464);
  --card: oklch(0.981 0.004 286.32);
  --card-foreground: oklch(0.123 0.041 278.464);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.562 0.231 275.984);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.676 0.195 23.963);
  --secondary-foreground: oklch(0.15 0.056 27.174);
  --accent: oklch(0.864 0.241 143.137);
  --accent-foreground: oklch(0.202 0.065 142.693);
  --destructive: oklch(0.365 0.128 32.269);
  --destructive-foreground: oklch(0.851 0.073 30.015);
  --ring: oklch(0.562 0.231 275.984);
  --chart-1: oklch(0.562 0.231 275.984);
  --chart-2: oklch(0.676 0.195 23.963);
  --chart-3: oklch(0.864 0.241 143.137);
  --chart-4: oklch(0.697 0.179 22.904);
  --chart-5: oklch(0.558 0.238 275.481);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.002 286.37);
  --muted: oklch(0.265 0.007 17.596);
  --muted-foreground: oklch(0.722 0.004 17.252);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.002 286.37);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.002 286.37);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.562 0.231 275.984);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.676 0.195 23.963);
  --secondary-foreground: oklch(0.15 0.056 27.174);
  --accent: oklch(0.864 0.241 143.137);
  --accent-foreground: oklch(0.202 0.065 142.693);
  --destructive: oklch(0.618 0.228 31.834);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.562 0.231 275.984);
  --chart-1: oklch(0.562 0.231 275.984);
  --chart-2: oklch(0.676 0.195 23.963);
  --chart-3: oklch(0.864 0.241 143.137);
  --chart-4: oklch(0.697 0.179 22.904);
  --chart-5: oklch(0.558 0.238 275.481);
}