Aim for shadcn/ui

Aim is a shadcn/ui theme built around a violet primary color (#512484) with purple accents (#812484). The light mode uses a neutral background (#faf8fc). Dark mode keeps the violet primary (#512484) on a neutral background (#050308).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#050308black
Foreground
#020104black
#faf9fbghostwhite
Card
#faf8fcghostwhite
#050308black
Card foreground
#020104black
#faf9fbghostwhite
Popover
#faf8fcghostwhite
#050308black
Popover foreground
#020104black
#faf9fbghostwhite
Primary
#512484darkslateblue
#512484darkslateblue
Primary foreground
#ece3f7lavender
#ece3f7lavender
Secondary
#242784midnightblue
#242784midnightblue
Secondary foreground
#e3e4f7lavender
#e3e4f7lavender
Muted
#e6e7f4lavender
#0b0b19black
Muted foreground
#4f4f59darkslategray
#a6a6b0darkgray
Accent
#812484purple
#812484purple
Accent foreground
#f7e3f7lavenderblush
#f7e3f7lavenderblush
Destructive
#cb4615chocolate
#e74f18chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#512484darkslateblue
#512484darkslateblue

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button8.71:1AAA
Secondary button9.80:1AAA
Muted text6.57:1AA
Accent6.85:1AA
Destructive4.74:1AA
Dark mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button8.71:1AAA
Secondary button9.80:1AAA
Muted text8.07:1AAA
Accent6.85:1AA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 307.047);
  --foreground: oklch(0.076 0.024 309.19);
  --muted: oklch(0.931 0.018 284.46);
  --muted-foreground: oklch(0.432 0.016 284.137);
  --popover: oklch(0.982 0.005 307.047);
  --popover-foreground: oklch(0.076 0.024 309.19);
  --card: oklch(0.982 0.005 307.047);
  --card-foreground: oklch(0.076 0.024 309.19);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.379 0.152 300.581);
  --primary-foreground: oklch(0.929 0.029 306.73);
  --secondary: oklch(0.341 0.151 273.469);
  --secondary-foreground: oklch(0.923 0.027 284.289);
  --accent: oklch(0.446 0.17 326.534);
  --accent-foreground: oklch(0.937 0.034 324.848);
  --destructive: oklch(0.575 0.178 37.803);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.379 0.152 300.581);
  --chart-1: oklch(0.379 0.152 300.581);
  --chart-2: oklch(0.341 0.151 273.469);
  --chart-3: oklch(0.446 0.17 326.534);
  --chart-4: oklch(0.361 0.162 273.275);
  --chart-5: oklch(0.377 0.158 300.075);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.019 308.301);
  --foreground: oklch(0.984 0.002 307.088);
  --muted: oklch(0.159 0.028 281.144);
  --muted-foreground: oklch(0.728 0.014 284.465);
  --popover: oklch(0.104 0.019 308.301);
  --popover-foreground: oklch(0.984 0.002 307.088);
  --card: oklch(0.104 0.019 308.301);
  --card-foreground: oklch(0.984 0.002 307.088);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.379 0.152 300.581);
  --primary-foreground: oklch(0.929 0.029 306.73);
  --secondary: oklch(0.341 0.151 273.469);
  --secondary-foreground: oklch(0.923 0.027 284.289);
  --accent: oklch(0.446 0.17 326.534);
  --accent-foreground: oklch(0.937 0.034 324.848);
  --destructive: oklch(0.631 0.197 37.671);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.379 0.152 300.581);
  --chart-1: oklch(0.379 0.152 300.581);
  --chart-2: oklch(0.341 0.151 273.469);
  --chart-3: oklch(0.446 0.17 326.534);
  --chart-4: oklch(0.361 0.162 273.275);
  --chart-5: oklch(0.377 0.158 300.075);
}