Count for shadcn/ui

Count is a shadcn/ui theme built around a cyan primary color (#53a7c6) with muted light cyan accents (#b7c7cc). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#53a7c6) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#ffffffwhite
#010304black
Foreground
#030d11black
#ffffffwhite
Card
#ffffffwhite
#010304black
Card foreground
#030d11black
#ffffffwhite
Popover
#ffffffwhite
#010304black
Popover foreground
#030d11black
#ffffffwhite
Primary
#53a7c6cadetblue
#53a7c6cadetblue
Primary foreground
#000000black
#000000black
Secondary
#cfd6d8lightgrey
#1f2628darkslategray
Secondary foreground
#353d41darkslategray
#b4c1c5silver
Muted
#e6e9ealavender
#151819black
Muted foreground
#49595fdarkslategray
#a0b0b6darkgray
Accent
#b7c7ccsilver
#2f444bdarkslategray
Accent foreground
#222c30darkslategray
#cddbe0gainsboro
Destructive
#981510darkred
#ea3a34crimson
Destructive foreground
#fce0dfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#53a7c6cadetblue
#53a7c6cadetblue

Contrast

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

Light mode
Text on background19.63:1AAA
Text on card19.63:1AAA
Primary button7.70:1AAA
Secondary button7.51:1AAA
Muted text5.97:1AA
Accent8.18:1AAA
Destructive6.87:1AA
Dark mode
Text on background20.64:1AAA
Text on card20.64:1AAA
Primary button7.70:1AAA
Secondary button8.33:1AAA
Muted text7.98:1AAA
Accent7.23:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.152 0.019 219.849);
  --muted: oklch(0.932 0.003 221.334);
  --muted-foreground: oklch(0.453 0.022 221.873);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.152 0.019 219.849);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.152 0.019 219.849);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.688 0.093 224.471);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.871 0.008 221.382);
  --secondary-foreground: oklch(0.355 0.013 221.686);
  --accent: oklch(0.819 0.018 221.524);
  --accent-foreground: oklch(0.285 0.016 221.974);
  --destructive: oklch(0.437 0.166 28.686);
  --destructive-foreground: oklch(0.928 0.031 20.093);
  --ring: oklch(0.688 0.093 224.471);
  --chart-1: oklch(0.688 0.093 224.471);
  --chart-2: oklch(0.871 0.008 221.382);
  --chart-3: oklch(0.819 0.018 221.524);
  --chart-4: oklch(0.894 0.006 221.366);
  --chart-5: oklch(0.692 0.097 224.776);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.094 0.009 216.468);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.206 0.005 221.522);
  --muted-foreground: oklch(0.746 0.02 221.57);
  --popover: oklch(0.094 0.009 216.468);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.094 0.009 216.468);
  --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.688 0.093 224.471);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.262 0.011 221.76);
  --secondary-foreground: oklch(0.802 0.015 221.487);
  --accent: oklch(0.372 0.029 222.439);
  --accent-foreground: oklch(0.881 0.016 221.48);
  --destructive: oklch(0.617 0.213 27.534);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.688 0.093 224.471);
  --chart-1: oklch(0.688 0.093 224.471);
  --chart-2: oklch(0.262 0.011 221.76);
  --chart-3: oklch(0.372 0.029 222.439);
  --chart-4: oklch(0.294 0.013 221.79);
  --chart-5: oklch(0.692 0.097 224.776);
}