Appearance for shadcn/ui

Appearance is a shadcn/ui theme built around a light pink primary color (#f9ebf2) with light red accents (#f9ebeb). The light mode uses a neutral background (#fefbfc). Dark mode keeps the light pink primary (#f9ebf2) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfcsnow
#000000black
Foreground
#0c0308black
#ffffffwhite
Card
#fefbfcsnow
#000000black
Card foreground
#0c0308black
#ffffffwhite
Popover
#fefbfcsnow
#000000black
Popover foreground
#0c0308black
#ffffffwhite
Primary
#f9ebf2lavenderblush
#f9ebf2lavenderblush
Primary foreground
#8a2858brown
#8a2858brown
Secondary
#f9ebf9lavenderblush
#f9ebf9lavenderblush
Secondary foreground
#8a2889darkmagenta
#8a2889darkmagenta
Muted
#efdceflavender
#231023black
Muted foreground
#4d4c4ddarkslategray
#b3b2b3darkgray
Accent
#f9ebeblinen
#f9ebeblinen
Accent foreground
#8a2a28brown
#8a2a28brown
Destructive
#a13612saddlebrown
#e14b19chocolate
Destructive foreground
#fcede8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9ebf2lavenderblush
#f9ebf2lavenderblush

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button7.21:1AAA
Secondary button6.67:1AA
Muted text6.57:1AA
Accent7.44:1AAA
Destructive6.06:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.21:1AAA
Secondary button6.67:1AA
Muted text8.49:1AAA
Accent7.44:1AAA
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 346.124);
  --foreground: oklch(0.122 0.024 346.093);
  --muted: oklch(0.915 0.032 326.333);
  --muted-foreground: oklch(0.418 0.003 326.115);
  --popover: oklch(0.991 0.004 346.124);
  --popover-foreground: oklch(0.122 0.024 346.093);
  --card: oklch(0.991 0.004 346.124);
  --card-foreground: oklch(0.122 0.024 346.093);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.954 0.018 346.5);
  --primary-foreground: oklch(0.443 0.14 354.714);
  --secondary: oklch(0.956 0.024 326.251);
  --secondary-foreground: oklch(0.467 0.173 328.624);
  --accent: oklch(0.952 0.015 18.605);
  --accent-foreground: oklch(0.432 0.131 25.348);
  --destructive: oklch(0.483 0.149 37.176);
  --destructive-foreground: oklch(0.957 0.018 39.398);
  --ring: oklch(0.954 0.018 346.5);
  --chart-1: oklch(0.954 0.018 346.5);
  --chart-2: oklch(0.956 0.024 326.251);
  --chart-3: oklch(0.952 0.015 18.605);
  --chart-4: oklch(0.982 0.009 326.131);
  --chart-5: oklch(0.953 0.018 346.526);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.209 0.045 327.624);
  --muted-foreground: oklch(0.764 0.003 326.082);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.954 0.018 346.5);
  --primary-foreground: oklch(0.443 0.14 354.714);
  --secondary: oklch(0.956 0.024 326.251);
  --secondary-foreground: oklch(0.467 0.173 328.624);
  --accent: oklch(0.952 0.015 18.605);
  --accent-foreground: oklch(0.432 0.131 25.348);
  --destructive: oklch(0.617 0.195 36.85);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.954 0.018 346.5);
  --chart-1: oklch(0.954 0.018 346.5);
  --chart-2: oklch(0.956 0.024 326.251);
  --chart-3: oklch(0.952 0.015 18.605);
  --chart-4: oklch(0.982 0.009 326.131);
  --chart-5: oklch(0.953 0.018 346.526);
}