Daring for shadcn/ui

Daring is a shadcn/ui theme built around a light red primary color (#eccbcd) with light teal accents (#cbece9). The light mode uses a neutral background (#fdfbfc). Dark mode keeps the light red primary (#eccbcd) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#fdfbfcsnow
#030202black
Foreground
#080202black
#f8f7f7whitesmoke
Card
#fdfbfcsnow
#030202black
Card foreground
#080202black
#f8f7f7whitesmoke
Popover
#fdfbfcsnow
#030202black
Popover foreground
#080202black
#f8f7f7whitesmoke
Primary
#eccbcdpink
#eccbcdpink
Primary foreground
#612328saddlebrown
#612328saddlebrown
Secondary
#cbece9gainsboro
#cbece9gainsboro
Secondary foreground
#081615black
#081615black
Muted
#cee9e6gainsboro
#16312fdarkslategray
Muted foreground
#595f5edimgray
#a0a6a5darkgray
Accent
#cbece9gainsboro
#cbece9gainsboro
Accent foreground
#081615black
#081615black
Destructive
#7a2a06saddlebrown
#e5500borangered
Destructive foreground
#fcccb6peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eccbcdpink
#eccbcdpink

Contrast

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

Light mode
Text on background20.05:1AAA
Text on card20.05:1AAA
Primary button7.84:1AAA
Secondary button14.71:1AAA
Muted text5.07:1AA
Accent14.71:1AAA
Destructive6.67:1AA
Dark mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button7.84:1AAA
Secondary button14.71:1AAA
Muted text5.61:1AA
Accent14.71:1AAA
Destructive3.83: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.002 11.297);
  --foreground: oklch(0.102 0.022 13.483);
  --muted: oklch(0.913 0.028 190.575);
  --muted-foreground: oklch(0.479 0.007 190.931);
  --popover: oklch(0.991 0.002 11.297);
  --popover-foreground: oklch(0.102 0.022 13.483);
  --card: oklch(0.991 0.002 11.297);
  --card-foreground: oklch(0.102 0.022 13.483);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.87 0.038 12.21);
  --primary-foreground: oklch(0.351 0.091 18.077);
  --secondary: oklch(0.918 0.035 190.403);
  --secondary-foreground: oklch(0.189 0.02 188.741);
  --accent: oklch(0.918 0.035 190.403);
  --accent-foreground: oklch(0.189 0.02 188.741);
  --destructive: oklch(0.4 0.119 40.721);
  --destructive-foreground: oklch(0.881 0.062 46.188);
  --ring: oklch(0.87 0.038 12.21);
  --chart-1: oklch(0.87 0.038 12.21);
  --chart-2: oklch(0.918 0.035 190.403);
  --chart-3: oklch(0.918 0.035 190.403);
  --chart-4: oklch(0.936 0.028 190.596);
  --chart-5: oklch(0.868 0.041 12.276);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.009 12.194);
  --foreground: oklch(0.976 0.002 11.287);
  --muted: oklch(0.291 0.033 188.533);
  --muted-foreground: oklch(0.72 0.006 191.058);
  --popover: oklch(0.086 0.009 12.194);
  --popover-foreground: oklch(0.976 0.002 11.287);
  --card: oklch(0.086 0.009 12.194);
  --card-foreground: oklch(0.976 0.002 11.287);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.87 0.038 12.21);
  --primary-foreground: oklch(0.351 0.091 18.077);
  --secondary: oklch(0.918 0.035 190.403);
  --secondary-foreground: oklch(0.189 0.02 188.741);
  --accent: oklch(0.918 0.035 190.403);
  --accent-foreground: oklch(0.189 0.02 188.741);
  --destructive: oklch(0.628 0.196 39.316);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.87 0.038 12.21);
  --chart-1: oklch(0.87 0.038 12.21);
  --chart-2: oklch(0.918 0.035 190.403);
  --chart-3: oklch(0.918 0.035 190.403);
  --chart-4: oklch(0.936 0.028 190.596);
  --chart-5: oklch(0.868 0.041 12.276);
}