Compliance for shadcn/ui

Compliance is a shadcn/ui theme built around a vivid deep teal primary color (#032115) with vivid deep orange accents (#211503). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid deep teal primary (#032115) on a teal-tinted background (#050a08).

Color palette

TokenLightDark
Background
#fbfefdwhite
#050a08black
Foreground
#04110cblack
#f9fbfamintcream
Card
#fbfefdwhite
#050a08black
Card foreground
#04110cblack
#f9fbfamintcream
Popover
#fbfefdwhite
#050a08black
Popover foreground
#04110cblack
#f9fbfamintcream
Primary
#032115black
#032115black
Primary foreground
#12de90mediumspringgreen
#12de90mediumspringgreen
Secondary
#150321black
#150321black
Secondary foreground
#e4c2falavender
#e4c2falavender
Muted
#f3f0f4whitesmoke
#0d0b0fblack
Muted foreground
#4d4b4edarkslategray
#b3b1b4darkgray
Accent
#211503black
#211503black
Accent foreground
#de9012goldenrod
#de9012goldenrod
Destructive
#bf4912chocolate
#ed733btomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#032115black
#032115black

Contrast

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

Light mode
Text on background18.97:1AAA
Text on card18.97:1AAA
Primary button9.63:1AAA
Secondary button12.56:1AAA
Muted text7.65:1AAA
Accent6.89:1AA
Destructive5.02:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.14:1AAA
Primary button9.63:1AAA
Secondary button12.56:1AAA
Muted text9.20:1AAA
Accent6.89:1AA
Destructive7.12:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 171.484);
  --foreground: oklch(0.161 0.023 168.929);
  --muted: oklch(0.959 0.005 312.948);
  --muted-foreground: oklch(0.416 0.006 312.894);
  --popover: oklch(0.994 0.004 171.484);
  --popover-foreground: oklch(0.161 0.023 168.929);
  --card: oklch(0.994 0.004 171.484);
  --card-foreground: oklch(0.161 0.023 168.929);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.221 0.043 164.157);
  --primary-foreground: oklch(0.794 0.181 158.784);
  --secondary: oklch(0.158 0.066 310.42);
  --secondary-foreground: oklch(0.861 0.085 312.314);
  --accent: oklch(0.208 0.038 78.737);
  --accent-foreground: oklch(0.715 0.151 70.221);
  --destructive: oklch(0.559 0.164 40.831);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.221 0.043 164.157);
  --chart-1: oklch(0.221 0.043 164.157);
  --chart-2: oklch(0.158 0.066 310.42);
  --chart-3: oklch(0.208 0.038 78.737);
  --chart-4: oklch(0.19 0.084 308.924);
  --chart-5: oklch(0.223 0.045 163.979);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.012 171.753);
  --foreground: oklch(0.986 0.003 171.515);
  --muted: oklch(0.154 0.008 312.619);
  --muted-foreground: oklch(0.763 0.005 312.942);
  --popover: oklch(0.139 0.012 171.753);
  --popover-foreground: oklch(0.986 0.003 171.515);
  --card: oklch(0.139 0.012 171.753);
  --card-foreground: oklch(0.986 0.003 171.515);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.221 0.043 164.157);
  --primary-foreground: oklch(0.794 0.181 158.784);
  --secondary: oklch(0.158 0.066 310.42);
  --secondary-foreground: oklch(0.861 0.085 312.314);
  --accent: oklch(0.208 0.038 78.737);
  --accent-foreground: oklch(0.715 0.151 70.221);
  --destructive: oklch(0.69 0.166 43.552);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.221 0.043 164.157);
  --chart-1: oklch(0.221 0.043 164.157);
  --chart-2: oklch(0.158 0.066 310.42);
  --chart-3: oklch(0.208 0.038 78.737);
  --chart-4: oklch(0.19 0.084 308.924);
  --chart-5: oklch(0.223 0.045 163.979);
}