Round for shadcn/ui

Round is a shadcn/ui theme built around a near-black primary color (#000a0a) with near-black accents (#0a0a00). The light mode uses a neutral background (#f7fdfd). Dark mode keeps the near-black primary (#000a0a) on a teal-tinted background (#040c0c).

Color palette

TokenLightDark
Background
#f7fdfdmintcream
#040c0cblack
Foreground
#021212black
#f6f9f9whitesmoke
Card
#f7fdfdmintcream
#040c0cblack
Card foreground
#021212black
#f6f9f9whitesmoke
Popover
#f7fdfdmintcream
#040c0cblack
Popover foreground
#021212black
#f6f9f9whitesmoke
Primary
#000a0ablack
#000a0ablack
Primary foreground
#00d6d6darkturquoise
#00d6d6darkturquoise
Secondary
#0a000ablack
#0a000ablack
Secondary foreground
#ff3dffmagenta
#ff3dffmagenta
Muted
#e9d3e9gainsboro
#2c162cblack
Muted foreground
#463946darkslategray
#c6b9c6silver
Accent
#0a0a00black
#0a0a00black
Accent foreground
#d6d600gold
#d6d600gold
Destructive
#621f09maroon
#ea4e1aorangered
Destructive foreground
#f7baa6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#000a0ablack
#000a0ablack

Contrast

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

Light mode
Text on background18.55:1AAA
Text on card18.55:1AAA
Primary button11.05:1AAA
Secondary button7.23:1AAA
Muted text7.71:1AAA
Accent12.74:1AAA
Destructive7.27:1AAA
Dark mode
Text on background18.70:1AAA
Text on card18.70:1AAA
Primary button11.05:1AAA
Secondary button7.23:1AAA
Muted text8.85:1AAA
Accent12.74:1AAA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.006 197.064);
  --foreground: oklch(0.168 0.024 195.09);
  --muted: oklch(0.891 0.039 325.899);
  --muted-foreground: oklch(0.364 0.027 326.124);
  --popover: oklch(0.989 0.006 197.064);
  --popover-foreground: oklch(0.168 0.024 195.09);
  --card: oklch(0.989 0.006 197.064);
  --card-foreground: oklch(0.168 0.024 195.09);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.132 0.023 194.769);
  --primary-foreground: oklch(0.794 0.135 194.769);
  --secondary: oklch(0.102 0.047 328.363);
  --secondary-foreground: oklch(0.722 0.295 328.111);
  --accent: oklch(0.141 0.031 109.769);
  --accent-foreground: oklch(0.849 0.185 109.769);
  --destructive: oklch(0.342 0.102 37.546);
  --destructive-foreground: oklch(0.84 0.076 39.223);
  --ring: oklch(0.132 0.023 194.769);
  --chart-1: oklch(0.132 0.023 194.769);
  --chart-2: oklch(0.102 0.047 328.363);
  --chart-3: oklch(0.141 0.031 109.769);
  --chart-4: oklch(0.151 0.07 328.363);
  --chart-5: oklch(0.132 0.023 194.725);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.014 195.655);
  --foreground: oklch(0.979 0.003 197.115);
  --muted: oklch(0.242 0.052 327.044);
  --muted-foreground: oklch(0.8 0.023 325.787);
  --popover: oklch(0.143 0.014 195.655);
  --popover-foreground: oklch(0.979 0.003 197.115);
  --card: oklch(0.143 0.014 195.655);
  --card-foreground: oklch(0.979 0.003 197.115);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.132 0.023 194.769);
  --primary-foreground: oklch(0.794 0.135 194.769);
  --secondary: oklch(0.102 0.047 328.363);
  --secondary-foreground: oklch(0.722 0.295 328.111);
  --accent: oklch(0.141 0.031 109.769);
  --accent-foreground: oklch(0.849 0.185 109.769);
  --destructive: oklch(0.635 0.2 36.843);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.132 0.023 194.769);
  --chart-1: oklch(0.132 0.023 194.769);
  --chart-2: oklch(0.102 0.047 328.363);
  --chart-3: oklch(0.141 0.031 109.769);
  --chart-4: oklch(0.151 0.07 328.363);
  --chart-5: oklch(0.132 0.023 194.725);
}