Nonconformist for shadcn/ui

Nonconformist is a shadcn/ui theme built around a green primary color (#4edf8a) with teal accents (#4edfd3). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the green primary (#4edf8a) on a green-tinted background (#050f09).

Color palette

TokenLightDark
Background
#f8fcfamintcream
#050f09black
Foreground
#020805black
#fcfdfcwhite
Card
#f5faf7whitesmoke
#07130cblack
Card foreground
#010402black
#ffffffwhite
Popover
#f5faf7whitesmoke
#07130cblack
Popover foreground
#010402black
#ffffffwhite
Primary
#4edf8amediumaquamarine
#4edf8amediumaquamarine
Primary foreground
#000000black
#000000black
Secondary
#5adf4elimegreen
#5adf4elimegreen
Secondary foreground
#000000black
#000000black
Muted
#d3e0d1lightgrey
#202e1fdarkslategray
Muted foreground
#5e645edimgray
#9ca19bdarkgray
Accent
#4edfd3turquoise
#4edfd3turquoise
Accent foreground
#000000black
#000000black
Destructive
#960f0ddarkred
#ee3d3atomato
Destructive foreground
#fcdad9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4edf8amediumaquamarine
#4edf8amediumaquamarine

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.48:1AAA
Primary button12.20:1AAA
Secondary button12.06:1AAA
Muted text4.43:1AA Large
Accent12.77:1AAA
Destructive6.80:1AA
Dark mode
Text on background19.07:1AAA
Text on card18.98:1AAA
Primary button12.20:1AAA
Secondary button12.06:1AAA
Muted text5.45:1AA
Accent12.77:1AAA
Destructive3.91:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 160.911);
  --foreground: oklch(0.124 0.018 160.943);
  --muted: oklch(0.893 0.024 143.007);
  --muted-foreground: oklch(0.496 0.011 143.028);
  --popover: oklch(0.98 0.006 160.859);
  --popover-foreground: oklch(0.098 0.014 160.943);
  --card: oklch(0.98 0.006 160.859);
  --card-foreground: oklch(0.098 0.014 160.943);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.805 0.172 153.923);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.8 0.218 141.946);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.823 0.123 187.176);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.43 0.167 28.517);
  --destructive-foreground: oklch(0.916 0.038 19.017);
  --ring: oklch(0.805 0.172 153.923);
  --chart-1: oklch(0.805 0.172 153.923);
  --chart-2: oklch(0.8 0.218 141.946);
  --chart-3: oklch(0.823 0.123 187.176);
  --chart-4: oklch(0.811 0.206 141.991);
  --chart-5: oklch(0.812 0.178 153.637);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.02 159.461);
  --foreground: oklch(0.993 0.002 160.969);
  --muted: oklch(0.282 0.032 142.596);
  --muted-foreground: oklch(0.703 0.01 143.066);
  --popover: oklch(0.172 0.024 157.925);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.172 0.024 157.925);
  --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.805 0.172 153.923);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.8 0.218 141.946);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.823 0.123 187.176);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.627 0.214 26.653);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.805 0.172 153.923);
  --chart-1: oklch(0.805 0.172 153.923);
  --chart-2: oklch(0.8 0.218 141.946);
  --chart-3: oklch(0.823 0.123 187.176);
  --chart-4: oklch(0.811 0.206 141.991);
  --chart-5: oklch(0.812 0.178 153.637);
}