Resist for shadcn/ui

Resist is a shadcn/ui theme built around a vivid deep green primary color (#072603) with vivid deep green accents (#032611). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#072603) on a green-tinted background (#050b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#050b04black
Foreground
#020802black
#f5faf5whitesmoke
Card
#ffffffwhite
#050b04black
Card foreground
#020802black
#f5faf5whitesmoke
Popover
#ffffffwhite
#050b04black
Popover foreground
#020802black
#f5faf5whitesmoke
Primary
#072603black
#072603black
Primary foreground
#28e114limegreen
#28e114limegreen
Secondary
#182603black
#182603black
Secondary foreground
#8fe114yellowgreen
#8fe114yellowgreen
Muted
#e2ead7gainsboro
#202815black
Muted foreground
#555850dimgray
#acafa7darkgray
Accent
#032611black
#032611black
Accent foreground
#14e166springgreen
#14e166springgreen
Destructive
#82300dsaddlebrown
#ec7441tomato
Destructive foreground
#f9d6c7bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#072603black
#072603black

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button9.26:1AAA
Secondary button9.87:1AAA
Muted text5.85:1AA
Accent9.34:1AAA
Destructive6.50:1AA
Dark mode
Text on background18.79:1AAA
Text on card18.79:1AAA
Primary button9.26:1AAA
Secondary button9.87:1AAA
Muted text6.85:1AA
Accent9.34:1AAA
Destructive7.15:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.026 140.655);
  --muted: oklch(0.926 0.027 124.759);
  --muted-foreground: oklch(0.456 0.014 124.79);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.124 0.026 140.655);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.124 0.026 140.655);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.235 0.07 141.107);
  --primary-foreground: oklch(0.792 0.262 141.981);
  --secondary: oklch(0.245 0.059 128.542);
  --secondary-foreground: oklch(0.826 0.223 131.35);
  --accent: oklch(0.236 0.056 153.103);
  --accent-foreground: oklch(0.796 0.221 149.138);
  --destructive: oklch(0.423 0.121 40.437);
  --destructive-foreground: oklch(0.903 0.044 44.552);
  --ring: oklch(0.235 0.07 141.107);
  --chart-1: oklch(0.235 0.07 141.107);
  --chart-2: oklch(0.245 0.059 128.542);
  --chart-3: oklch(0.236 0.056 153.103);
  --chart-4: oklch(0.296 0.074 129.408);
  --chart-5: oklch(0.237 0.072 141.048);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.023 141.139);
  --foreground: oklch(0.98 0.009 142.59);
  --muted: oklch(0.264 0.035 126.422);
  --muted-foreground: oklch(0.749 0.012 124.584);
  --popover: oklch(0.14 0.023 141.139);
  --popover-foreground: oklch(0.98 0.009 142.59);
  --card: oklch(0.14 0.023 141.139);
  --card-foreground: oklch(0.98 0.009 142.59);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.235 0.07 141.107);
  --primary-foreground: oklch(0.792 0.262 141.981);
  --secondary: oklch(0.245 0.059 128.542);
  --secondary-foreground: oklch(0.826 0.223 131.35);
  --accent: oklch(0.236 0.056 153.103);
  --accent-foreground: oklch(0.796 0.221 149.138);
  --destructive: oklch(0.691 0.162 42.478);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.235 0.07 141.107);
  --chart-1: oklch(0.235 0.07 141.107);
  --chart-2: oklch(0.245 0.059 128.542);
  --chart-3: oklch(0.236 0.056 153.103);
  --chart-4: oklch(0.296 0.074 129.408);
  --chart-5: oklch(0.237 0.072 141.048);
}