Employer for shadcn/ui

Employer is a shadcn/ui theme built around a light green primary color (#f3fce9) with light violet accents (#f2e9fc). The light mode uses a neutral background (#fdfefb). Dark mode keeps the light green primary (#f3fce9) on a green-tinted background (#080c04).

Color palette

TokenLightDark
Background
#fdfefbwhite
#080c04black
Foreground
#0d1406black
#fdfdfcwhite
Card
#fafdf7mintcream
#0b1005black
Card foreground
#0b1004black
#ffffffwhite
Popover
#fdfefbwhite
#080c04black
Popover foreground
#0d1406black
#fdfdfcwhite
Primary
#f3fce9honeydew
#f3fce9honeydew
Primary foreground
#28430adarkgreen
#28430adarkgreen
Secondary
#f2e9fclavender
#f2e9fclavender
Secondary foreground
#55179brebeccapurple
#55179brebeccapurple
Muted
#e8e0f0lavender
#160f1fblack
Muted foreground
#594f63dimgray
#a59cb0darkgray
Accent
#f2e9fclavender
#f2e9fclavender
Accent foreground
#55179brebeccapurple
#55179brebeccapurple
Destructive
#aa3003firebrick
#fb5d23tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f3fce9honeydew
#f3fce9honeydew

Contrast

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

Light mode
Text on background18.51:1AAA
Text on card18.78:1AAA
Primary button10.46:1AAA
Secondary button8.97:1AAA
Muted text6.00:1AA
Accent8.97:1AAA
Destructive6.70:1AA
Dark mode
Text on background19.41:1AAA
Text on card19.30:1AAA
Primary button10.46:1AAA
Secondary button8.97:1AAA
Muted text7.10:1AAA
Accent8.97:1AAA
Destructive6.65:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.005 127.168);
  --foreground: oklch(0.179 0.03 128.727);
  --muted: oklch(0.918 0.022 306.814);
  --muted-foreground: oklch(0.446 0.034 306.189);
  --popover: oklch(0.995 0.005 127.168);
  --popover-foreground: oklch(0.179 0.03 128.727);
  --card: oklch(0.99 0.009 127.225);
  --card-foreground: oklch(0.163 0.026 127.673);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.978 0.026 127.447);
  --primary-foreground: oklch(0.347 0.087 131.823);
  --secondary: oklch(0.946 0.027 306.766);
  --secondary-foreground: oklch(0.391 0.191 297.367);
  --accent: oklch(0.946 0.027 306.766);
  --accent-foreground: oklch(0.391 0.191 297.367);
  --destructive: oklch(0.492 0.165 36.41);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.978 0.026 127.447);
  --chart-1: oklch(0.978 0.026 127.447);
  --chart-2: oklch(0.946 0.027 306.766);
  --chart-3: oklch(0.946 0.027 306.766);
  --chart-4: oklch(0.978 0.011 306.979);
  --chart-5: oklch(0.979 0.028 127.46);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.021 126.347);
  --foreground: oklch(0.994 0.002 127.138);
  --muted: oklch(0.187 0.033 304.897);
  --muted-foreground: oklch(0.707 0.03 306.594);
  --popover: oklch(0.145 0.021 126.347);
  --popover-foreground: oklch(0.994 0.002 127.138);
  --card: oklch(0.162 0.025 127.654);
  --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.978 0.026 127.447);
  --primary-foreground: oklch(0.347 0.087 131.823);
  --secondary: oklch(0.946 0.027 306.766);
  --secondary-foreground: oklch(0.391 0.191 297.367);
  --accent: oklch(0.946 0.027 306.766);
  --accent-foreground: oklch(0.391 0.191 297.367);
  --destructive: oklch(0.678 0.204 38.233);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.978 0.026 127.447);
  --chart-1: oklch(0.978 0.026 127.447);
  --chart-2: oklch(0.946 0.027 306.766);
  --chart-3: oklch(0.946 0.027 306.766);
  --chart-4: oklch(0.978 0.011 306.979);
  --chart-5: oklch(0.979 0.028 127.46);
}