Calculating for shadcn/ui

Calculating is a shadcn/ui theme built around a vivid teal primary color (#14f0aa) with vivid yellow accents (#f0aa14). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the vivid teal primary (#14f0aa) on a teal-tinted background (#050a09).

Color palette

TokenLightDark
Background
#f8fcfbmintcream
#050a09black
Foreground
#02120dblack
#fcfdfdwhite
Card
#f8fcfbmintcream
#050a09black
Card foreground
#02120dblack
#fcfdfdwhite
Popover
#f8fcfbmintcream
#050a09black
Popover foreground
#02120dblack
#fcfdfdwhite
Primary
#14f0aamediumspringgreen
#14f0aamediumspringgreen
Primary foreground
#033525darkgreen
#033525darkgreen
Secondary
#aa14f0darkviolet
#aa14f0darkviolet
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dfdae2gainsboro
#231d25black
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#f0aa14orange
#f0aa14orange
Accent foreground
#352503black
#352503black
Destructive
#de2302orangered
#fd4221orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#14f0aamediumspringgreen
#14f0aamediumspringgreen

Contrast

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

Light mode
Text on background18.50:1AAA
Text on card18.50:1AAA
Primary button9.14:1AAA
Secondary button5.15:1AA
Muted text4.35:1AA Large
Accent7.40:1AAA
Destructive4.82:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button9.14:1AAA
Secondary button5.15:1AA
Muted text6.01:1AA
Accent7.40:1AAA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 175.503);
  --foreground: oklch(0.165 0.027 172.29);
  --muted: oklch(0.894 0.013 315.365);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(0.987 0.004 175.503);
  --popover-foreground: oklch(0.165 0.027 172.29);
  --card: oklch(0.987 0.004 175.503);
  --card-foreground: oklch(0.165 0.027 172.29);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.846 0.18 163.152);
  --primary-foreground: oklch(0.292 0.058 166.089);
  --secondary: oklch(0.574 0.282 309.949);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.786 0.16 78.431);
  --accent-foreground: oklch(0.277 0.053 82.582);
  --destructive: oklch(0.578 0.221 31.424);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.846 0.18 163.152);
  --chart-1: oklch(0.846 0.18 163.152);
  --chart-2: oklch(0.574 0.282 309.949);
  --chart-3: oklch(0.786 0.16 78.431);
  --chart-4: oklch(0.588 0.277 310.921);
  --chart-5: oklch(0.855 0.184 162.786);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.01 175.75);
  --foreground: oklch(0.994 0.002 175.556);
  --muted: oklch(0.241 0.018 315.107);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0.138 0.01 175.75);
  --popover-foreground: oklch(0.994 0.002 175.556);
  --card: oklch(0.138 0.01 175.75);
  --card-foreground: oklch(0.994 0.002 175.556);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.846 0.18 163.152);
  --primary-foreground: oklch(0.292 0.058 166.089);
  --secondary: oklch(0.574 0.282 309.949);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.786 0.16 78.431);
  --accent-foreground: oklch(0.277 0.053 82.582);
  --destructive: oklch(0.655 0.227 32.256);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.846 0.18 163.152);
  --chart-1: oklch(0.846 0.18 163.152);
  --chart-2: oklch(0.574 0.282 309.949);
  --chart-3: oklch(0.786 0.16 78.431);
  --chart-4: oklch(0.588 0.277 310.921);
  --chart-5: oklch(0.855 0.184 162.786);
}