Dazzling for shadcn/ui

Dazzling is a shadcn/ui theme built around a vivid light blue primary color (#aac3fd) with vivid light indigo accents (#bbaafd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light blue primary (#aac3fd) on a neutral background (#030407).

Color palette

TokenLightDark
Background
#ffffffwhite
#030407black
Foreground
#03060cblack
#f9fafbghostwhite
Card
#ffffffwhite
#030407black
Card foreground
#03060cblack
#f9fafbghostwhite
Popover
#ffffffwhite
#030407black
Popover foreground
#03060cblack
#f9fafbghostwhite
Primary
#aac3fdlightblue
#aac3fdlightblue
Primary foreground
#032472midnightblue
#032472midnightblue
Secondary
#aaecfdpaleturquoise
#aaecfdpaleturquoise
Secondary foreground
#000c0fblack
#000c0fblack
Muted
#d6e2e5gainsboro
#1a2629darkslategray
Muted foreground
#565f61dimgray
#9ea7a9darkgray
Accent
#bbaafdlightsteelblue
#bbaafdlightsteelblue
Accent foreground
#190372midnightblue
#190372midnightblue
Destructive
#cf3307firebrick
#f6400eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#aac3fdlightblue
#aac3fdlightblue

Contrast

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

Light mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button7.97:1AAA
Secondary button15.26:1AAA
Muted text4.96:1AA
Accent7.94:1AAA
Destructive5.10:1AA
Dark mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button7.97:1AAA
Secondary button15.26:1AAA
Muted text6.34:1AA
Accent7.94:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.121 0.016 260.054);
  --muted: oklch(0.906 0.014 214.364);
  --muted-foreground: oklch(0.479 0.012 214.406);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.121 0.016 260.054);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.121 0.016 260.054);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.82 0.086 266.513);
  --primary-foreground: oklch(0.302 0.139 262.805);
  --secondary: oklch(0.906 0.07 214.95);
  --secondary-foreground: oklch(0.142 0.024 210.58);
  --accent: oklch(0.784 0.116 292.685);
  --accent-foreground: oklch(0.266 0.164 274.815);
  --destructive: oklch(0.561 0.198 34.007);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.82 0.086 266.513);
  --chart-1: oklch(0.82 0.086 266.513);
  --chart-2: oklch(0.906 0.07 214.95);
  --chart-3: oklch(0.784 0.116 292.685);
  --chart-4: oklch(0.921 0.058 214.747);
  --chart-5: oklch(0.818 0.089 266.475);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.01 262.041);
  --foreground: oklch(0.984 0.001 267.413);
  --muted: oklch(0.257 0.018 214.831);
  --muted-foreground: oklch(0.72 0.011 214.362);
  --popover: oklch(0.109 0.01 262.041);
  --popover-foreground: oklch(0.984 0.001 267.413);
  --card: oklch(0.109 0.01 262.041);
  --card-foreground: oklch(0.984 0.001 267.413);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.82 0.086 266.513);
  --primary-foreground: oklch(0.302 0.139 262.805);
  --secondary: oklch(0.906 0.07 214.95);
  --secondary-foreground: oklch(0.142 0.024 210.58);
  --accent: oklch(0.784 0.116 292.685);
  --accent-foreground: oklch(0.266 0.164 274.815);
  --destructive: oklch(0.641 0.224 34.175);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.82 0.086 266.513);
  --chart-1: oklch(0.82 0.086 266.513);
  --chart-2: oklch(0.906 0.07 214.95);
  --chart-3: oklch(0.784 0.116 292.685);
  --chart-4: oklch(0.921 0.058 214.747);
  --chart-5: oklch(0.818 0.089 266.475);
}