Structural Bright Indigo for shadcn/ui

Structural Bright Indigo is a shadcn/ui theme built around a vivid violet primary color (#740aff) with vivid green accents (#95ff0a). The light mode uses a neutral background (#fcfbfd). Dark mode keeps the vivid violet primary (#740aff) on a violet-tinted background (#0a060f).

Color palette

TokenLightDark
Background
#fcfbfdsnow
#0a060fblack
Foreground
#000000black
#f7f5fawhitesmoke
Card
#faf8fcghostwhite
#0c0712black
Card foreground
#000000black
#faf8fbghostwhite
Popover
#faf8fcghostwhite
#0c0712black
Popover foreground
#000000black
#faf8fbghostwhite
Primary
#740affblueviolet
#740affblueviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#95ff0achartreuse
#95ff0achartreuse
Secondary foreground
#233d00darkgreen
#233d00darkgreen
Muted
#f0f2edwhitesmoke
#10120dblack
Muted foreground
#52584bdarkolivegreen
#aeb4a7darkgray
Accent
#95ff0achartreuse
#95ff0achartreuse
Accent foreground
#233d00darkgreen
#233d00darkgreen
Destructive
#650b06maroon
#f23026crimson
Destructive foreground
#faa8a3lightpink
#ffffffwhite
Border
#e8e5eblavender
#231e29black
Input
#e8e5eblavender
#231e29black
Ring
#740affblueviolet
#740affblueviolet

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card19.87:1AAA
Primary button6.49:1AA
Secondary button9.53:1AAA
Muted text6.53:1AA
Accent9.53:1AAA
Destructive6.97:1AA
Dark mode
Text on background18.58:1AAA
Text on card18.83:1AAA
Primary button6.49:1AA
Secondary button9.53:1AAA
Muted text8.88:1AAA
Accent9.53:1AAA
Destructive4.00:1AA Large

CSS variables

Paste this into your globals.css to use Structural Bright Indigo in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 305.703);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.959 0.007 125.841);
  --muted-foreground: oklch(0.452 0.022 126.4);
  --popover: oklch(0.981 0.005 305.666);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.005 305.666);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.925 0.01 305.599);
  --input: oklch(0.925 0.01 305.599);
  --primary: oklch(0.52 0.291 289.902);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.9 0.254 133.279);
  --secondary-foreground: oklch(0.327 0.09 131.495);
  --accent: oklch(0.9 0.254 133.279);
  --accent-foreground: oklch(0.327 0.09 131.495);
  --destructive: oklch(0.326 0.123 29.334);
  --destructive-foreground: oklch(0.809 0.098 22.766);
  --ring: oklch(0.52 0.291 289.902);
  --chart-1: oklch(0.52 0.291 289.902);
  --chart-2: oklch(0.9 0.254 133.279);
  --chart-3: oklch(0.9 0.254 133.279);
  --chart-4: oklch(0.903 0.248 132.484);
  --chart-5: oklch(0.523 0.295 289.231);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.022 305.364);
  --foreground: oklch(0.973 0.006 305.655);
  --muted: oklch(0.177 0.011 126.591);
  --muted-foreground: oklch(0.761 0.019 126.081);
  --popover: oklch(0.143 0.026 303.926);
  --popover-foreground: oklch(0.982 0.004 305.684);
  --card: oklch(0.143 0.026 303.926);
  --card-foreground: oklch(0.982 0.004 305.684);
  --border: oklch(0.247 0.021 304.599);
  --input: oklch(0.247 0.021 304.599);
  --primary: oklch(0.52 0.291 289.902);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.9 0.254 133.279);
  --secondary-foreground: oklch(0.327 0.09 131.495);
  --accent: oklch(0.9 0.254 133.279);
  --accent-foreground: oklch(0.327 0.09 131.495);
  --destructive: oklch(0.624 0.229 28.863);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.52 0.291 289.902);
  --chart-1: oklch(0.52 0.291 289.902);
  --chart-2: oklch(0.9 0.254 133.279);
  --chart-3: oklch(0.9 0.254 133.279);
  --chart-4: oklch(0.903 0.248 132.484);
  --chart-5: oklch(0.523 0.295 289.231);
}