Faith for shadcn/ui

Faith is a shadcn/ui theme built around a vivid deep indigo primary color (#0b106f) with vivid deep violet accents (#380b6f). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid deep indigo primary (#0b106f) on a neutral background (#010104).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#010104black
Foreground
#020208black
#ffffffwhite
Card
#f8f8fcghostwhite
#010104black
Card foreground
#020208black
#ffffffwhite
Popover
#f8f8fcghostwhite
#010104black
Popover foreground
#020208black
#ffffffwhite
Primary
#0b106fmidnightblue
#0b106fmidnightblue
Primary foreground
#b5b8f8lightsteelblue
#b5b8f8lightsteelblue
Secondary
#0b426fmidnightblue
#0b426fmidnightblue
Secondary foreground
#b5daf8powderblue
#b5daf8powderblue
Muted
#eaf0f5lavender
#0a1015black
Muted foreground
#45484adarkslategray
#b5b8basilver
Accent
#380b6findigo
#380b6findigo
Accent foreground
#d3b5f8thistle
#d3b5f8thistle
Destructive
#c04507chocolate
#f8793acoral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b106fmidnightblue
#0b106fmidnightblue

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button8.46:1AAA
Secondary button7.06:1AAA
Muted text8.03:1AAA
Accent8.10:1AAA
Destructive5.14:1AA
Dark mode
Text on background20.81:1AAA
Text on card20.81:1AAA
Primary button8.46:1AAA
Secondary button7.06:1AAA
Muted text9.60:1AAA
Accent8.10:1AAA
Destructive7.80:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 283.871);
  --foreground: oklch(0.096 0.021 278.227);
  --muted: oklch(0.953 0.009 242.323);
  --muted-foreground: oklch(0.399 0.005 242.343);
  --popover: oklch(0.98 0.006 283.871);
  --popover-foreground: oklch(0.096 0.021 278.227);
  --card: oklch(0.98 0.006 283.871);
  --card-foreground: oklch(0.096 0.021 278.227);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.267 0.155 267.84);
  --primary-foreground: oklch(0.803 0.09 281.831);
  --secondary: oklch(0.372 0.094 249.037);
  --secondary-foreground: oklch(0.87 0.057 243.104);
  --accent: oklch(0.302 0.152 295.552);
  --accent-foreground: oklch(0.821 0.097 304.896);
  --destructive: oklch(0.554 0.169 40.423);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.267 0.155 267.84);
  --chart-1: oklch(0.267 0.155 267.84);
  --chart-2: oklch(0.372 0.094 249.037);
  --chart-3: oklch(0.302 0.152 295.552);
  --chart-4: oklch(0.402 0.104 249.265);
  --chart-5: oklch(0.267 0.159 267.24);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.077 0.016 278.544);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.168 0.014 243.399);
  --muted-foreground: oklch(0.781 0.004 242.258);
  --popover: oklch(0.077 0.016 278.544);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.077 0.016 278.544);
  --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.267 0.155 267.84);
  --primary-foreground: oklch(0.803 0.09 281.831);
  --secondary: oklch(0.372 0.094 249.037);
  --secondary-foreground: oklch(0.87 0.057 243.104);
  --accent: oklch(0.302 0.152 295.552);
  --accent-foreground: oklch(0.821 0.097 304.896);
  --destructive: oklch(0.715 0.172 44.704);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.267 0.155 267.84);
  --chart-1: oklch(0.267 0.155 267.84);
  --chart-2: oklch(0.372 0.094 249.037);
  --chart-3: oklch(0.302 0.152 295.552);
  --chart-4: oklch(0.402 0.104 249.265);
  --chart-5: oklch(0.267 0.159 267.24);
}