RS - Light/Dark - V1 - Border for shadcn/ui

RS - Light/Dark - V1 - Border is a shadcn/ui theme built around a near-black primary color (#181818) with near-white accents (#f6f6f6). The light mode uses a neutral background (#f6f6f6). Dark mode switches to a near-white primary (#ffffff) on a neutral background (#0d0d0d).

Color palette

TokenLightDark
Background
#f6f6f6whitesmoke
#0d0d0dblack
Foreground
#181818black
#ffffffwhite
Card
#ffffffwhite
#161616black
Card foreground
#181818black
#ffffffwhite
Popover
#ffffffwhite
#161616black
Popover foreground
#181818black
#ffffffwhite
Primary
#181818black
#ffffffwhite
Primary foreground
#fafafasnow
#161616black
Secondary
#ebebeblinen
#262626darkslategray
Secondary foreground
#171717black
#ffffffwhite
Muted
#ebebeblinen
#262626darkslategray
Muted foreground
#6e6e6edimgray
#a3a3a3darkgray
Accent
#f6f6f6whitesmoke
#262626darkslategray
Accent foreground
#171717black
#fafafasnow
Destructive
#ff5d5dtomato
#ff5d5dtomato
Destructive foreground
#ffffffwhite
#fafafasnow
Border
#e5e5e5gainsboro
#262626darkslategray
Input
#e5e5e5gainsboro
#262626darkslategray
Ring
#0a0a0ablack
#d4d4d4lightgrey

Contrast

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

Light mode
Text on background16.42:1AAA
Text on card17.75:1AAA
Primary button17.01:1AAA
Secondary button15.03:1AAA
Muted text4.27:1AA Large
Accent16.58:1AAA
Destructive3.01:1AA Large
Dark mode
Text on background19.43:1AAA
Text on card18.09:1AAA
Primary button18.09:1AAA
Secondary button15.13:1AAA
Muted text5.99:1AA
Accent14.49:1AAA
Destructive2.88:1Fail

CSS variables

Paste this into your globals.css to use RS - Light/Dark - V1 - Border in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.973 0 180);
  --foreground: oklch(0.209 0 180);
  --muted: oklch(0.94 0 180);
  --muted-foreground: oklch(0.538 0 171.87);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.209 0 180);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.209 0 180);
  --border: oklch(0.922 0 168.69);
  --input: oklch(0.922 0 168.69);
  --primary: oklch(0.209 0 180);
  --primary-foreground: oklch(0.985 0 180);
  --secondary: oklch(0.94 0 180);
  --secondary-foreground: oklch(0.204 0 180);
  --accent: oklch(0.973 0 180);
  --accent-foreground: oklch(0.204 0 180);
  --destructive: oklch(0.692 0.198 23.832);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.145 0 180);
  --chart-1: oklch(0.209 0 180);
  --chart-2: oklch(0.94 0 180);
  --chart-3: oklch(0.973 0 180);
  --chart-4: oklch(0.963 0 153.435);
  --chart-5: oklch(0.207 0.002 17.34);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0 180);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.269 0 180);
  --muted-foreground: oklch(0.715 0 158.199);
  --popover: oklch(0.2 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.2 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.269 0 180);
  --input: oklch(0.269 0 180);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.2 0 180);
  --secondary: oklch(0.269 0 180);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.269 0 180);
  --accent-foreground: oklch(0.985 0 180);
  --destructive: oklch(0.692 0.198 23.832);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.87 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.269 0 180);
  --chart-3: oklch(0.269 0 180);
  --chart-4: oklch(0.3 0 180);
  --chart-5: oklch(1 0 180);
}