Our for shadcn/ui

Our is a shadcn/ui theme built around a near-white primary color (#faf8fc) with near-white accents (#fcf8fb). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the near-white primary (#faf8fc) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#fdfbfewhite
#030104black
Foreground
#030104black
#f7f7f8whitesmoke
Card
#fdfbfewhite
#030104black
Card foreground
#030104black
#f7f7f8whitesmoke
Popover
#fdfbfewhite
#030104black
Popover foreground
#030104black
#f7f7f8whitesmoke
Primary
#faf8fcghostwhite
#faf8fcghostwhite
Primary foreground
#663e84rebeccapurple
#663e84rebeccapurple
Secondary
#f8f8fcghostwhite
#f8f8fcghostwhite
Secondary foreground
#433e84darkslateblue
#433e84darkslateblue
Muted
#ececeewhitesmoke
#111113black
Muted foreground
#4c4c52darkslategray
#adadb3darkgray
Accent
#fcf8fbsnow
#fcf8fbsnow
Accent foreground
#843e7frebeccapurple
#843e7frebeccapurple
Destructive
#9d0601darkred
#fe1810red
Destructive foreground
#ffd3d1pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#faf8fcghostwhite
#faf8fcghostwhite

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button7.69:1AAA
Secondary button8.77:1AAA
Muted text7.24:1AAA
Accent6.70:1AA
Destructive6.28:1AA
Dark mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button7.69:1AAA
Secondary button8.77:1AAA
Muted text8.44:1AAA
Accent6.70:1AA
Destructive3.92: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 311.047);
  --foreground: oklch(0.08 0.021 313.18);
  --muted: oklch(0.944 0.002 289.431);
  --muted-foreground: oklch(0.419 0.01 289.008);
  --popover: oklch(0.99 0.004 311.047);
  --popover-foreground: oklch(0.08 0.021 313.18);
  --card: oklch(0.99 0.004 311.047);
  --card-foreground: oklch(0.08 0.021 313.18);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.982 0.005 311.037);
  --primary-foreground: oklch(0.442 0.117 308.517);
  --secondary: oklch(0.981 0.005 289.385);
  --secondary-foreground: oklch(0.406 0.113 283.132);
  --accent: oklch(0.983 0.006 327.605);
  --accent-foreground: oklch(0.478 0.128 329.919);
  --destructive: oklch(0.44 0.178 29.646);
  --destructive-foreground: oklch(0.903 0.05 20.435);
  --ring: oklch(0.982 0.005 311.037);
  --chart-1: oklch(0.982 0.005 311.037);
  --chart-2: oklch(0.981 0.005 289.385);
  --chart-3: oklch(0.983 0.006 327.605);
  --chart-4: oklch(1.01 0.002 109.523);
  --chart-5: oklch(0.982 0.006 311.033);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.019 312.982);
  --foreground: oklch(0.976 0.002 311.063);
  --muted: oklch(0.178 0.004 289.094);
  --muted-foreground: oklch(0.749 0.009 289.253);
  --popover: oklch(0.081 0.019 312.982);
  --popover-foreground: oklch(0.976 0.002 311.063);
  --card: oklch(0.081 0.019 312.982);
  --card-foreground: oklch(0.976 0.002 311.063);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.982 0.005 311.037);
  --primary-foreground: oklch(0.442 0.117 308.517);
  --secondary: oklch(0.981 0.005 289.385);
  --secondary-foreground: oklch(0.406 0.113 283.132);
  --accent: oklch(0.983 0.006 327.605);
  --accent-foreground: oklch(0.478 0.128 329.919);
  --destructive: oklch(0.632 0.251 29.207);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.982 0.005 311.037);
  --chart-1: oklch(0.982 0.005 311.037);
  --chart-2: oklch(0.981 0.005 289.385);
  --chart-3: oklch(0.983 0.006 327.605);
  --chart-4: oklch(1.01 0.002 109.523);
  --chart-5: oklch(0.982 0.006 311.033);
}