Daring for shadcn/ui

Daring is a shadcn/ui theme built around a blue primary color (#a3c1d1) with muted light blue accents (#c4d2d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#a3c1d1) on a blue-tinted background (#050c10).

Color palette

TokenLightDark
Background
#ffffffwhite
#050c10black
Foreground
#030c11black
#f5f8fawhitesmoke
Card
#fcfcfcsnow
#060f14black
Card foreground
#03090dblack
#f8fafcghostwhite
Popover
#fcfcfcsnow
#060f14black
Popover foreground
#03090dblack
#f8fafcghostwhite
Primary
#a3c1d1lightsteelblue
#a3c1d1lightsteelblue
Primary foreground
#16242cdarkslategray
#16242cdarkslategray
Secondary
#dadfe2gainsboro
#222b30darkslategray
Secondary foreground
#3d474ddarkslategray
#b7c5ccsilver
Muted
#ebf1f4whitesmoke
#0b1114black
Muted foreground
#4c5052darkslategray
#adb1b3darkgray
Accent
#c4d2d9lightgrey
#293942darkslategray
Accent foreground
#2a3941darkslategray
#c3d2dalightgrey
Destructive
#6e1f07maroon
#d83d0eorangered
Destructive foreground
#fabfaelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a3c1d1lightsteelblue
#a3c1d1lightsteelblue

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.59:1AAA
Primary button8.39:1AAA
Secondary button7.08:1AAA
Muted text7.15:1AAA
Accent7.69:1AAA
Destructive7.03:1AAA
Dark mode
Text on background18.48:1AAA
Text on card18.50:1AAA
Primary button8.39:1AAA
Secondary button8.16:1AAA
Muted text8.81:1AAA
Accent7.68:1AAA
Destructive4.58:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.148 0.019 228.339);
  --muted: oklch(0.955 0.008 230.774);
  --muted-foreground: oklch(0.428 0.006 230.871);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.133 0.017 224.54);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.133 0.017 224.54);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.794 0.039 231.436);
  --primary-foreground: oklch(0.253 0.024 232.519);
  --secondary: oklch(0.901 0.007 230.763);
  --secondary-foreground: oklch(0.392 0.017 231.33);
  --accent: oklch(0.855 0.018 230.965);
  --accent-foreground: oklch(0.335 0.025 231.953);
  --destructive: oklch(0.364 0.116 36.123);
  --destructive-foreground: oklch(0.854 0.072 37.6);
  --ring: oklch(0.794 0.039 231.436);
  --chart-1: oklch(0.794 0.039 231.436);
  --chart-2: oklch(0.901 0.007 230.763);
  --chart-3: oklch(0.855 0.018 230.965);
  --chart-4: oklch(0.924 0.005 230.736);
  --chart-5: oklch(0.795 0.043 231.518);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.016 228.815);
  --foreground: oklch(0.978 0.005 230.726);
  --muted: oklch(0.172 0.012 231.839);
  --muted-foreground: oklch(0.757 0.006 230.761);
  --popover: oklch(0.161 0.018 231.114);
  --popover-foreground: oklch(0.985 0.003 230.703);
  --card: oklch(0.161 0.018 231.114);
  --card-foreground: oklch(0.985 0.003 230.703);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.794 0.039 231.436);
  --primary-foreground: oklch(0.253 0.024 232.519);
  --secondary: oklch(0.282 0.015 231.54);
  --secondary-foreground: oklch(0.815 0.018 230.976);
  --accent: oklch(0.335 0.026 232.026);
  --accent-foreground: oklch(0.855 0.019 230.979);
  --destructive: oklch(0.586 0.198 35.193);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.794 0.039 231.436);
  --chart-1: oklch(0.794 0.039 231.436);
  --chart-2: oklch(0.282 0.015 231.54);
  --chart-3: oklch(0.335 0.026 232.026);
  --chart-4: oklch(0.313 0.018 231.584);
  --chart-5: oklch(0.795 0.043 231.518);
}