Attorney for shadcn/ui

Attorney is a shadcn/ui theme built around a green primary color (#a9c181) with muted light green accents (#d0d5c8). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#a9c181) on a neutral background (#030402).

Color palette

TokenLightDark
Background
#ffffffwhite
#030402black
Foreground
#0f1505black
#ffffffwhite
Card
#ffffffwhite
#030402black
Card foreground
#0f1505black
#ffffffwhite
Popover
#ffffffwhite
#030402black
Popover foreground
#0f1505black
#ffffffwhite
Primary
#a9c181darkseagreen
#a9c181darkseagreen
Primary foreground
#080a05black
#080a05black
Secondary
#dfe1dbgainsboro
#343531darkslategray
Secondary foreground
#464a3fdarkslategray
#cdcecalightgrey
Muted
#e7ecdfbeige
#1b2013black
Muted foreground
#5c5d5bdimgray
#a3a4a2darkgray
Accent
#d0d5c8lightgrey
#454c39darkslategray
Accent foreground
#383d2edarkslategray
#dde0d6gainsboro
Destructive
#692302maroon
#fc6a27tomato
Destructive foreground
#febda0lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a9c181darkseagreen
#a9c181darkseagreen

Contrast

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

Light mode
Text on background18.58:1AAA
Text on card18.58:1AAA
Primary button10.04:1AAA
Secondary button6.86:1AA
Muted text5.51:1AA
Accent7.50:1AAA
Destructive7.05:1AAA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button10.04:1AAA
Secondary button7.81:1AAA
Muted text6.63:1AA
Accent6.73:1AA
Destructive7.23:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.182 0.032 125.133);
  --muted: oklch(0.936 0.018 123.23);
  --muted-foreground: oklch(0.476 0.003 123.026);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.182 0.032 125.133);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.182 0.032 125.133);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.777 0.09 124.818);
  --primary-foreground: oklch(0.141 0.013 122.59);
  --secondary: oklch(0.905 0.007 123.054);
  --secondary-foreground: oklch(0.403 0.019 123.648);
  --accent: oklch(0.866 0.019 123.268);
  --accent-foreground: oklch(0.35 0.026 124.103);
  --destructive: oklch(0.359 0.109 40.887);
  --destructive-foreground: oklch(0.851 0.085 45.943);
  --ring: oklch(0.777 0.09 124.818);
  --chart-1: oklch(0.777 0.09 124.818);
  --chart-2: oklch(0.905 0.007 123.054);
  --chart-3: oklch(0.866 0.019 123.268);
  --chart-4: oklch(0.927 0.006 123.022);
  --chart-5: oklch(0.783 0.097 124.973);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 122.546);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.235 0.025 124.664);
  --muted-foreground: oklch(0.718 0.003 122.987);
  --popover: oklch(0.099 0.011 122.546);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.099 0.011 122.546);
  --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.777 0.09 124.818);
  --primary-foreground: oklch(0.141 0.013 122.59);
  --secondary: oklch(0.326 0.007 123.275);
  --secondary-foreground: oklch(0.849 0.006 123.033);
  --accent: oklch(0.403 0.031 124.15);
  --accent-foreground: oklch(0.902 0.014 123.166);
  --destructive: oklch(0.698 0.193 41.907);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.777 0.09 124.818);
  --chart-1: oklch(0.777 0.09 124.818);
  --chart-2: oklch(0.326 0.007 123.275);
  --chart-3: oklch(0.403 0.031 124.15);
  --chart-4: oklch(0.357 0.008 123.284);
  --chart-5: oklch(0.783 0.097 124.973);
}