Unlawful for shadcn/ui

Unlawful is a shadcn/ui theme built around a vivid light violet primary color (#e095fe) with vivid light green accents (#b3fe95). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid light violet primary (#e095fe) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#fdfbfewhite
#030104black
Foreground
#09040bblack
#fdfcfdwhite
Card
#fdfbfewhite
#030104black
Card foreground
#09040bblack
#fdfcfdwhite
Popover
#fdfbfewhite
#030104black
Popover foreground
#09040bblack
#fdfcfdwhite
Primary
#e095feviolet
#e095feviolet
Primary foreground
#450160indigo
#450160indigo
Secondary
#b3fe95palegreen
#b3fe95palegreen
Secondary foreground
#1c6001darkgreen
#1c6001darkgreen
Muted
#e7ebe6linen
#161914black
Muted foreground
#484e46darkslategray
#b3b9b1darkgray
Accent
#b3fe95palegreen
#b3fe95palegreen
Accent foreground
#1c6001darkgreen
#1c6001darkgreen
Destructive
#6f1606maroon
#f1300eorangered
Destructive foreground
#fab9adlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e095feviolet
#e095feviolet

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.71:1AAA
Primary button6.94:1AA
Secondary button6.43:1AA
Muted text7.07:1AAA
Accent6.43:1AA
Destructive7.03:1AAA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button6.94:1AA
Secondary button6.43:1AA
Muted text8.83:1AAA
Accent6.43:1AA
Destructive4.06:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 316.593);
  --foreground: oklch(0.122 0.024 318.126);
  --muted: oklch(0.935 0.008 136.634);
  --muted-foreground: oklch(0.417 0.017 136.731);
  --popover: oklch(0.99 0.005 316.593);
  --popover-foreground: oklch(0.122 0.024 318.126);
  --card: oklch(0.99 0.005 316.593);
  --card-foreground: oklch(0.122 0.024 318.126);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.782 0.163 315.915);
  --primary-foreground: oklch(0.297 0.147 312.362);
  --secondary: oklch(0.924 0.155 137.288);
  --secondary-foreground: oklch(0.429 0.136 139.621);
  --accent: oklch(0.924 0.155 137.288);
  --accent-foreground: oklch(0.429 0.136 139.621);
  --destructive: oklch(0.355 0.125 32.318);
  --destructive-foreground: oklch(0.842 0.078 30.089);
  --ring: oklch(0.782 0.163 315.915);
  --chart-1: oklch(0.782 0.163 315.915);
  --chart-2: oklch(0.924 0.155 137.288);
  --chart-3: oklch(0.924 0.155 137.288);
  --chart-4: oklch(0.933 0.134 137.15);
  --chart-5: oklch(0.781 0.168 315.887);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.015 318.129);
  --foreground: oklch(0.991 0.002 316.602);
  --muted: oklch(0.21 0.011 136.776);
  --muted-foreground: oklch(0.78 0.014 136.664);
  --popover: oklch(0.085 0.015 318.129);
  --popover-foreground: oklch(0.991 0.002 316.602);
  --card: oklch(0.085 0.015 318.129);
  --card-foreground: oklch(0.991 0.002 316.602);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.782 0.163 315.915);
  --primary-foreground: oklch(0.297 0.147 312.362);
  --secondary: oklch(0.924 0.155 137.288);
  --secondary-foreground: oklch(0.429 0.136 139.621);
  --accent: oklch(0.924 0.155 137.288);
  --accent-foreground: oklch(0.429 0.136 139.621);
  --destructive: oklch(0.62 0.23 31.779);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.782 0.163 315.915);
  --chart-1: oklch(0.782 0.163 315.915);
  --chart-2: oklch(0.924 0.155 137.288);
  --chart-3: oklch(0.924 0.155 137.288);
  --chart-4: oklch(0.933 0.134 137.15);
  --chart-5: oklch(0.781 0.168 315.887);
}