Adored for shadcn/ui

Adored is a shadcn/ui theme built around a vivid indigo primary color (#997efb) with vivid violet accents (#d87efb). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid indigo primary (#997efb) on an indigo-tinted background (#05030c).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#05030cblack
Foreground
#060212black
#f6f5fawhitesmoke
Card
#f9f8fcghostwhite
#070410black
Card foreground
#04020eblack
#f9f8fcghostwhite
Popover
#f9f8fcghostwhite
#070410black
Popover foreground
#04020eblack
#f9f8fcghostwhite
Primary
#997efbmediumpurple
#997efbmediumpurple
Primary foreground
#110245midnightblue
#110245midnightblue
Secondary
#7ea2fbcornflowerblue
#7ea2fbcornflowerblue
Secondary foreground
#021545midnightblue
#021545midnightblue
Muted
#d8dde9gainsboro
#161b27black
Muted foreground
#5e626edimgray
#9195a1lightslategray
Accent
#d87efbviolet
#d87efbviolet
Accent foreground
#320245midnightblue
#320245midnightblue
Destructive
#9e1205darkred
#f83220orangered
Destructive foreground
#fedbd7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#997efbmediumpurple
#997efbmediumpurple

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.49:1AAA
Primary button6.04:1AA
Secondary button7.05:1AAA
Muted text4.46:1AA Large
Accent6.75:1AA
Destructive6.41:1AA
Dark mode
Text on background18.85:1AAA
Text on card19.17:1AAA
Primary button6.04:1AA
Secondary button7.05:1AAA
Muted text5.76:1AA
Accent6.75:1AA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 296.29);
  --foreground: oklch(0.114 0.041 293.248);
  --muted: oklch(0.896 0.018 268.638);
  --muted-foreground: oklch(0.498 0.019 268.473);
  --popover: oklch(0.981 0.004 296.249);
  --popover-foreground: oklch(0.103 0.036 294.557);
  --card: oklch(0.981 0.004 296.249);
  --card-foreground: oklch(0.103 0.036 294.557);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.676 0.179 290.81);
  --primary-foreground: oklch(0.195 0.113 279.477);
  --secondary: oklch(0.723 0.136 266.671);
  --secondary-foreground: oklch(0.22 0.094 262.633);
  --accent: oklch(0.738 0.193 315.652);
  --accent-foreground: oklch(0.242 0.116 313.296);
  --destructive: oklch(0.447 0.174 30.194);
  --destructive-foreground: oklch(0.919 0.04 24.051);
  --ring: oklch(0.676 0.179 290.81);
  --chart-1: oklch(0.676 0.179 290.81);
  --chart-2: oklch(0.723 0.136 266.671);
  --chart-3: oklch(0.738 0.193 315.652);
  --chart-4: oklch(0.754 0.12 267.076);
  --chart-5: oklch(0.673 0.184 290.57);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.024 295.393);
  --foreground: oklch(0.972 0.007 296.207);
  --muted: oklch(0.222 0.026 267.604);
  --muted-foreground: oklch(0.671 0.018 268.583);
  --popover: oklch(0.124 0.028 294.423);
  --popover-foreground: oklch(0.981 0.004 296.249);
  --card: oklch(0.124 0.028 294.423);
  --card-foreground: oklch(0.981 0.004 296.249);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.676 0.179 290.81);
  --primary-foreground: oklch(0.195 0.113 279.477);
  --secondary: oklch(0.723 0.136 266.671);
  --secondary-foreground: oklch(0.22 0.094 262.633);
  --accent: oklch(0.738 0.193 315.652);
  --accent-foreground: oklch(0.242 0.116 313.296);
  --destructive: oklch(0.635 0.233 29.994);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.676 0.179 290.81);
  --chart-1: oklch(0.676 0.179 290.81);
  --chart-2: oklch(0.723 0.136 266.671);
  --chart-3: oklch(0.738 0.193 315.652);
  --chart-4: oklch(0.754 0.12 267.076);
  --chart-5: oklch(0.673 0.184 290.57);
}