Self-reliant for shadcn/ui

Self-reliant is a shadcn/ui theme built around a muted light blue primary color (#e0e5eb) with muted light green accents (#e5ebe0). The light mode uses a neutral background (#f8fafc). Dark mode keeps the muted light blue primary (#e0e5eb) on a neutral background (#040507).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#040507black
Foreground
#03070cblack
#f5f7fawhitesmoke
Card
#f8fafcghostwhite
#040507black
Card foreground
#03070cblack
#f5f7fawhitesmoke
Popover
#f8fafcghostwhite
#040507black
Popover foreground
#03070cblack
#f5f7fawhitesmoke
Primary
#e0e5eblavender
#e0e5eblavender
Primary foreground
#3b4a5edarkslategray
#3b4a5edarkslategray
Secondary
#ebe0e5gainsboro
#ebe0e5gainsboro
Secondary foreground
#5e3b4adarkslategray
#5e3b4adarkslategray
Muted
#eae1e5gainsboro
#1e1519black
Muted foreground
#605c5edimgray
#a39fa0darkgray
Accent
#e5ebe0gainsboro
#e5ebe0gainsboro
Accent foreground
#191f14black
#191f14black
Destructive
#be4509firebrick
#f4631achocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e0e5eblavender
#e0e5eblavender

Contrast

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

Light mode
Text on background19.25:1AAA
Text on card19.25:1AAA
Primary button7.09:1AAA
Secondary button7.40:1AAA
Muted text5.13:1AA
Accent13.87:1AAA
Destructive5.18:1AA
Dark mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button7.09:1AAA
Secondary button7.40:1AAA
Muted text6.82:1AA
Accent13.87:1AAA
Destructive6.64:1AA

CSS variables

Paste this into your globals.css to use Self-reliant in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.003 256.665);
  --foreground: oklch(0.126 0.015 249.063);
  --muted: oklch(0.918 0.011 350.01);
  --muted-foreground: oklch(0.48 0.005 349.984);
  --popover: oklch(0.983 0.003 256.665);
  --popover-foreground: oklch(0.126 0.015 249.063);
  --card: oklch(0.983 0.003 256.665);
  --card-foreground: oklch(0.126 0.015 249.063);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.919 0.011 256.697);
  --primary-foreground: oklch(0.403 0.04 256.841);
  --secondary: oklch(0.916 0.014 350.105);
  --secondary-foreground: oklch(0.398 0.054 353.228);
  --accent: oklch(0.933 0.017 131.876);
  --accent-foreground: oklch(0.23 0.024 132.65);
  --destructive: oklch(0.552 0.167 40.75);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.919 0.011 256.697);
  --chart-1: oklch(0.919 0.011 256.697);
  --chart-2: oklch(0.916 0.014 350.105);
  --chart-3: oklch(0.933 0.017 131.876);
  --chart-4: oklch(0.942 0.01 349.965);
  --chart-5: oklch(0.918 0.012 256.702);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.007 252.302);
  --foreground: oklch(0.975 0.005 256.672);
  --muted: oklch(0.209 0.016 351.777);
  --muted-foreground: oklch(0.705 0.005 349.865);
  --popover: oklch(0.112 0.007 252.302);
  --popover-foreground: oklch(0.975 0.005 256.672);
  --card: oklch(0.112 0.007 252.302);
  --card-foreground: oklch(0.975 0.005 256.672);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.919 0.011 256.697);
  --primary-foreground: oklch(0.403 0.04 256.841);
  --secondary: oklch(0.916 0.014 350.105);
  --secondary-foreground: oklch(0.398 0.054 353.228);
  --accent: oklch(0.933 0.017 131.876);
  --accent-foreground: oklch(0.23 0.024 132.65);
  --destructive: oklch(0.676 0.194 42.029);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.919 0.011 256.697);
  --chart-1: oklch(0.919 0.011 256.697);
  --chart-2: oklch(0.916 0.014 350.105);
  --chart-3: oklch(0.933 0.017 131.876);
  --chart-4: oklch(0.942 0.01 349.965);
  --chart-5: oklch(0.918 0.012 256.702);
}