Joyous for shadcn/ui

Joyous is a shadcn/ui theme built around a light pink primary color (#e5cdd9) with light red accents (#e5cdcd). The light mode uses a neutral background (#fcf7fa). Dark mode keeps the light pink primary (#e5cdd9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf7fasnow
#000000black
Foreground
#080205black
#fbf9fasnow
Card
#fcf7fasnow
#000000black
Card foreground
#080205black
#fbf9fasnow
Popover
#fcf7fasnow
#000000black
Popover foreground
#080205black
#fbf9fasnow
Primary
#e5cdd9gainsboro
#e5cdd9gainsboro
Primary foreground
#542c40darkslategray
#542c40darkslategray
Secondary
#e5cde5gainsboro
#e5cde5gainsboro
Secondary foreground
#542c54darkslategray
#542c54darkslategray
Muted
#ebe0eblavender
#1f141fblack
Muted foreground
#433d43darkslategray
#c2bcc2silver
Accent
#e5cdcdlightgrey
#e5cdcdlightgrey
Accent foreground
#542c2cdarkslategray
#542c2cdarkslategray
Destructive
#e60f00red
#ff2e1forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5cdd9gainsboro
#e5cdd9gainsboro

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button7.75:1AAA
Secondary button7.59:1AAA
Muted text8.25:1AAA
Accent7.84:1AAA
Destructive4.75:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button7.75:1AAA
Secondary button7.59:1AAA
Muted text9.55:1AAA
Accent7.84:1AAA
Destructive3.71:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 345.313);
  --foreground: oklch(0.106 0.022 344.944);
  --muted: oklch(0.919 0.018 325.725);
  --muted-foreground: oklch(0.367 0.014 325.853);
  --popover: oklch(0.982 0.006 345.313);
  --popover-foreground: oklch(0.106 0.022 344.944);
  --card: oklch(0.982 0.006 345.313);
  --card-foreground: oklch(0.106 0.022 344.944);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.871 0.031 346.041);
  --primary-foreground: oklch(0.351 0.064 349.592);
  --secondary: oklch(0.875 0.041 325.923);
  --secondary-foreground: oklch(0.36 0.083 327.12);
  --accent: oklch(0.868 0.027 17.676);
  --accent-foreground: oklch(0.344 0.059 20.527);
  --destructive: oklch(0.583 0.235 29.859);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.871 0.031 346.041);
  --chart-1: oklch(0.871 0.031 346.041);
  --chart-2: oklch(0.875 0.041 325.923);
  --chart-3: oklch(0.868 0.027 17.676);
  --chart-4: oklch(0.9 0.033 325.845);
  --chart-5: oklch(0.87 0.034 346.128);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 345.188);
  --muted: oklch(0.211 0.026 326.462);
  --muted-foreground: oklch(0.802 0.011 325.682);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 345.188);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.002 345.188);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.871 0.031 346.041);
  --primary-foreground: oklch(0.351 0.064 349.592);
  --secondary: oklch(0.875 0.041 325.923);
  --secondary-foreground: oklch(0.36 0.083 327.12);
  --accent: oklch(0.868 0.027 17.676);
  --accent-foreground: oklch(0.344 0.059 20.527);
  --destructive: oklch(0.644 0.242 29.595);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.871 0.031 346.041);
  --chart-1: oklch(0.871 0.031 346.041);
  --chart-2: oklch(0.875 0.041 325.923);
  --chart-3: oklch(0.868 0.027 17.676);
  --chart-4: oklch(0.9 0.033 325.845);
  --chart-5: oklch(0.87 0.034 346.128);
}