Our for shadcn/ui

Our is a shadcn/ui theme built around a deep red primary color (#110908) with deep cyan accents (#081111). The light mode uses a neutral background (#fdfcfb). Dark mode keeps the deep red primary (#110908) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#fdfcfbsnow
#040101black
Foreground
#0e0302black
#ffffffwhite
Card
#fdfcfbsnow
#040101black
Card foreground
#0e0302black
#ffffffwhite
Popover
#fdfcfbsnow
#040101black
Popover foreground
#0e0302black
#ffffffwhite
Primary
#110908black
#110908black
Primary foreground
#c68b86rosybrown
#c68b86rosybrown
Secondary
#081111black
#081111black
Secondary foreground
#86c1c6skyblue
#86c1c6skyblue
Muted
#d4ebedlavender
#12292bdarkslategray
Muted foreground
#596364dimgray
#9ba5a6darkgray
Accent
#081111black
#081111black
Accent foreground
#86c1c6skyblue
#86c1c6skyblue
Destructive
#d73a0forangered
#f15f37tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#110908black
#110908black

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button6.97:1AA
Secondary button9.53:1AAA
Muted text4.96:1AA
Accent9.53:1AAA
Destructive4.67:1AA
Dark mode
Text on background20.75:1AAA
Text on card20.75:1AAA
Primary button6.97:1AA
Secondary button9.53:1AAA
Muted text6.05:1AA
Accent9.53:1AAA
Destructive6.43:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 23.6);
  --foreground: oklch(0.118 0.027 31.719);
  --muted: oklch(0.923 0.024 203.363);
  --muted-foreground: oklch(0.491 0.013 203.359);
  --popover: oklch(0.991 0.002 23.6);
  --popover-foreground: oklch(0.118 0.027 31.719);
  --card: oklch(0.991 0.002 23.6);
  --card-foreground: oklch(0.118 0.027 31.719);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.151 0.015 25.396);
  --primary-foreground: oklch(0.693 0.073 24.92);
  --secondary: oklch(0.167 0.013 203.034);
  --secondary-foreground: oklch(0.771 0.061 203.123);
  --accent: oklch(0.167 0.013 203.034);
  --accent-foreground: oklch(0.771 0.061 203.123);
  --destructive: oklch(0.582 0.199 34.525);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.151 0.015 25.396);
  --chart-1: oklch(0.151 0.015 25.396);
  --chart-2: oklch(0.167 0.013 203.034);
  --chart-3: oklch(0.167 0.013 203.034);
  --chart-4: oklch(0.208 0.019 203.126);
  --chart-5: oklch(0.151 0.017 25.678);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.012 27.996);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.263 0.029 203.193);
  --muted-foreground: oklch(0.715 0.012 203.435);
  --popover: oklch(0.085 0.012 27.996);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.085 0.012 27.996);
  --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.151 0.015 25.396);
  --primary-foreground: oklch(0.693 0.073 24.92);
  --secondary: oklch(0.167 0.013 203.034);
  --secondary-foreground: oklch(0.771 0.061 203.123);
  --accent: oklch(0.167 0.013 203.034);
  --accent-foreground: oklch(0.771 0.061 203.123);
  --destructive: oklch(0.668 0.188 36.092);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.151 0.015 25.396);
  --chart-1: oklch(0.151 0.015 25.396);
  --chart-2: oklch(0.167 0.013 203.034);
  --chart-3: oklch(0.167 0.013 203.034);
  --chart-4: oklch(0.208 0.019 203.126);
  --chart-5: oklch(0.151 0.017 25.678);
}