Dizzy for shadcn/ui

Dizzy is a shadcn/ui theme built around a vivid blue primary color (#0f67f5) with vivid indigo accents (#2a0ff5). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the vivid blue primary (#0f67f5) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#f7f9fdghostwhite
#030507black
Foreground
#010204black
#fcfcfdwhite
Card
#f2f6fcaliceblue
#05070ablack
Card foreground
#000000black
#ffffffwhite
Popover
#f7f9fdghostwhite
#030507black
Popover foreground
#010204black
#fcfcfdwhite
Primary
#0f67f5dodgerblue
#0f67f5dodgerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#0fdaf5deepskyblue
#0fdaf5deepskyblue
Secondary foreground
#023036darkslategray
#023036darkslategray
Muted
#eff4f5whitesmoke
#0a0f10black
Muted foreground
#4e5455darkslategray
#aab0b1darkgray
Accent
#2a0ff5blue
#2a0ff5blue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#821403maroon
#fa3314orangered
Destructive foreground
#fec2b9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0f67f5dodgerblue
#0f67f5dodgerblue

Contrast

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

Light mode
Text on background19.69:1AAA
Text on card19.40:1AAA
Primary button4.89:1AA
Secondary button8.37:1AAA
Muted text6.97:1AA
Accent8.44:1AAA
Destructive6.65:1AA
Dark mode
Text on background19.93:1AAA
Text on card20.16:1AAA
Primary button4.89:1AA
Secondary button8.37:1AAA
Muted text8.77:1AAA
Accent8.44:1AAA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 259.941);
  --foreground: oklch(0.084 0.014 248.86);
  --muted: oklch(0.965 0.006 206.406);
  --muted-foreground: oklch(0.441 0.008 206.347);
  --popover: oklch(0.982 0.006 259.941);
  --popover-foreground: oklch(0.084 0.014 248.86);
  --card: oklch(0.973 0.009 259.943);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.559 0.226 260.697);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.815 0.14 210.543);
  --secondary-foreground: oklch(0.283 0.047 208.471);
  --accent: oklch(0.454 0.293 269.143);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.391 0.147 31.699);
  --destructive-foreground: oklch(0.866 0.07 28.562);
  --ring: oklch(0.559 0.226 260.697);
  --chart-1: oklch(0.559 0.226 260.697);
  --chart-2: oklch(0.815 0.14 210.543);
  --chart-3: oklch(0.454 0.293 269.143);
  --chart-4: oklch(0.822 0.138 209.713);
  --chart-5: oklch(0.56 0.232 260.881);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.009 254.776);
  --foreground: oklch(0.992 0.001 259.935);
  --muted: oklch(0.163 0.008 206.258);
  --muted-foreground: oklch(0.753 0.007 206.389);
  --popover: oklch(0.111 0.009 254.776);
  --popover-foreground: oklch(0.992 0.001 259.935);
  --card: oklch(0.127 0.01 254.798);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.559 0.226 260.697);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.815 0.14 210.543);
  --secondary-foreground: oklch(0.283 0.047 208.471);
  --accent: oklch(0.454 0.293 269.143);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.638 0.236 31.425);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.559 0.226 260.697);
  --chart-1: oklch(0.559 0.226 260.697);
  --chart-2: oklch(0.815 0.14 210.543);
  --chart-3: oklch(0.454 0.293 269.143);
  --chart-4: oklch(0.822 0.138 209.713);
  --chart-5: oklch(0.56 0.232 260.881);
}