Charm for shadcn/ui

Charm is a shadcn/ui theme built around a vivid deep teal primary color (#057b7f) with vivid deep yellow accents (#7b7f05). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep teal primary (#057b7f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#010404black
#f5f9f9whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#010404black
#f5f9f9whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#010404black
#f5f9f9whitesmoke
Primary
#057b7fteal
#057b7fteal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7f057bpurple
#7f057bpurple
Secondary foreground
#fcbafapink
#fcbafapink
Muted
#f1eef1whitesmoke
#110e10black
Muted foreground
#6a4e69dimgray
#b195b0darkgray
Accent
#7b7f05olive
#7b7f05olive
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b03207firebrick
#f76636tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#057b7fteal
#057b7fteal

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button5.04:1AA
Secondary button6.10:1AA
Muted text6.29:1AA
Accent4.28:1AA Large
Destructive6.35:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button5.04:1AA
Secondary button6.10:1AA
Muted text7.12:1AAA
Accent4.28:1AA Large
Destructive6.90:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.099 0.011 197.679);
  --muted: oklch(0.953 0.004 326.578);
  --muted-foreground: oklch(0.463 0.055 327.506);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.099 0.011 197.679);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.099 0.011 197.679);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.531 0.089 198.911);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.419 0.187 330.014);
  --secondary-foreground: oklch(0.87 0.111 327.58);
  --accent: oklch(0.575 0.126 111.996);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.506 0.169 35.847);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.531 0.089 198.911);
  --chart-1: oklch(0.531 0.089 198.911);
  --chart-2: oklch(0.419 0.187 330.014);
  --chart-3: oklch(0.575 0.126 111.996);
  --chart-4: oklch(0.453 0.203 330.035);
  --chart-5: oklch(0.536 0.091 198.962);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.004 199.544);
  --muted: oklch(0.168 0.006 326.859);
  --muted-foreground: oklch(0.704 0.049 327.128);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.98 0.004 199.544);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.98 0.004 199.544);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.531 0.089 198.911);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.419 0.187 330.014);
  --secondary-foreground: oklch(0.87 0.111 327.58);
  --accent: oklch(0.575 0.126 111.996);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.686 0.188 38.19);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.531 0.089 198.911);
  --chart-1: oklch(0.531 0.089 198.911);
  --chart-2: oklch(0.419 0.187 330.014);
  --chart-3: oklch(0.575 0.126 111.996);
  --chart-4: oklch(0.453 0.203 330.035);
  --chart-5: oklch(0.536 0.091 198.962);
}