Self-reliant for shadcn/ui

Self-reliant is a shadcn/ui theme built around a vivid yellow primary color (#f8bc44) with vivid violet accents (#bc44f8). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid yellow primary (#f8bc44) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#040301black
Foreground
#140f06black
#ffffffwhite
Card
#fdfdfcwhite
#040301black
Card foreground
#140f06black
#ffffffwhite
Popover
#fdfdfcwhite
#040301black
Popover foreground
#140f06black
#ffffffwhite
Primary
#f8bc44sandybrown
#f8bc44sandybrown
Primary foreground
#0a0700black
#0a0700black
Secondary
#44f8bcturquoise
#44f8bcturquoise
Secondary foreground
#000a07black
#000a07black
Muted
#e1e5e4gainsboro
#1a1e1dblack
Muted foreground
#4e6a60dimgray
#95b1a8darkgray
Accent
#bc44f8mediumorchid
#bc44f8mediumorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#993406saddlebrown
#f76926tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8bc44sandybrown
#f8bc44sandybrown

Contrast

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

Light mode
Text on background18.72:1AAA
Text on card18.72:1AAA
Primary button11.77:1AAA
Secondary button14.74:1AAA
Muted text4.64:1AA
Accent3.94:1AA Large
Destructive7.39:1AAA
Dark mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button11.77:1AAA
Secondary button14.74:1AAA
Muted text7.32:1AAA
Accent3.94:1AA Large
Destructive6.99: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.993 0.002 84.556);
  --foreground: oklch(0.172 0.021 85.428);
  --muted: oklch(0.918 0.005 174.442);
  --muted-foreground: oklch(0.498 0.036 172.297);
  --popover: oklch(0.993 0.002 84.556);
  --popover-foreground: oklch(0.172 0.021 85.428);
  --card: oklch(0.993 0.002 84.556);
  --card-foreground: oklch(0.172 0.021 85.428);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.83 0.148 81.011);
  --primary-foreground: oklch(0.128 0.024 93.931);
  --secondary: oklch(0.876 0.166 165.641);
  --secondary-foreground: oklch(0.129 0.023 174.939);
  --accent: oklch(0.633 0.259 311.613);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.467 0.143 39.875);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.83 0.148 81.011);
  --chart-1: oklch(0.83 0.148 81.011);
  --chart-2: oklch(0.876 0.166 165.641);
  --chart-3: oklch(0.633 0.259 311.613);
  --chart-4: oklch(0.882 0.158 166.651);
  --chart-5: oklch(0.835 0.151 80.738);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.009 89.473);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.23 0.006 173.759);
  --muted-foreground: oklch(0.737 0.033 173.213);
  --popover: oklch(0.097 0.009 89.473);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.097 0.009 89.473);
  --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.83 0.148 81.011);
  --primary-foreground: oklch(0.128 0.024 93.931);
  --secondary: oklch(0.876 0.166 165.641);
  --secondary-foreground: oklch(0.129 0.023 174.939);
  --accent: oklch(0.633 0.259 311.613);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.689 0.19 41.938);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.83 0.148 81.011);
  --chart-1: oklch(0.83 0.148 81.011);
  --chart-2: oklch(0.876 0.166 165.641);
  --chart-3: oklch(0.633 0.259 311.613);
  --chart-4: oklch(0.882 0.158 166.651);
  --chart-5: oklch(0.835 0.151 80.738);
}