1 for shadcn/ui

1 is a shadcn/ui theme built around a muted light red primary color (#dececf) with muted light red accents (#d8c5c6). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the muted light red primary (#dececf) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7f7snow
#000000black
Foreground
#040101black
#ffffffwhite
Card
#fcf3f3lavenderblush
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcf3f3lavenderblush
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#dececflightgrey
#dececflightgrey
Primary foreground
#493132darkslategray
#493132darkslategray
Secondary
#d8c5c6thistle
#312f30darkslategray
Secondary foreground
#402b2cdarkslategray
#cbc8c8silver
Muted
#f2e3e4mistyrose
#1c0d0eblack
Muted foreground
#5d4647darkolivegreen
#b9a2a3darkgray
Accent
#d8c5c6thistle
#312f30darkslategray
Accent foreground
#402b2cdarkslategray
#cbc8c8silver
Destructive
#a83b10saddlebrown
#ec6632tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dececflightgrey
#dececflightgrey

Contrast

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

Light mode
Text on background19.60:1AAA
Text on card19.21:1AAA
Primary button7.83:1AAA
Secondary button7.96:1AAA
Muted text6.95:1AA
Accent7.96:1AAA
Destructive6.37:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.83:1AAA
Secondary button7.95:1AAA
Muted text7.86:1AAA
Accent7.95:1AAA
Destructive6.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 13.744);
  --foreground: oklch(0.083 0.013 15.699);
  --muted: oklch(0.929 0.016 13.942);
  --muted-foreground: oklch(0.42 0.031 15.147);
  --popover: oklch(0.97 0.01 13.816);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.97 0.01 13.816);
  --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.865 0.018 14.028);
  --primary-foreground: oklch(0.342 0.036 15.806);
  --secondary: oklch(0.84 0.021 14.101);
  --secondary-foreground: oklch(0.315 0.03 15.615);
  --accent: oklch(0.84 0.021 14.101);
  --accent-foreground: oklch(0.315 0.03 15.615);
  --destructive: oklch(0.502 0.152 38.822);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.865 0.018 14.028);
  --chart-1: oklch(0.865 0.018 14.028);
  --chart-2: oklch(0.84 0.021 14.101);
  --chart-3: oklch(0.84 0.021 14.101);
  --chart-4: oklch(0.866 0.017 14.006);
  --chart-5: oklch(0.863 0.021 14.093);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.181 0.025 16.546);
  --muted-foreground: oklch(0.732 0.027 14.344);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.865 0.018 14.028);
  --primary-foreground: oklch(0.342 0.036 15.806);
  --secondary: oklch(0.309 0.003 13.786);
  --secondary-foreground: oklch(0.836 0.002 13.664);
  --accent: oklch(0.309 0.003 13.786);
  --accent-foreground: oklch(0.836 0.002 13.664);
  --destructive: oklch(0.67 0.178 40.444);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.865 0.018 14.028);
  --chart-1: oklch(0.865 0.018 14.028);
  --chart-2: oklch(0.309 0.003 13.786);
  --chart-3: oklch(0.309 0.003 13.786);
  --chart-4: oklch(0.339 0.003 13.791);
  --chart-5: oklch(0.863 0.021 14.093);
}