Charming for shadcn/ui

Charming is a shadcn/ui theme built around a vivid red primary color (#ee636a) with vivid teal accents (#63eee7). The light mode uses a neutral background (#fdf6f7). Dark mode keeps the vivid red primary (#ee636a) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fdf6f7snow
#040101black
Foreground
#000000black
#fdfcfcsnow
Card
#fcf2f3lavenderblush
#070303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcf2f3lavenderblush
#070303black
Popover foreground
#000000black
#ffffffwhite
Primary
#ee636asalmon
#ee636asalmon
Primary foreground
#1c0304black
#1c0304black
Secondary
#63eee7aquamarine
#63eee7aquamarine
Secondary foreground
#031c1ablack
#031c1ablack
Muted
#d3e3e2gainsboro
#1c2c2bdarkslategray
Muted foreground
#5e6e6ddimgray
#91a1a0darkgray
Accent
#63eee7aquamarine
#63eee7aquamarine
Accent foreground
#031c1ablack
#031c1ablack
Destructive
#e25103orangered
#fc752ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ee636asalmon
#ee636asalmon

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.17:1AAA
Primary button6.21:1AA
Secondary button12.55:1AAA
Muted text4.04:1AA Large
Accent12.55:1AAA
Destructive3.87:1AA Large
Dark mode
Text on background20.27:1AAA
Text on card20.53:1AAA
Primary button6.21:1AA
Secondary button12.55:1AAA
Muted text5.43:1AA
Accent12.55:1AAA
Destructive7.69:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 13.756);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.904 0.017 193.24);
  --muted-foreground: oklch(0.525 0.02 192.87);
  --popover: oklch(0.97 0.011 13.834);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.97 0.011 13.834);
  --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.676 0.172 19.924);
  --primary-foreground: oklch(0.153 0.047 20.226);
  --secondary: oklch(0.871 0.12 190.609);
  --secondary-foreground: oklch(0.205 0.031 190.534);
  --accent: oklch(0.871 0.12 190.609);
  --accent-foreground: oklch(0.205 0.031 190.534);
  --destructive: oklch(0.625 0.193 40.586);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.676 0.172 19.924);
  --chart-1: oklch(0.676 0.172 19.924);
  --chart-2: oklch(0.871 0.12 190.609);
  --chart-3: oklch(0.871 0.12 190.609);
  --chart-4: oklch(0.879 0.113 190.883);
  --chart-5: oklch(0.676 0.177 20.23);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.011 15.361);
  --foreground: oklch(0.992 0.001 13.62);
  --muted: oklch(0.277 0.021 192.093);
  --muted-foreground: oklch(0.696 0.019 193.083);
  --popover: oklch(0.106 0.014 15.361);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.106 0.014 15.361);
  --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.676 0.172 19.924);
  --primary-foreground: oklch(0.153 0.047 20.226);
  --secondary: oklch(0.871 0.12 190.609);
  --secondary-foreground: oklch(0.205 0.031 190.534);
  --accent: oklch(0.871 0.12 190.609);
  --accent-foreground: oklch(0.205 0.031 190.534);
  --destructive: oklch(0.712 0.184 44.948);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.676 0.172 19.924);
  --chart-1: oklch(0.676 0.172 19.924);
  --chart-2: oklch(0.871 0.12 190.609);
  --chart-3: oklch(0.871 0.12 190.609);
  --chart-4: oklch(0.879 0.113 190.883);
  --chart-5: oklch(0.676 0.177 20.23);
}