Faithful for shadcn/ui

Faithful is a shadcn/ui theme built around a vivid teal primary color (#15a89e) with neutral gray accents (#c6cdcc). The light mode uses a neutral background (#fbfefe). Dark mode keeps the vivid teal primary (#15a89e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefewhite
#000000black
Foreground
#020808black
#ffffffwhite
Card
#fbfefewhite
#000000black
Card foreground
#020808black
#ffffffwhite
Popover
#fbfefewhite
#000000black
Popover foreground
#020808black
#ffffffwhite
Primary
#15a89elightseagreen
#15a89elightseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d8d9d9gainsboro
#282e2edarkslategray
Secondary foreground
#3f4040darkslategray
#c0c8c8silver
Muted
#daeceblavender
#132524black
Muted foreground
#586564dimgray
#9aa7a6darkgray
Accent
#c6cdcclightgrey
#2f4140darkslategray
Accent foreground
#2e3333darkslategray
#cad8d7lightgrey
Destructive
#c94c03chocolate
#fb6b18darkorange
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#15a89elightseagreen
#15a89elightseagreen

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button2.94:1Fail
Secondary button7.36:1AAA
Muted text4.96:1AA
Accent7.92:1AAA
Destructive4.66:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button2.94:1Fail
Secondary button8.07:1AAA
Muted text6.39:1AA
Accent7.32:1AAA
Destructive7.25:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 192.36);
  --foreground: oklch(0.126 0.015 191.331);
  --muted: oklch(0.93 0.02 191.985);
  --muted-foreground: oklch(0.495 0.016 191.741);
  --popover: oklch(0.995 0.003 192.36);
  --popover-foreground: oklch(0.126 0.015 191.331);
  --card: oklch(0.995 0.003 192.36);
  --card-foreground: oklch(0.126 0.015 191.331);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.66 0.112 187.352);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.885 0.001 192.407);
  --secondary-foreground: oklch(0.372 0.002 192.33);
  --accent: oklch(0.842 0.007 192.252);
  --accent-foreground: oklch(0.317 0.008 191.896);
  --destructive: oklch(0.578 0.173 42.055);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.66 0.112 187.352);
  --chart-1: oklch(0.66 0.112 187.352);
  --chart-2: oklch(0.885 0.001 192.407);
  --chart-3: oklch(0.842 0.007 192.252);
  --chart-4: oklch(0.908 0.001 192.412);
  --chart-5: oklch(0.668 0.114 187.214);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.249 0.025 190.271);
  --muted-foreground: oklch(0.718 0.015 191.992);
  --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.66 0.112 187.352);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.297 0.009 191.827);
  --secondary-foreground: oklch(0.828 0.009 192.199);
  --accent: oklch(0.36 0.023 191.072);
  --accent-foreground: oklch(0.872 0.016 192.047);
  --destructive: oklch(0.698 0.195 44.191);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.66 0.112 187.352);
  --chart-1: oklch(0.66 0.112 187.352);
  --chart-2: oklch(0.297 0.009 191.827);
  --chart-3: oklch(0.36 0.023 191.072);
  --chart-4: oklch(0.328 0.01 191.806);
  --chart-5: oklch(0.668 0.114 187.214);
}