Decimal for shadcn/ui

Decimal is a shadcn/ui theme built around a muted deep cyan primary color (#22363a) with muted deep blue accents (#222a3a). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted deep cyan primary (#22363a) on a cyan-tinted background (#040a0b).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#040a0bblack
Foreground
#000000black
#f7f8f8whitesmoke
Card
#fcfdfdwhite
#040a0bblack
Card foreground
#000000black
#f7f8f8whitesmoke
Popover
#fcfdfdwhite
#040a0bblack
Popover foreground
#000000black
#f7f8f8whitesmoke
Primary
#22363adarkslategray
#22363adarkslategray
Primary foreground
#b8d1d5lightsteelblue
#b8d1d5lightsteelblue
Secondary
#223a31darkslategray
#223a31darkslategray
Secondary foreground
#b8d5cbsilver
#b8d5cbsilver
Muted
#d6e6e0gainsboro
#192924black
Muted foreground
#404443darkslategray
#bbbfbdsilver
Accent
#222a3adarkslategray
#222a3adarkslategray
Accent foreground
#b8c3d5lightsteelblue
#b8c3d5lightsteelblue
Destructive
#cb2310firebrick
#ed3621orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#22363adarkslategray
#22363adarkslategray

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button7.89:1AAA
Secondary button7.82:1AAA
Muted text7.63:1AAA
Accent8.06:1AAA
Destructive5.54:1AA
Dark mode
Text on background18.72:1AAA
Text on card18.72:1AAA
Primary button7.89:1AAA
Secondary button7.82:1AAA
Muted text8.15:1AAA
Accent8.06:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 209.464);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.911 0.019 172.971);
  --muted-foreground: oklch(0.384 0.006 173.131);
  --popover: oklch(0.993 0.002 209.464);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.993 0.002 209.464);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.318 0.027 209.722);
  --primary-foreground: oklch(0.844 0.027 209.433);
  --secondary: oklch(0.325 0.034 170.056);
  --secondary-foreground: oklch(0.85 0.034 172.353);
  --accent: oklch(0.286 0.031 262.554);
  --accent-foreground: oklch(0.814 0.029 262.953);
  --destructive: oklch(0.542 0.204 30.513);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.318 0.027 209.722);
  --chart-1: oklch(0.318 0.027 209.722);
  --chart-2: oklch(0.325 0.034 170.056);
  --chart-3: oklch(0.286 0.031 262.554);
  --chart-4: oklch(0.359 0.038 169.935);
  --chart-5: oklch(0.321 0.029 209.819);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.012 206.98);
  --foreground: oklch(0.978 0.001 209.464);
  --muted: oklch(0.265 0.024 170.589);
  --muted-foreground: oklch(0.8 0.005 173.398);
  --popover: oklch(0.138 0.012 206.98);
  --popover-foreground: oklch(0.978 0.001 209.464);
  --card: oklch(0.138 0.012 206.98);
  --card-foreground: oklch(0.978 0.001 209.464);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.318 0.027 209.722);
  --primary-foreground: oklch(0.844 0.027 209.433);
  --secondary: oklch(0.325 0.034 170.056);
  --secondary-foreground: oklch(0.85 0.034 172.353);
  --accent: oklch(0.286 0.031 262.554);
  --accent-foreground: oklch(0.814 0.029 262.953);
  --destructive: oklch(0.618 0.221 30.469);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.318 0.027 209.722);
  --chart-1: oklch(0.318 0.027 209.722);
  --chart-2: oklch(0.325 0.034 170.056);
  --chart-3: oklch(0.286 0.031 262.554);
  --chart-4: oklch(0.359 0.038 169.935);
  --chart-5: oklch(0.321 0.029 209.819);
}