Markup for shadcn/ui

Markup is a shadcn/ui theme built around a muted orange primary color (#b3937a) with muted violet accents (#937ab3). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the muted orange primary (#b3937a) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#fcfaf8snow
#040201black
Foreground
#090502black
#fdfcfcsnow
Card
#faf7f4whitesmoke
#070503black
Card foreground
#040201black
#ffffffwhite
Popover
#fcfaf8snow
#040201black
Popover foreground
#090502black
#fdfcfcsnow
Primary
#b3937arosybrown
#b3937arosybrown
Primary foreground
#000000black
#000000black
Secondary
#7ab393darkseagreen
#7ab393darkseagreen
Secondary foreground
#000000black
#000000black
Muted
#d1ebdcgainsboro
#142e1fblack
Muted foreground
#575c59dimgray
#a3a8a5darkgray
Accent
#937ab3lightslategray
#937ab3lightslategray
Accent foreground
#000000black
#000000black
Destructive
#cf2017firebrick
#dc2218crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b3937arosybrown
#b3937arosybrown

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.40:1AAA
Primary button7.34:1AAA
Secondary button8.67:1AAA
Muted text5.39:1AA
Accent5.67:1AA
Destructive5.43:1AA
Dark mode
Text on background20.18:1AAA
Text on card20.35:1AAA
Primary button7.34:1AAA
Secondary button8.67:1AAA
Muted text6.01:1AA
Accent5.67:1AA
Destructive4.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 60.238);
  --foreground: oklch(0.118 0.016 70.595);
  --muted: oklch(0.917 0.034 160.869);
  --muted-foreground: oklch(0.469 0.008 161.376);
  --popover: oklch(0.985 0.003 60.238);
  --popover-foreground: oklch(0.118 0.016 70.595);
  --card: oklch(0.978 0.005 60.215);
  --card-foreground: oklch(0.093 0.012 70.595);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.685 0.052 59.165);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.717 0.076 158.934);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.624 0.087 303.838);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.548 0.208 29.182);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.685 0.052 59.165);
  --chart-1: oklch(0.685 0.052 59.165);
  --chart-2: oklch(0.717 0.076 158.934);
  --chart-3: oklch(0.624 0.087 303.838);
  --chart-4: oklch(0.738 0.07 159.263);
  --chart-5: oklch(0.687 0.057 59.021);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.007 66.422);
  --foreground: oklch(0.993 0.001 60.272);
  --muted: oklch(0.277 0.043 157.116);
  --muted-foreground: oklch(0.728 0.007 161.56);
  --popover: oklch(0.093 0.007 66.422);
  --popover-foreground: oklch(0.993 0.001 60.272);
  --card: oklch(0.117 0.009 66.422);
  --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.685 0.052 59.165);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.717 0.076 158.934);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.624 0.087 303.838);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.575 0.219 29.207);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.685 0.052 59.165);
  --chart-1: oklch(0.685 0.052 59.165);
  --chart-2: oklch(0.717 0.076 158.934);
  --chart-3: oklch(0.624 0.087 303.838);
  --chart-4: oklch(0.738 0.07 159.263);
  --chart-5: oklch(0.687 0.057 59.021);
}