Daring for shadcn/ui

Daring is a shadcn/ui theme built around a muted deep indigo primary color (#2a2a47) with neutral gray accents (#e4e4e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep indigo primary (#2a2a47) on an indigo-tinted background (#06060f).

Color palette

TokenLightDark
Background
#ffffffwhite
#06060fblack
Foreground
#030212black
#fcfcfdwhite
Card
#fcfcfcsnow
#070713black
Card foreground
#02020eblack
#ffffffwhite
Popover
#ffffffwhite
#06060fblack
Popover foreground
#030212black
#fcfcfdwhite
Primary
#2a2a47darkslategray
#2a2a47darkslategray
Primary foreground
#c6c5ddthistle
#c6c5ddthistle
Secondary
#e4e4e7gainsboro
#121216black
Secondary foreground
#484851darkslategray
#a6a5b6darkgray
Muted
#e7e7eelavender
#111118black
Muted foreground
#55546ddimgray
#9292abdarkgray
Accent
#e4e4e7gainsboro
#121216black
Accent foreground
#484851darkslategray
#a6a5b6darkgray
Destructive
#a22506firebrick
#e23408orangered
Destructive foreground
#fee3ddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2a2a47darkslategray
#2a2a47darkslategray

Contrast

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

Light mode
Text on background20.56:1AAA
Text on card20.19:1AAA
Primary button8.20:1AAA
Secondary button7.12:1AAA
Muted text5.94:1AA
Accent7.12:1AAA
Destructive6.12:1AA
Dark mode
Text on background19.72:1AAA
Text on card20.03:1AAA
Primary button8.20:1AAA
Secondary button7.69:1AAA
Muted text6.19:1AA
Accent7.69:1AAA
Destructive4.43:1AA Large

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.106 0.044 278.77);
  --muted: oklch(0.931 0.009 287.754);
  --muted-foreground: oklch(0.458 0.041 286.197);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.106 0.044 278.77);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.095 0.038 279.414);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.299 0.052 284.285);
  --primary-foreground: oklch(0.832 0.033 287.186);
  --secondary: oklch(0.92 0.004 287.857);
  --secondary-foreground: oklch(0.405 0.015 287.228);
  --accent: oklch(0.92 0.004 287.857);
  --accent-foreground: oklch(0.405 0.015 287.228);
  --destructive: oklch(0.468 0.165 33.659);
  --destructive-foreground: oklch(0.936 0.031 34.304);
  --ring: oklch(0.299 0.052 284.285);
  --chart-1: oklch(0.299 0.052 284.285);
  --chart-2: oklch(0.92 0.004 287.857);
  --chart-3: oklch(0.92 0.004 287.857);
  --chart-4: oklch(0.944 0.003 287.884);
  --chart-5: oklch(0.294 0.058 283.722);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.023 284.602);
  --foreground: oklch(0.991 0.002 287.903);
  --muted: oklch(0.181 0.014 286.422);
  --muted-foreground: oklch(0.668 0.037 286.88);
  --popover: oklch(0.126 0.023 284.602);
  --popover-foreground: oklch(0.991 0.002 287.903);
  --card: oklch(0.136 0.026 284.139);
  --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.299 0.052 284.285);
  --primary-foreground: oklch(0.832 0.033 287.186);
  --secondary: oklch(0.186 0.008 287.098);
  --secondary-foreground: oklch(0.728 0.023 287.335);
  --accent: oklch(0.186 0.008 287.098);
  --accent-foreground: oklch(0.728 0.023 287.335);
  --destructive: oklch(0.597 0.215 33.247);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.299 0.052 284.285);
  --chart-1: oklch(0.299 0.052 284.285);
  --chart-2: oklch(0.186 0.008 287.098);
  --chart-3: oklch(0.186 0.008 287.098);
  --chart-4: oklch(0.217 0.011 286.983);
  --chart-5: oklch(0.294 0.058 283.722);
}