Dazzling for shadcn/ui

Dazzling is a shadcn/ui theme built around a deep orange primary color (#653410) with deep blue accents (#104265). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the deep orange primary (#653410) on a neutral background (#070503).

Color palette

TokenLightDark
Background
#fcfaf8snow
#070503black
Foreground
#160b03black
#ffffffwhite
Card
#fbf7f4whitesmoke
#0b0705black
Card foreground
#120903black
#ffffffwhite
Popover
#fbf7f4whitesmoke
#0b0705black
Popover foreground
#120903black
#ffffffwhite
Primary
#653410saddlebrown
#653410saddlebrown
Primary foreground
#f3ceb4wheat
#f3ceb4wheat
Secondary
#104265darkslategray
#104265darkslategray
Secondary foreground
#b4d9f3lightblue
#b4d9f3lightblue
Muted
#d5dfe7gainsboro
#18232ablack
Muted foreground
#3c4044darkslategray
#bbc0c3silver
Accent
#104265darkslategray
#104265darkslategray
Accent foreground
#b4d9f3lightblue
#b4d9f3lightblue
Destructive
#c24a0achocolate
#f36012orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#653410saddlebrown
#653410saddlebrown

Contrast

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

Light mode
Text on background18.56:1AAA
Text on card18.45:1AAA
Primary button6.97:1AA
Secondary button7.13:1AAA
Muted text7.75:1AAA
Accent7.13:1AAA
Destructive4.90:1AA
Dark mode
Text on background20.36:1AAA
Text on card20.06:1AAA
Primary button6.97:1AA
Secondary button7.13:1AAA
Muted text8.73:1AAA
Accent7.13:1AAA
Destructive6.48:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.004 58.311);
  --foreground: oklch(0.163 0.026 61.426);
  --muted: oklch(0.899 0.015 238.604);
  --muted-foreground: oklch(0.37 0.008 238.678);
  --popover: oklch(0.978 0.006 58.284);
  --popover-foreground: oklch(0.15 0.023 65.112);
  --card: oklch(0.978 0.006 58.284);
  --card-foreground: oklch(0.15 0.023 65.112);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.382 0.086 51.993);
  --primary-foreground: oklch(0.877 0.055 57.473);
  --secondary: oklch(0.365 0.08 244.728);
  --secondary-foreground: oklch(0.867 0.054 239.32);
  --accent: oklch(0.365 0.08 244.728);
  --accent-foreground: oklch(0.867 0.054 239.32);
  --destructive: oklch(0.565 0.166 42.053);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.382 0.086 51.993);
  --chart-1: oklch(0.382 0.086 51.993);
  --chart-2: oklch(0.365 0.08 244.728);
  --chart-3: oklch(0.365 0.08 244.728);
  --chart-4: oklch(0.396 0.088 244.951);
  --chart-5: oklch(0.384 0.088 51.508);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.009 64.196);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.248 0.021 239.717);
  --muted-foreground: oklch(0.805 0.007 238.48);
  --popover: oklch(0.133 0.01 64.113);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.133 0.01 64.113);
  --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.382 0.086 51.993);
  --primary-foreground: oklch(0.877 0.055 57.473);
  --secondary: oklch(0.365 0.08 244.728);
  --secondary-foreground: oklch(0.867 0.054 239.32);
  --accent: oklch(0.365 0.08 244.728);
  --accent-foreground: oklch(0.867 0.054 239.32);
  --destructive: oklch(0.67 0.195 42.275);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.382 0.086 51.993);
  --chart-1: oklch(0.382 0.086 51.993);
  --chart-2: oklch(0.365 0.08 244.728);
  --chart-3: oklch(0.365 0.08 244.728);
  --chart-4: oklch(0.396 0.088 244.951);
  --chart-5: oklch(0.384 0.088 51.508);
}