Calculating for shadcn/ui

Calculating is a shadcn/ui theme built around an orange primary color (#ad7e58) with blue accents (#5886ad). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#ad7e58) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#ffffffwhite
#040201black
Foreground
#150c05black
#ffffffwhite
Card
#ffffffwhite
#040201black
Card foreground
#150c05black
#ffffffwhite
Popover
#ffffffwhite
#040201black
Popover foreground
#150c05black
#ffffffwhite
Primary
#ad7e58peru
#ad7e58peru
Primary foreground
#000000black
#000000black
Secondary
#5886adsteelblue
#5886adsteelblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ebf0f5whitesmoke
#0a1014black
Muted foreground
#47535cdarkslategray
#a3aeb8darkgray
Accent
#5886adsteelblue
#5886adsteelblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c64901chocolate
#fe7120tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ad7e58peru
#ad7e58peru

Contrast

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

Light mode
Text on background19.32:1AAA
Text on card19.32:1AAA
Primary button5.87:1AA
Secondary button3.86:1AA Large
Muted text6.88:1AA
Accent3.86:1AA Large
Destructive4.81:1AA
Dark mode
Text on background20.66:1AAA
Text on card20.66:1AAA
Primary button5.87:1AA
Secondary button3.86:1AA Large
Muted text8.48:1AAA
Accent3.86:1AA Large
Destructive7.60:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.164 0.022 63.824);
  --muted: oklch(0.953 0.008 242.308);
  --muted-foreground: oklch(0.434 0.022 242.869);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.164 0.022 63.824);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.164 0.022 63.824);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.63 0.079 59.978);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.603 0.078 244.269);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.603 0.078 244.269);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.57 0.172 41.809);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.63 0.079 59.978);
  --chart-1: oklch(0.63 0.079 59.978);
  --chart-2: oklch(0.603 0.078 244.269);
  --chart-3: oklch(0.603 0.078 244.269);
  --chart-4: oklch(0.628 0.073 243.987);
  --chart-5: oklch(0.633 0.085 59.693);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.009 69.689);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.169 0.013 243.245);
  --muted-foreground: oklch(0.746 0.019 242.532);
  --popover: oklch(0.093 0.009 69.689);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.093 0.009 69.689);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.63 0.079 59.978);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.603 0.078 244.269);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.603 0.078 244.269);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.71 0.191 45.057);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.63 0.079 59.978);
  --chart-1: oklch(0.63 0.079 59.978);
  --chart-2: oklch(0.603 0.078 244.269);
  --chart-3: oklch(0.603 0.078 244.269);
  --chart-4: oklch(0.628 0.073 243.987);
  --chart-5: oklch(0.633 0.085 59.693);
}