βui - One Light for shadcn/ui

βui - One Light is a shadcn/ui theme built around a vivid blue primary color (#0c3da7) with neutral gray accents (#d4d4d4). The light mode uses a neutral background (#fafafa). Dark mode keeps the vivid blue primary (#0c3da7) on a neutral background (#fafafa).

Color palette

TokenLightDark
Background
#fafafasnow
#fafafasnow
Foreground
#383942darkslategray
#383942darkslategray
Card
#f5f5f5whitesmoke
#f5f5f5whitesmoke
Card foreground
#2d2d34darkslategray
#2d2d34darkslategray
Popover
#f2f2f2whitesmoke
#f2f2f2whitesmoke
Popover foreground
#212127black
#212127black
Primary
#0c3da7darkslateblue
#0c3da7darkslateblue
Primary foreground
#e7eefdlavender
#e7eefdlavender
Secondary
#acb8d2lightsteelblue
#acb8d2lightsteelblue
Secondary foreground
#1b2232darkslategray
#1b2232darkslategray
Muted
#e9e2e2gainsboro
#e9e2e2gainsboro
Muted foreground
#564343darkslategray
#564343darkslategray
Accent
#d4d4d4lightgrey
#d4d4d4lightgrey
Accent foreground
#3b3b3bdarkslategray
#3b3b3bdarkslategray
Destructive
#710f04maroon
#710f04maroon
Destructive foreground
#fcb3ablightpink
#fcb3ablightpink
Border
#edededwhitesmoke
#edededwhitesmoke
Input
#e6e6e6gainsboro
#e6e6e6gainsboro
Ring
#0c3da7darkslateblue
#0c3da7darkslateblue

Contrast

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

Light mode
Text on background10.97:1AAA
Text on card12.51:1AAA
Primary button8.07:1AAA
Secondary button7.99:1AAA
Muted text7.22:1AAA
Accent7.53:1AAA
Destructive6.85:1AA
Dark mode
Text on background10.97:1AAA
Text on card12.51:1AAA
Primary button8.07:1AAA
Secondary button7.99:1AAA
Muted text7.22:1AAA
Accent7.53:1AAA
Destructive6.85:1AA

CSS variables

Paste this into your globals.css to use βui - One Light in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0 180);
  --foreground: oklch(0.348 0.015 280.542);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.962 0 180);
  --popover-foreground: oklch(0.251 0.01 280.638);
  --card: oklch(0.97 0 180);
  --card-foreground: oklch(0.301 0.013 280.581);
  --border: oklch(0.947 0 180);
  --input: oklch(0.923 0 153.435);
  --primary: oklch(0.406 0.178 262.715);
  --primary-foreground: oklch(0.949 0.022 265.889);
  --secondary: oklch(0.782 0.04 265.702);
  --secondary-foreground: oklch(0.253 0.032 265.037);
  --accent: oklch(0.869 0 165.964);
  --accent-foreground: oklch(0.351 0 167.471);
  --destructive: oklch(0.354 0.133 30.83);
  --destructive-foreground: oklch(0.834 0.086 26.16);
  --ring: oklch(0.406 0.178 262.715);
  --chart-1: oklch(0.406 0.178 262.715);
  --chart-2: oklch(0.782 0.04 265.702);
  --chart-3: oklch(0.869 0 165.964);
  --chart-4: oklch(0.809 0.035 265.761);
  --chart-5: oklch(0.406 0.183 262.741);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.985 0 180);
  --foreground: oklch(0.348 0.015 280.542);
  --muted: oklch(0.919 0.007 17.278);
  --muted-foreground: oklch(0.404 0.025 18.259);
  --popover: oklch(0.962 0 180);
  --popover-foreground: oklch(0.251 0.01 280.638);
  --card: oklch(0.97 0 180);
  --card-foreground: oklch(0.301 0.013 280.581);
  --border: oklch(0.947 0 180);
  --input: oklch(0.923 0 153.435);
  --primary: oklch(0.406 0.178 262.715);
  --primary-foreground: oklch(0.949 0.022 265.889);
  --secondary: oklch(0.782 0.04 265.702);
  --secondary-foreground: oklch(0.253 0.032 265.037);
  --accent: oklch(0.869 0 165.964);
  --accent-foreground: oklch(0.351 0 167.471);
  --destructive: oklch(0.354 0.133 30.83);
  --destructive-foreground: oklch(0.834 0.086 26.16);
  --ring: oklch(0.406 0.178 262.715);
  --chart-1: oklch(0.406 0.178 262.715);
  --chart-2: oklch(0.782 0.04 265.702);
  --chart-3: oklch(0.869 0 165.964);
  --chart-4: oklch(0.809 0.035 265.761);
  --chart-5: oklch(0.406 0.183 262.741);
}