Daring for shadcn/ui

Daring is a shadcn/ui theme built around a vivid deep violet primary color (#430094) with vivid deep purple accents (#8d0094). The light mode uses a neutral background (#fcfbfd). Dark mode keeps the vivid deep violet primary (#430094) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfbfdsnow
#000000black
Foreground
#020104black
#ffffffwhite
Card
#fcfbfdsnow
#000000black
Card foreground
#020104black
#ffffffwhite
Popover
#fcfbfdsnow
#000000black
Popover foreground
#020104black
#ffffffwhite
Primary
#430094indigo
#430094indigo
Primary foreground
#e0c7fflavender
#e0c7fflavender
Secondary
#000794darkblue
#000794darkblue
Secondary foreground
#c7cafflightblue
#c7cafflightblue
Muted
#dddee9gainsboro
#161722black
Muted foreground
#4a4b54darkslategray
#abacb5darkgray
Accent
#8d0094darkmagenta
#8d0094darkmagenta
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b1190bfirebrick
#f12f1eorangered
Destructive foreground
#fef2f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#430094indigo
#430094indigo

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button8.29:1AAA
Secondary button9.12:1AAA
Muted text6.47:1AA
Accent8.23:1AAA
Destructive6.34:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.29:1AAA
Secondary button9.12:1AAA
Muted text7.87:1AAA
Accent8.23:1AAA
Destructive4.07:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 306.393);
  --foreground: oklch(0.076 0.024 308.359);
  --muted: oklch(0.903 0.014 283.691);
  --muted-foreground: oklch(0.415 0.015 283.329);
  --popover: oklch(0.991 0.003 306.393);
  --popover-foreground: oklch(0.076 0.024 308.359);
  --card: oklch(0.991 0.003 306.393);
  --card-foreground: oklch(0.076 0.024 308.359);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.348 0.195 291.26);
  --primary-foreground: oklch(0.869 0.081 305.236);
  --secondary: oklch(0.306 0.205 264.158);
  --secondary-foreground: oklch(0.854 0.074 282.348);
  --accent: oklch(0.455 0.212 325.682);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.488 0.187 30.092);
  --destructive-foreground: oklch(0.97 0.013 23.719);
  --ring: oklch(0.348 0.195 291.26);
  --chart-1: oklch(0.348 0.195 291.26);
  --chart-2: oklch(0.306 0.205 264.158);
  --chart-3: oklch(0.455 0.212 325.682);
  --chart-4: oklch(0.329 0.221 264.149);
  --chart-5: oklch(0.349 0.198 290.67);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.209 0.021 282.063);
  --muted-foreground: oklch(0.746 0.013 283.67);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.348 0.195 291.26);
  --primary-foreground: oklch(0.869 0.081 305.236);
  --secondary: oklch(0.306 0.205 264.158);
  --secondary-foreground: oklch(0.854 0.074 282.348);
  --accent: oklch(0.455 0.212 325.682);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.619 0.229 30.014);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.348 0.195 291.26);
  --chart-1: oklch(0.348 0.195 291.26);
  --chart-2: oklch(0.306 0.205 264.158);
  --chart-3: oklch(0.455 0.212 325.682);
  --chart-4: oklch(0.329 0.221 264.149);
  --chart-5: oklch(0.349 0.198 290.67);
}