Order for shadcn/ui

Order is a shadcn/ui theme built around a muted purple primary color (#b37aa7) with muted green accents (#7ab386). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the muted purple primary (#b37aa7) on a purple-tinted background (#0e070c).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#0e070cblack
Foreground
#040104black
#faf5f9whitesmoke
Card
#fcf8fbsnow
#0e070cblack
Card foreground
#040104black
#faf5f9whitesmoke
Popover
#fcf8fbsnow
#0e070cblack
Popover foreground
#040104black
#faf5f9whitesmoke
Primary
#b37aa7rosybrown
#b37aa7rosybrown
Primary foreground
#000000black
#000000black
Secondary
#7ab386darkseagreen
#7ab386darkseagreen
Secondary foreground
#000000black
#000000black
Muted
#dfece2gainsboro
#132016black
Muted foreground
#526b57dimgray
#94ad99darkseagreen
Accent
#7ab386darkseagreen
#7ab386darkseagreen
Accent foreground
#000000black
#000000black
Destructive
#b41b0efirebrick
#f04c3dtomato
Destructive foreground
#fef6f6snow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b37aa7rosybrown
#b37aa7rosybrown

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.73:1AAA
Primary button6.26:1AA
Secondary button8.59:1AAA
Muted text4.78:1AA
Accent8.59:1AAA
Destructive6.33:1AA
Dark mode
Text on background18.51:1AAA
Text on card18.51:1AAA
Primary button6.26:1AA
Secondary button8.59:1AAA
Muted text6.97:1AA
Accent8.59:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 332.091);
  --foreground: oklch(0.084 0.024 333.176);
  --muted: oklch(0.931 0.02 151.681);
  --muted-foreground: oklch(0.501 0.043 150.649);
  --popover: oklch(0.983 0.006 332.091);
  --popover-foreground: oklch(0.084 0.024 333.176);
  --card: oklch(0.983 0.006 332.091);
  --card-foreground: oklch(0.084 0.024 333.176);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.652 0.093 333.98);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.714 0.088 149.953);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.714 0.088 149.953);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.495 0.188 30.086);
  --destructive-foreground: oklch(0.98 0.009 23.668);
  --ring: oklch(0.652 0.093 333.98);
  --chart-1: oklch(0.652 0.093 333.98);
  --chart-2: oklch(0.714 0.088 149.953);
  --chart-3: oklch(0.714 0.088 149.953);
  --chart-4: oklch(0.735 0.082 150.185);
  --chart-5: oklch(0.651 0.103 334.188);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.017 333.314);
  --foreground: oklch(0.974 0.008 332.131);
  --muted: oklch(0.228 0.028 149.999);
  --muted-foreground: oklch(0.723 0.039 151.165);
  --popover: oklch(0.141 0.017 333.314);
  --popover-foreground: oklch(0.974 0.008 332.131);
  --card: oklch(0.141 0.017 333.314);
  --card-foreground: oklch(0.974 0.008 332.131);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.652 0.093 333.98);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.714 0.088 149.953);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.714 0.088 149.953);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.646 0.204 29.081);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.652 0.093 333.98);
  --chart-1: oklch(0.652 0.093 333.98);
  --chart-2: oklch(0.714 0.088 149.953);
  --chart-3: oklch(0.714 0.088 149.953);
  --chart-4: oklch(0.735 0.082 150.185);
  --chart-5: oklch(0.651 0.103 334.188);
}