Office for shadcn/ui

Office is a shadcn/ui theme built around a neutral gray primary color (#363636) with neutral gray accents (#363636). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#363636) on a red-tinted background (#0c0404).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0404black
Foreground
#160303black
#faf5f5whitesmoke
Card
#fcfcfcsnow
#0f0505black
Card foreground
#120303black
#fcf8f8snow
Popover
#ffffffwhite
#0c0404black
Popover foreground
#160303black
#faf5f5whitesmoke
Primary
#363636darkslategray
#363636darkslategray
Primary foreground
#cfcfcflightgrey
#cfcfcflightgrey
Secondary
#363636darkslategray
#363636darkslategray
Secondary foreground
#cfcfcflightgrey
#cfcfcflightgrey
Muted
#eee2e2mistyrose
#1d1111black
Muted foreground
#725555dimgray
#aa8d8drosybrown
Accent
#363636darkslategray
#363636darkslategray
Accent foreground
#cfcfcflightgrey
#cfcfcflightgrey
Destructive
#bc4f10chocolate
#ee7c3acoral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#363636darkslategray
#363636darkslategray

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card19.75:1AAA
Primary button7.80:1AAA
Secondary button7.80:1AAA
Muted text5.27:1AA
Accent7.80:1AAA
Destructive4.92:1AA
Dark mode
Text on background18.82:1AAA
Text on card19.06:1AAA
Primary button7.80:1AAA
Secondary button7.80:1AAA
Muted text6.06:1AA
Accent7.80:1AAA
Destructive7.57:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.14 0.039 23.583);
  --muted: oklch(0.922 0.014 17.412);
  --muted-foreground: oklch(0.479 0.04 18.647);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.14 0.039 23.583);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.128 0.034 23.275);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.331 0 180);
  --primary-foreground: oklch(0.853 0 168.69);
  --secondary: oklch(0.331 0 180);
  --secondary-foreground: oklch(0.853 0 168.69);
  --accent: oklch(0.331 0 180);
  --accent-foreground: oklch(0.853 0 168.69);
  --destructive: oklch(0.562 0.155 44.433);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.331 0 180);
  --chart-1: oklch(0.331 0 180);
  --chart-2: oklch(0.331 0 180);
  --chart-3: oklch(0.331 0 180);
  --chart-4: oklch(0.361 0 180);
  --chart-5: oklch(0.328 0.005 17.388);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.018 20.145);
  --foreground: oklch(0.974 0.005 17.247);
  --muted: oklch(0.193 0.022 19.243);
  --muted-foreground: oklch(0.67 0.036 18.094);
  --popover: oklch(0.12 0.018 20.145);
  --popover-foreground: oklch(0.974 0.005 17.247);
  --card: oklch(0.133 0.021 20.305);
  --card-foreground: oklch(0.982 0.003 17.217);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.331 0 180);
  --primary-foreground: oklch(0.853 0 168.69);
  --secondary: oklch(0.331 0 180);
  --secondary-foreground: oklch(0.853 0 168.69);
  --accent: oklch(0.331 0 180);
  --accent-foreground: oklch(0.853 0 168.69);
  --destructive: oklch(0.705 0.161 47.826);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.331 0 180);
  --chart-1: oklch(0.331 0 180);
  --chart-2: oklch(0.331 0 180);
  --chart-3: oklch(0.331 0 180);
  --chart-4: oklch(0.361 0 180);
  --chart-5: oklch(0.328 0.005 17.388);
}