Our for shadcn/ui

Our is a shadcn/ui theme built around a deep red primary color (#2e0a0c) with muted light red accents (#d8caca). The light mode uses a neutral background (#fefbfb). Dark mode keeps the deep red primary (#2e0a0c) on a red-tinted background (#0b0405).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0b0405black
Foreground
#0d0202black
#fbf9f9snow
Card
#fdf7f7snow
#0f0606black
Card foreground
#090102black
#fdfcfcsnow
Popover
#fdf7f7snow
#0f0606black
Popover foreground
#090102black
#fdfcfcsnow
Primary
#2e0a0cblack
#2e0a0cblack
Primary foreground
#e4868blightcoral
#e4868blightcoral
Secondary
#eae6e6linen
#392829darkslategray
Secondary foreground
#574748darkslategray
#d3c0c1silver
Muted
#f1eaealinen
#150e0fblack
Muted foreground
#675b5cdimgray
#a49899darkgray
Accent
#d8cacalightgrey
#5c383adarkolivegreen
Accent foreground
#412f30darkslategray
#eadcddgainsboro
Destructive
#722504maroon
#e44907orangered
Destructive foreground
#fcc3ablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2e0a0cblack
#2e0a0cblack

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.45:1AAA
Primary button6.93:1AA
Secondary button7.05:1AAA
Muted text5.46:1AA
Accent7.89:1AAA
Destructive6.85:1AA
Dark mode
Text on background19.35:1AAA
Text on card19.58:1AAA
Primary button6.93:1AA
Secondary button7.99:1AAA
Muted text6.82:1AA
Accent7.57:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 13.678);
  --foreground: oklch(0.114 0.03 17.752);
  --muted: oklch(0.941 0.008 13.77);
  --muted-foreground: oklch(0.483 0.015 14.235);
  --popover: oklch(0.98 0.007 13.751);
  --popover-foreground: oklch(0.099 0.026 17.543);
  --card: oklch(0.98 0.007 13.751);
  --card-foreground: oklch(0.099 0.026 17.543);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.209 0.058 20.778);
  --primary-foreground: oklch(0.722 0.114 17.102);
  --secondary: oklch(0.928 0.005 13.714);
  --secondary-foreground: oklch(0.415 0.022 14.661);
  --accent: oklch(0.85 0.016 13.993);
  --accent-foreground: oklch(0.327 0.026 15.273);
  --destructive: oklch(0.378 0.116 39.632);
  --destructive-foreground: oklch(0.863 0.074 44.308);
  --ring: oklch(0.209 0.058 20.778);
  --chart-1: oklch(0.209 0.058 20.778);
  --chart-2: oklch(0.928 0.005 13.714);
  --chart-3: oklch(0.85 0.016 13.993);
  --chart-4: oklch(0.952 0.003 13.676);
  --chart-5: oklch(0.21 0.061 21.21);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.016 15.333);
  --foreground: oklch(0.983 0.003 13.667);
  --muted: oklch(0.175 0.012 15.039);
  --muted-foreground: oklch(0.691 0.014 14.003);
  --popover: oklch(0.135 0.018 15.697);
  --popover-foreground: oklch(0.991 0.001 13.636);
  --card: oklch(0.135 0.018 15.697);
  --card-foreground: oklch(0.991 0.001 13.636);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.209 0.058 20.778);
  --primary-foreground: oklch(0.722 0.114 17.102);
  --secondary: oklch(0.297 0.025 15.33);
  --secondary-foreground: oklch(0.824 0.021 14.107);
  --accent: oklch(0.384 0.051 16.449);
  --accent-foreground: oklch(0.906 0.015 13.933);
  --destructive: oklch(0.618 0.2 37.862);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.209 0.058 20.778);
  --chart-1: oklch(0.209 0.058 20.778);
  --chart-2: oklch(0.297 0.025 15.33);
  --chart-3: oklch(0.384 0.051 16.449);
  --chart-4: oklch(0.326 0.028 15.392);
  --chart-5: oklch(0.21 0.061 21.21);
}