Obedience for shadcn/ui

Obedience is a shadcn/ui theme built around a muted orange primary color (#b09587) with muted light orange accents (#d3c3bb). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the muted orange primary (#b09587) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf9f8snow
#000000black
Foreground
#0c0603black
#fdfcfcsnow
Card
#faf7f5whitesmoke
#030303black
Card foreground
#080402black
#ffffffwhite
Popover
#fcf9f8snow
#000000black
Popover foreground
#0c0603black
#fdfcfcsnow
Primary
#b09587rosybrown
#b09587rosybrown
Primary foreground
#030202black
#030202black
Secondary
#e2dcd9gainsboro
#312621darkslategray
Secondary foreground
#4e423bdarkslategray
#cebeb6silver
Muted
#ede6e3linen
#1c1512black
Muted foreground
#534e4bdarkslategray
#b4afacdarkgray
Accent
#d3c3bbsilver
#4e382ddarkslategray
Accent foreground
#382b24darkslategray
#e1d3cblightgrey
Destructive
#632109maroon
#ec5c27chocolate
Destructive foreground
#f7bca6lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b09587rosybrown
#b09587rosybrown

Contrast

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

Light mode
Text on background19.24:1AAA
Text on card19.07:1AAA
Primary button7.37:1AAA
Secondary button7.16:1AAA
Muted text6.67:1AA
Accent7.97:1AAA
Destructive7.29:1AAA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button7.37:1AAA
Secondary button8.15:1AAA
Muted text8.28:1AAA
Accent7.49:1AAA
Destructive6.12:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.003 48.715);
  --foreground: oklch(0.131 0.015 56.679);
  --muted: oklch(0.93 0.009 48.638);
  --muted-foreground: oklch(0.427 0.008 48.522);
  --popover: oklch(0.985 0.003 48.715);
  --popover-foreground: oklch(0.131 0.015 56.679);
  --card: oklch(0.977 0.004 48.697);
  --card-foreground: oklch(0.114 0.013 57.139);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.69 0.039 48.132);
  --primary-foreground: oklch(0.091 0.004 51.515);
  --secondary: oklch(0.899 0.008 48.642);
  --secondary-foreground: oklch(0.389 0.021 48.164);
  --accent: oklch(0.828 0.022 48.443);
  --accent-foreground: oklch(0.3 0.023 47.924);
  --destructive: oklch(0.344 0.101 38.514);
  --destructive-foreground: oklch(0.843 0.076 40.876);
  --ring: oklch(0.69 0.039 48.132);
  --chart-1: oklch(0.69 0.039 48.132);
  --chart-2: oklch(0.899 0.008 48.642);
  --chart-3: oklch(0.828 0.022 48.443);
  --chart-4: oklch(0.923 0.006 48.669);
  --chart-5: oklch(0.69 0.045 48.051);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 48.743);
  --muted: oklch(0.204 0.013 48.07);
  --muted-foreground: oklch(0.756 0.007 48.636);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 48.743);
  --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.69 0.039 48.132);
  --primary-foreground: oklch(0.091 0.004 51.515);
  --secondary: oklch(0.28 0.019 48.014);
  --secondary-foreground: oklch(0.812 0.022 48.438);
  --accent: oklch(0.361 0.037 47.682);
  --accent-foreground: oklch(0.875 0.019 48.492);
  --destructive: oklch(0.655 0.19 38.678);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.69 0.039 48.132);
  --chart-1: oklch(0.69 0.039 48.132);
  --chart-2: oklch(0.28 0.019 48.014);
  --chart-3: oklch(0.361 0.037 47.682);
  --chart-4: oklch(0.311 0.022 47.985);
  --chart-5: oklch(0.69 0.045 48.051);
}