Devoted for shadcn/ui

Devoted is a shadcn/ui theme built around a vivid light pink primary color (#fb98cd) with vivid light red accents (#fb989b). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid light pink primary (#fb98cd) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#fefbfdsnow
#030203black
Foreground
#13060dblack
#fdfcfcsnow
Card
#fdf7fasnow
#070405black
Card foreground
#10050bblack
#ffffffwhite
Popover
#fdf7fasnow
#070405black
Popover foreground
#10050bblack
#ffffffwhite
Primary
#fb98cdlightpink
#fb98cdlightpink
Primary foreground
#5d0433maroon
#5d0433maroon
Secondary
#f798fbviolet
#f798fbviolet
Secondary foreground
#5a045dindigo
#5a045dindigo
Muted
#f4f0f4whitesmoke
#0f0b0fblack
Muted foreground
#585058dimgray
#afa7afdarkgray
Accent
#fb989blightsalmon
#fb989blightsalmon
Accent foreground
#5d0407maroon
#5d0407maroon
Destructive
#5c0a0amaroon
#eb4242tomato
Destructive foreground
#f5a3a3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fb98cdlightpink
#fb98cdlightpink

Contrast

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

Light mode
Text on background19.27:1AAA
Text on card18.93:1AAA
Primary button6.84:1AA
Secondary button6.74:1AA
Muted text6.90:1AA
Accent6.77:1AA
Destructive7.07:1AAA
Dark mode
Text on background20.24:1AAA
Text on card20.46:1AAA
Primary button6.84:1AA
Secondary button6.74:1AA
Muted text8.35:1AAA
Accent6.77:1AA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 343.536);
  --foreground: oklch(0.149 0.029 346.852);
  --muted: oklch(0.96 0.006 324.661);
  --muted-foreground: oklch(0.442 0.017 324.861);
  --popover: oklch(0.982 0.007 343.629);
  --popover-foreground: oklch(0.136 0.025 345.349);
  --card: oklch(0.982 0.007 343.629);
  --card-foreground: oklch(0.136 0.025 345.349);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.797 0.133 347.328);
  --primary-foreground: oklch(0.315 0.124 356.063);
  --secondary: oklch(0.81 0.167 325.802);
  --secondary-foreground: oklch(0.333 0.15 326.661);
  --accent: oklch(0.783 0.118 17.983);
  --accent-foreground: oklch(0.304 0.12 26.996);
  --destructive: oklch(0.307 0.114 27.313);
  --destructive-foreground: oklch(0.796 0.099 19.478);
  --ring: oklch(0.797 0.133 347.328);
  --chart-1: oklch(0.797 0.133 347.328);
  --chart-2: oklch(0.81 0.167 325.802);
  --chart-3: oklch(0.783 0.118 17.983);
  --chart-4: oklch(0.835 0.144 325.626);
  --chart-5: oklch(0.796 0.137 347.455);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.009 343.398);
  --foreground: oklch(0.992 0.001 343.464);
  --muted: oklch(0.155 0.01 325.021);
  --muted-foreground: oklch(0.737 0.015 324.748);
  --popover: oklch(0.111 0.011 343.398);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.111 0.011 343.398);
  --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.797 0.133 347.328);
  --primary-foreground: oklch(0.315 0.124 356.063);
  --secondary: oklch(0.81 0.167 325.802);
  --secondary-foreground: oklch(0.333 0.15 326.661);
  --accent: oklch(0.783 0.118 17.983);
  --accent-foreground: oklch(0.304 0.12 26.996);
  --destructive: oklch(0.628 0.206 25.412);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.797 0.133 347.328);
  --chart-1: oklch(0.797 0.133 347.328);
  --chart-2: oklch(0.81 0.167 325.802);
  --chart-3: oklch(0.783 0.118 17.983);
  --chart-4: oklch(0.835 0.144 325.626);
  --chart-5: oklch(0.796 0.137 347.455);
}