blueAE for shadcn/ui

blueAE is a shadcn/ui theme built around an indigo primary color (#3a3795) with green accents (#37953a). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#3a3795) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040410black
#f9f9fbghostwhite
Card
#ffffffwhite
#000000black
Card foreground
#040410black
#f9f9fbghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#040410black
#f9f9fbghostwhite
Primary
#3a3795darkslateblue
#3a3795darkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#953a37brown
#953a37brown
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#efebeblinen
#141010black
Muted foreground
#655353dimgray
#ac9b9adarkgray
Accent
#37953aseagreen
#37953aseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a42a04firebrick
#fa6538tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3a3795darkslateblue
#3a3795darkslateblue

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card20.38:1AAA
Primary button9.71:1AAA
Secondary button7.14:1AAA
Muted text6.10:1AA
Accent3.80:1AA Large
Destructive7.22:1AAA
Dark mode
Text on background19.97:1AAA
Text on card19.97:1AAA
Primary button9.71:1AAA
Secondary button7.14:1AAA
Muted text7.11:1AAA
Accent3.80:1AA Large
Destructive6.99:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.118 0.031 282.67);
  --muted: oklch(0.944 0.004 19.661);
  --muted-foreground: oklch(0.461 0.024 20.377);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.118 0.031 282.67);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.118 0.031 282.67);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.4 0.149 278.709);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.474 0.123 24.9);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.594 0.156 143.816);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.475 0.164 34.95);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.4 0.149 278.709);
  --chart-1: oklch(0.4 0.149 278.709);
  --chart-2: oklch(0.474 0.123 24.9);
  --chart-3: oklch(0.594 0.156 143.816);
  --chart-4: oklch(0.499 0.131 24.956);
  --chart-5: oklch(0.395 0.158 277.803);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.003 287.891);
  --muted: oklch(0.178 0.006 20.078);
  --muted-foreground: oklch(0.704 0.021 20.039);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.003 287.891);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.983 0.003 287.891);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.4 0.149 278.709);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.474 0.123 24.9);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.594 0.156 143.816);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.69 0.192 37.122);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.4 0.149 278.709);
  --chart-1: oklch(0.4 0.149 278.709);
  --chart-2: oklch(0.474 0.123 24.9);
  --chart-3: oklch(0.594 0.156 143.816);
  --chart-4: oklch(0.499 0.131 24.956);
  --chart-5: oklch(0.395 0.158 277.803);
}