Infamous for shadcn/ui

Infamous is a shadcn/ui theme built around a green primary color (#329825) with purple accents (#8a2598). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the green primary (#329825) on a green-tinted background (#080e07).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#080e07black
Foreground
#061004black
#ffffffwhite
Card
#f8fcf8mintcream
#080e07black
Card foreground
#061004black
#ffffffwhite
Popover
#f8fcf8mintcream
#080e07black
Popover foreground
#061004black
#ffffffwhite
Primary
#329825forestgreen
#329825forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#8a2598rebeccapurple
#8a2598rebeccapurple
Secondary foreground
#fbf3fcghostwhite
#fbf3fcghostwhite
Muted
#ebdeedlavender
#1f1221black
Muted foreground
#413e42darkslategray
#c1bdc1silver
Accent
#8a2598rebeccapurple
#8a2598rebeccapurple
Accent foreground
#fbf3fcghostwhite
#fbf3fcghostwhite
Destructive
#d32e0dfirebrick
#f0350forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#329825forestgreen
#329825forestgreen

Contrast

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

Light mode
Text on background18.73:1AAA
Text on card18.73:1AAA
Primary button3.71:1AA Large
Secondary button6.89:1AA
Muted text8.14:1AAA
Accent6.89:1AA
Destructive5.03:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button3.71:1AA Large
Secondary button6.89:1AA
Muted text9.68:1AAA
Accent6.89:1AA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.008 142.087);
  --foreground: oklch(0.158 0.031 140.569);
  --muted: oklch(0.916 0.023 322.199);
  --muted-foreground: oklch(0.368 0.008 322.185);
  --popover: oklch(0.987 0.008 142.087);
  --popover-foreground: oklch(0.158 0.031 140.569);
  --card: oklch(0.987 0.008 142.087);
  --card-foreground: oklch(0.158 0.031 140.569);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.598 0.177 141.474);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.473 0.19 322.741);
  --secondary-foreground: oklch(0.972 0.015 322.166);
  --accent: oklch(0.473 0.19 322.741);
  --accent-foreground: oklch(0.972 0.015 322.166);
  --destructive: oklch(0.565 0.204 32.46);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.598 0.177 141.474);
  --chart-1: oklch(0.598 0.177 141.474);
  --chart-2: oklch(0.473 0.19 322.741);
  --chart-3: oklch(0.473 0.19 322.741);
  --chart-4: oklch(0.501 0.202 322.733);
  --chart-5: oklch(0.605 0.182 141.506);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.018 141.25);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.207 0.033 322.606);
  --muted-foreground: oklch(0.803 0.006 322.14);
  --popover: oklch(0.152 0.018 141.25);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.152 0.018 141.25);
  --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.598 0.177 141.474);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.473 0.19 322.741);
  --secondary-foreground: oklch(0.972 0.015 322.166);
  --accent: oklch(0.473 0.19 322.741);
  --accent-foreground: oklch(0.972 0.015 322.166);
  --destructive: oklch(0.621 0.226 32.384);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.598 0.177 141.474);
  --chart-1: oklch(0.598 0.177 141.474);
  --chart-2: oklch(0.473 0.19 322.741);
  --chart-3: oklch(0.473 0.19 322.741);
  --chart-4: oklch(0.501 0.202 322.733);
  --chart-5: oklch(0.605 0.182 141.506);
}