Self-reliant for shadcn/ui

Self-reliant is a shadcn/ui theme built around a vivid light green primary color (#8ffa91) with muted light green accents (#d9e3d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#8ffa91) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#ffffffwhite
#030703black
Foreground
#020d02black
#fcfdfcwhite
Card
#fcfcfcsnow
#050a05black
Card foreground
#010902black
#ffffffwhite
Popover
#ffffffwhite
#030703black
Popover foreground
#020d02black
#fcfdfcwhite
Primary
#8ffa91palegreen
#8ffa91palegreen
Primary foreground
#045305darkgreen
#045305darkgreen
Secondary
#d9e3d9gainsboro
#182018black
Secondary foreground
#3a503adarkslategray
#abbfabdarkgray
Muted
#d4e3d4gainsboro
#1c2b1cblack
Muted foreground
#5b625bdimgray
#9da49ddarkgray
Accent
#d9e3d9gainsboro
#182018black
Accent foreground
#3a503adarkslategray
#abbfabdarkgray
Destructive
#bd1405firebrick
#e51806red
Destructive foreground
#fff6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8ffa91palegreen
#8ffa91palegreen

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.73:1AAA
Primary button7.22:1AAA
Secondary button6.67:1AA
Muted text4.69:1AA
Accent6.67:1AA
Destructive6.04:1AA
Dark mode
Text on background19.88:1AAA
Text on card19.93:1AAA
Primary button7.22:1AAA
Secondary button8.55:1AAA
Muted text5.81:1AA
Accent8.55:1AAA
Destructive4.70:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.036 143.928);
  --muted: oklch(0.9 0.026 145.82);
  --muted-foreground: oklch(0.488 0.015 145.801);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.143 0.036 143.928);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.124 0.031 143.96);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.895 0.172 144.309);
  --primary-foreground: oklch(0.384 0.126 142.759);
  --secondary: oklch(0.905 0.018 145.89);
  --secondary-foreground: oklch(0.406 0.045 145.098);
  --accent: oklch(0.905 0.018 145.89);
  --accent-foreground: oklch(0.406 0.045 145.098);
  --destructive: oklch(0.508 0.199 30.118);
  --destructive-foreground: oklch(0.979 0.01 23.678);
  --ring: oklch(0.895 0.172 144.309);
  --chart-1: oklch(0.895 0.172 144.309);
  --chart-2: oklch(0.905 0.018 145.89);
  --chart-3: oklch(0.905 0.018 145.89);
  --chart-4: oklch(0.927 0.014 145.932);
  --chart-5: oklch(0.898 0.177 144.259);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.014 145.106);
  --foreground: oklch(0.993 0.002 146.038);
  --muted: oklch(0.271 0.034 144.974);
  --muted-foreground: oklch(0.712 0.014 145.897);
  --popover: oklch(0.12 0.014 145.106);
  --popover-foreground: oklch(0.993 0.002 146.038);
  --card: oklch(0.137 0.017 145.106);
  --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.895 0.172 144.309);
  --primary-foreground: oklch(0.384 0.126 142.759);
  --secondary: oklch(0.233 0.019 145.378);
  --secondary-foreground: oklch(0.784 0.036 145.668);
  --accent: oklch(0.233 0.019 145.378);
  --accent-foreground: oklch(0.784 0.036 145.668);
  --destructive: oklch(0.585 0.231 30.033);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.895 0.172 144.309);
  --chart-1: oklch(0.895 0.172 144.309);
  --chart-2: oklch(0.233 0.019 145.378);
  --chart-3: oklch(0.233 0.019 145.378);
  --chart-4: oklch(0.267 0.023 145.327);
  --chart-5: oklch(0.898 0.177 144.259);
}