app 1 for shadcn/ui

app 1 is a shadcn/ui theme built around a red primary color (#cd9e93) with muted light red accents (#ede9e8). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#cd9e93) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#ffffffwhite
#040201black
Foreground
#160703black
#fbf9f8snow
Card
#ffffffwhite
#040201black
Card foreground
#160703black
#fbf9f8snow
Popover
#ffffffwhite
#040201black
Popover foreground
#160703black
#fbf9f8snow
Primary
#cd9e93rosybrown
#cd9e93rosybrown
Primary foreground
#1f120eblack
#1f120eblack
Secondary
#ede9e8linen
#3a2f2cdarkslategray
Secondary foreground
#5b4c48darkolivegreen
#d3c8c5lightgrey
Muted
#f3eae7linen
#180e0cblack
Muted foreground
#504b49darkslategray
#b6b1afdarkgray
Accent
#ede9e8linen
#3a2f2cdarkslategray
Accent foreground
#5b4c48darkolivegreen
#d3c8c5lightgrey
Destructive
#712704maroon
#f75e18orangered
Destructive foreground
#fcc5abnavajowhite
#000000black
Border
#e8e4e3gainsboro
#211d1cblack
Input
#e8e4e3gainsboro
#211d1cblack
Ring
#cd9e93rosybrown
#cd9e93rosybrown

Contrast

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

Light mode
Text on background19.70:1AAA
Text on card19.70:1AAA
Primary button7.76:1AAA
Secondary button6.78:1AA
Muted text7.23:1AAA
Accent6.78:1AA
Destructive6.88:1AA
Dark mode
Text on background19.74:1AAA
Text on card19.74:1AAA
Primary button7.76:1AAA
Secondary button7.92:1AAA
Muted text8.93:1AAA
Accent7.92:1AAA
Destructive6.56:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.152 0.031 40.94);
  --muted: oklch(0.943 0.011 34.301);
  --muted-foreground: oklch(0.416 0.007 34.298);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.152 0.031 40.94);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.152 0.031 40.94);
  --border: oklch(0.922 0.004 34.31);
  --input: oklch(0.922 0.004 34.31);
  --primary: oklch(0.741 0.059 34.43);
  --primary-foreground: oklch(0.199 0.024 34.631);
  --secondary: oklch(0.937 0.004 34.309);
  --secondary-foreground: oklch(0.43 0.022 34.338);
  --accent: oklch(0.937 0.004 34.309);
  --accent-foreground: oklch(0.43 0.022 34.338);
  --destructive: oklch(0.379 0.113 40.806);
  --destructive-foreground: oklch(0.866 0.072 46.08);
  --ring: oklch(0.741 0.059 34.43);
  --chart-1: oklch(0.741 0.059 34.43);
  --chart-2: oklch(0.937 0.004 34.309);
  --chart-3: oklch(0.937 0.004 34.309);
  --chart-4: oklch(0.961 0.003 34.312);
  --chart-5: oklch(0.74 0.064 34.458);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.011 40.716);
  --foreground: oklch(0.984 0.003 34.312);
  --muted: oklch(0.177 0.018 34.519);
  --muted-foreground: oklch(0.763 0.006 34.305);
  --popover: oklch(0.088 0.011 40.716);
  --popover-foreground: oklch(0.984 0.003 34.312);
  --card: oklch(0.088 0.011 40.716);
  --card-foreground: oklch(0.984 0.003 34.312);
  --border: oklch(0.235 0.006 34.299);
  --input: oklch(0.235 0.006 34.299);
  --primary: oklch(0.741 0.059 34.43);
  --primary-foreground: oklch(0.199 0.024 34.631);
  --secondary: oklch(0.316 0.018 34.349);
  --secondary-foreground: oklch(0.84 0.013 34.298);
  --accent: oklch(0.316 0.018 34.349);
  --accent-foreground: oklch(0.84 0.013 34.298);
  --destructive: oklch(0.674 0.2 40.56);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.741 0.059 34.43);
  --chart-1: oklch(0.741 0.059 34.43);
  --chart-2: oklch(0.316 0.018 34.349);
  --chart-3: oklch(0.316 0.018 34.349);
  --chart-4: oklch(0.345 0.02 34.353);
  --chart-5: oklch(0.74 0.064 34.458);
}