Reliable for shadcn/ui

Reliable is a shadcn/ui theme built around an indigo primary color (#553cc3) with green accents (#aac33c). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the indigo primary (#553cc3) on a neutral background (#030208).

Color palette

TokenLightDark
Background
#fcfbfewhite
#030208black
Foreground
#04020eblack
#faf9fbghostwhite
Card
#f8f7fdghostwhite
#05040cblack
Card foreground
#030109black
#fcfcfdwhite
Popover
#f8f7fdghostwhite
#05040cblack
Popover foreground
#030109black
#fcfcfdwhite
Primary
#553cc3slateblue
#553cc3slateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#aac33cyellowgreen
#aac33cyellowgreen
Secondary foreground
#22270cblack
#22270cblack
Muted
#dcddd4gainsboro
#292b22darkslategray
Muted foreground
#5b5f49darkolivegreen
#b2b6a0darkgray
Accent
#aac33cyellowgreen
#aac33cyellowgreen
Accent foreground
#22270cblack
#22270cblack
Destructive
#d13c05orangered
#e54106orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#553cc3slateblue
#553cc3slateblue

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.48:1AAA
Primary button7.45:1AAA
Secondary button7.76:1AAA
Muted text4.83:1AA
Accent7.76:1AAA
Destructive4.83:1AA
Dark mode
Text on background19.64:1AAA
Text on card19.92:1AAA
Primary button7.45:1AAA
Secondary button7.76:1AAA
Muted text6.90:1AA
Accent7.76:1AAA
Destructive4.12:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 294.752);
  --foreground: oklch(0.1 0.037 292.019);
  --muted: oklch(0.895 0.012 115.081);
  --muted-foreground: oklch(0.476 0.034 116.153);
  --popover: oklch(0.979 0.008 294.679);
  --popover-foreground: oklch(0.087 0.032 292.505);
  --card: oklch(0.979 0.008 294.679);
  --card-foreground: oklch(0.087 0.032 292.505);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.47 0.199 284.085);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.774 0.159 119.315);
  --secondary-foreground: oklch(0.26 0.045 118.279);
  --accent: oklch(0.774 0.159 119.315);
  --accent-foreground: oklch(0.26 0.045 118.279);
  --destructive: oklch(0.573 0.193 36.089);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.47 0.199 284.085);
  --chart-1: oklch(0.47 0.199 284.085);
  --chart-2: oklch(0.774 0.159 119.315);
  --chart-3: oklch(0.774 0.159 119.315);
  --chart-4: oklch(0.787 0.153 118.932);
  --chart-5: oklch(0.466 0.208 283.161);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.019 293.724);
  --foreground: oklch(0.983 0.002 294.793);
  --muted: oklch(0.284 0.016 115.893);
  --muted-foreground: oklch(0.766 0.031 115.563);
  --popover: oklch(0.114 0.022 293.627);
  --popover-foreground: oklch(0.992 0.001 294.808);
  --card: oklch(0.114 0.022 293.627);
  --card-foreground: oklch(0.992 0.001 294.808);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.47 0.199 284.085);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.774 0.159 119.315);
  --secondary-foreground: oklch(0.26 0.045 118.279);
  --accent: oklch(0.774 0.159 119.315);
  --accent-foreground: oklch(0.26 0.045 118.279);
  --destructive: oklch(0.612 0.208 35.936);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.47 0.199 284.085);
  --chart-1: oklch(0.47 0.199 284.085);
  --chart-2: oklch(0.774 0.159 119.315);
  --chart-3: oklch(0.774 0.159 119.315);
  --chart-4: oklch(0.787 0.153 118.932);
  --chart-5: oklch(0.466 0.208 283.161);
}