Calculating for shadcn/ui

Calculating is a shadcn/ui theme built around a vivid red primary color (#f88362) with vivid cyan accents (#62d8f8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid red primary (#f88362) on a neutral background (#080302).

Color palette

TokenLightDark
Background
#ffffffwhite
#080302black
Foreground
#040201black
#fdfcfcsnow
Card
#ffffffwhite
#080302black
Card foreground
#040201black
#fdfcfcsnow
Popover
#ffffffwhite
#080302black
Popover foreground
#040201black
#fdfcfcsnow
Primary
#f88362salmon
#f88362salmon
Primary foreground
#270a02black
#270a02black
Secondary
#62d8f8lightskyblue
#62d8f8lightskyblue
Secondary foreground
#021f27black
#021f27black
Muted
#cbe1e7gainsboro
#182e34darkslategray
Muted foreground
#3f4c50darkslategray
#afbcc0silver
Accent
#62d8f8lightskyblue
#62d8f8lightskyblue
Accent foreground
#021f27black
#021f27black
Destructive
#602706maroon
#eb600fchocolate
Destructive foreground
#f9c09fnavajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f88362salmon
#f88362salmon

Contrast

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

Light mode
Text on background20.70:1AAA
Text on card20.70:1AAA
Primary button7.45:1AAA
Secondary button10.34:1AAA
Muted text6.53:1AA
Accent10.34:1AAA
Destructive7.30:1AAA
Dark mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button7.45:1AAA
Secondary button10.34:1AAA
Muted text7.26:1AAA
Accent10.34:1AAA
Destructive6.19:1AA

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.088 0.012 44.008);
  --muted: oklch(0.894 0.025 216.169);
  --muted-foreground: oklch(0.407 0.018 216.32);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.088 0.012 44.008);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.088 0.012 44.008);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.735 0.151 36.386);
  --primary-foreground: oklch(0.192 0.053 40.834);
  --secondary: oklch(0.827 0.114 218.863);
  --secondary-foreground: oklch(0.222 0.038 219.478);
  --accent: oklch(0.827 0.114 218.863);
  --accent-foreground: oklch(0.222 0.038 219.478);
  --destructive: oklch(0.349 0.093 45.603);
  --destructive-foreground: oklch(0.851 0.079 51.386);
  --ring: oklch(0.735 0.151 36.386);
  --chart-1: oklch(0.735 0.151 36.386);
  --chart-2: oklch(0.827 0.114 218.863);
  --chart-3: oklch(0.827 0.114 218.863);
  --chart-4: oklch(0.841 0.106 218.259);
  --chart-5: oklch(0.735 0.156 36.392);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.014 43.145);
  --foreground: oklch(0.992 0.001 36.008);
  --muted: oklch(0.287 0.03 217.473);
  --muted-foreground: oklch(0.787 0.016 216.113);
  --popover: oklch(0.111 0.014 43.145);
  --popover-foreground: oklch(0.992 0.001 36.008);
  --card: oklch(0.111 0.014 43.145);
  --card-foreground: oklch(0.992 0.001 36.008);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.735 0.151 36.386);
  --primary-foreground: oklch(0.192 0.053 40.834);
  --secondary: oklch(0.827 0.114 218.863);
  --secondary-foreground: oklch(0.222 0.038 219.478);
  --accent: oklch(0.827 0.114 218.863);
  --accent-foreground: oklch(0.222 0.038 219.478);
  --destructive: oklch(0.657 0.189 43.3);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.735 0.151 36.386);
  --chart-1: oklch(0.735 0.151 36.386);
  --chart-2: oklch(0.827 0.114 218.863);
  --chart-3: oklch(0.827 0.114 218.863);
  --chart-4: oklch(0.841 0.106 218.259);
  --chart-5: oklch(0.735 0.156 36.392);
}