Round for shadcn/ui

Round is a shadcn/ui theme built around a blue primary color (#336999) with orange accents (#996333). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the blue primary (#336999) on a blue-tinted background (#040b10).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#040b10black
Foreground
#030b12black
#f6f7f8whitesmoke
Card
#f8fafcghostwhite
#060d14black
Card foreground
#02080dblack
#f9fafbghostwhite
Popover
#f8fafcghostwhite
#060d14black
Popover foreground
#02080dblack
#f9fafbghostwhite
Primary
#336999steelblue
#336999steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#996333sienna
#996333sienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e0d8d1gainsboro
#2e261fdarkslategray
Muted foreground
#473f39darkslategray
#c6bfb8silver
Accent
#996333sienna
#996333sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c92c0dfirebrick
#f25536tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#336999steelblue
#336999steelblue

Contrast

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

Light mode
Text on background19.36:1AAA
Text on card19.24:1AAA
Primary button5.77:1AA
Secondary button5.03:1AA
Muted text7.33:1AAA
Accent5.03:1AA
Destructive5.43:1AA
Dark mode
Text on background18.48:1AAA
Text on card18.67:1AAA
Primary button5.77:1AA
Secondary button5.03:1AA
Muted text8.20:1AAA
Accent5.03:1AA
Destructive6.13:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 244.109);
  --foreground: oklch(0.142 0.022 239.429);
  --muted: oklch(0.887 0.013 63.909);
  --muted-foreground: oklch(0.374 0.015 63.554);
  --popover: oklch(0.984 0.003 244.13);
  --popover-foreground: oklch(0.129 0.018 235.549);
  --card: oklch(0.984 0.003 244.13);
  --card-foreground: oklch(0.129 0.018 235.549);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.507 0.096 247.394);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.548 0.095 59.941);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.548 0.095 59.941);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.546 0.197 32.488);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.507 0.096 247.394);
  --chart-1: oklch(0.507 0.096 247.394);
  --chart-2: oklch(0.548 0.095 59.941);
  --chart-3: oklch(0.548 0.095 59.941);
  --chart-4: oklch(0.577 0.1 59.881);
  --chart-5: oklch(0.508 0.101 247.695);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.016 240.691);
  --foreground: oklch(0.977 0.002 244.109);
  --muted: oklch(0.274 0.017 63.228);
  --muted-foreground: oklch(0.808 0.012 63.893);
  --popover: oklch(0.155 0.019 243.477);
  --popover-foreground: oklch(0.985 0.001 244.102);
  --card: oklch(0.155 0.019 243.477);
  --card-foreground: oklch(0.985 0.001 244.102);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.507 0.096 247.394);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.548 0.095 59.941);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.548 0.095 59.941);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.658 0.198 33.212);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.507 0.096 247.394);
  --chart-1: oklch(0.507 0.096 247.394);
  --chart-2: oklch(0.548 0.095 59.941);
  --chart-3: oklch(0.548 0.095 59.941);
  --chart-4: oklch(0.577 0.1 59.881);
  --chart-5: oklch(0.508 0.101 247.695);
}