Gracious for shadcn/ui

Gracious is a shadcn/ui theme built around a light pink primary color (#f2c0d5) with light blue accents (#c0d5f2). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the light pink primary (#f2c0d5) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8fasnow
#000000black
Foreground
#040102black
#fbf9fasnow
Card
#fbf4f7lavenderblush
#030303black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fcf8fasnow
#000000black
Popover foreground
#040102black
#fbf9fasnow
Primary
#f2c0d5pink
#f2c0d5pink
Primary foreground
#6a163abrown
#6a163abrown
Secondary
#d5f2c0palegoldenrod
#d5f2c0palegoldenrod
Secondary foreground
#0c1504black
#0c1504black
Muted
#e2e8degainsboro
#1b2117black
Muted foreground
#4c4e4bdarkslategray
#b2b4b1darkgray
Accent
#c0d5f2lightblue
#c0d5f2lightblue
Accent foreground
#163a6amidnightblue
#163a6amidnightblue
Destructive
#8f2e05saddlebrown
#f65009orangered
Destructive foreground
#fdd9c9bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2c0d5pink
#f2c0d5pink

Contrast

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

Light mode
Text on background19.70:1AAA
Text on card19.37:1AAA
Primary button7.40:1AAA
Secondary button15.38:1AAA
Muted text6.75:1AA
Accent7.61:1AAA
Destructive6.22:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.19:1AAA
Primary button7.40:1AAA
Secondary button15.38:1AAA
Muted text7.84:1AAA
Accent7.61:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 348.886);
  --foreground: oklch(0.085 0.015 348.418);
  --muted: oklch(0.924 0.016 131.233);
  --muted-foreground: oklch(0.421 0.005 131.198);
  --popover: oklch(0.982 0.005 348.886);
  --popover-foreground: oklch(0.085 0.015 348.418);
  --card: oklch(0.973 0.008 348.965);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.857 0.064 350.707);
  --primary-foreground: oklch(0.356 0.121 359.313);
  --secondary: oklch(0.928 0.073 131.812);
  --secondary-foreground: oklch(0.181 0.037 132.071);
  --accent: oklch(0.867 0.046 255.178);
  --accent-foreground: oklch(0.35 0.093 256.408);
  --destructive: oklch(0.442 0.138 38.996);
  --destructive-foreground: oklch(0.91 0.046 44.541);
  --ring: oklch(0.857 0.064 350.707);
  --chart-1: oklch(0.857 0.064 350.707);
  --chart-2: oklch(0.928 0.073 131.812);
  --chart-3: oklch(0.867 0.046 255.178);
  --chart-4: oklch(0.942 0.059 131.649);
  --chart-5: oklch(0.856 0.067 350.797);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.003 348.813);
  --muted: oklch(0.24 0.022 131.926);
  --muted-foreground: oklch(0.768 0.005 131.138);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.983 0.003 348.813);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 348.773);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.857 0.064 350.707);
  --primary-foreground: oklch(0.356 0.121 359.313);
  --secondary: oklch(0.928 0.073 131.812);
  --secondary-foreground: oklch(0.181 0.037 132.071);
  --accent: oklch(0.867 0.046 255.178);
  --accent-foreground: oklch(0.35 0.093 256.408);
  --destructive: oklch(0.656 0.212 37.878);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.857 0.064 350.707);
  --chart-1: oklch(0.857 0.064 350.707);
  --chart-2: oklch(0.928 0.073 131.812);
  --chart-3: oklch(0.867 0.046 255.178);
  --chart-4: oklch(0.942 0.059 131.649);
  --chart-5: oklch(0.856 0.067 350.797);
}