Reliable for shadcn/ui

Reliable is a shadcn/ui theme built around a deep blue primary color (#040e1a) with deep indigo accents (#05041a). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#040e1a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#040e1ablack
#040e1ablack
Primary foreground
#69a2e8cornflowerblue
#69a2e8cornflowerblue
Secondary
#04191ablack
#04191ablack
Secondary foreground
#20c2cbdarkturquoise
#20c2cbdarkturquoise
Muted
#e0e5e5gainsboro
#1a1e1fblack
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#05041ablack
#05041ablack
Accent foreground
#c4c1f5lightsteelblue
#c4c1f5lightsteelblue
Destructive
#721a04maroon
#f84012orangered
Destructive foreground
#fcbbablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#040e1ablack
#040e1ablack

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.31:1AAA
Secondary button8.29:1AAA
Muted text6.45:1AA
Accent11.82:1AAA
Destructive6.90:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.31:1AAA
Secondary button8.29:1AAA
Muted text7.74:1AAA
Accent11.82:1AAA
Destructive3.67:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.919 0.005 200.821);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.161 0.031 251.539);
  --primary-foreground: oklch(0.702 0.119 254.185);
  --secondary: oklch(0.198 0.028 199.747);
  --secondary-foreground: oklch(0.743 0.122 200.689);
  --accent: oklch(0.13 0.05 280.211);
  --accent-foreground: oklch(0.831 0.073 286.996);
  --destructive: oklch(0.364 0.126 34.331);
  --destructive-foreground: oklch(0.848 0.079 34.493);
  --ring: oklch(0.161 0.031 251.539);
  --chart-1: oklch(0.161 0.031 251.539);
  --chart-2: oklch(0.198 0.028 199.747);
  --chart-3: oklch(0.13 0.05 280.211);
  --chart-4: oklch(0.247 0.036 200.078);
  --chart-5: oklch(0.161 0.032 251.25);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.232 0.007 200.535);
  --muted-foreground: oklch(0.757 0 180);
  --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.161 0.031 251.539);
  --primary-foreground: oklch(0.702 0.119 254.185);
  --secondary: oklch(0.198 0.028 199.747);
  --secondary-foreground: oklch(0.743 0.122 200.689);
  --accent: oklch(0.13 0.05 280.211);
  --accent-foreground: oklch(0.831 0.073 286.996);
  --destructive: oklch(0.643 0.226 33.71);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.161 0.031 251.539);
  --chart-1: oklch(0.161 0.031 251.539);
  --chart-2: oklch(0.198 0.028 199.747);
  --chart-3: oklch(0.13 0.05 280.211);
  --chart-4: oklch(0.247 0.036 200.078);
  --chart-5: oklch(0.161 0.032 251.25);
}