Total for shadcn/ui

Total is a shadcn/ui theme built around a neutral gray primary color (#424242) with neutral gray accents (#424242). The light mode uses a neutral background (#fdfbfb). Dark mode keeps the neutral gray primary (#424242) on a red-tinted background (#0d0707).

Color palette

TokenLightDark
Background
#fdfbfbsnow
#0d0707black
Foreground
#080202black
#fdfbfbsnow
Card
#fcf8f8snow
#110909black
Card foreground
#040101black
#ffffffwhite
Popover
#fdfbfbsnow
#0d0707black
Popover foreground
#080202black
#fdfbfbsnow
Primary
#424242darkslategray
#424242darkslategray
Primary foreground
#dbdbdbgainsboro
#dbdbdbgainsboro
Secondary
#424242darkslategray
#424242darkslategray
Secondary foreground
#dbdbdbgainsboro
#dbdbdbgainsboro
Muted
#e2dadagainsboro
#251d1dblack
Muted foreground
#625050dimgray
#af9d9ddarkgray
Accent
#424242darkslategray
#424242darkslategray
Accent foreground
#dbdbdbgainsboro
#dbdbdbgainsboro
Destructive
#a20402darkred
#fd2926crimson
Destructive foreground
#ffd7d7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#424242darkslategray
#424242darkslategray

Contrast

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

Light mode
Text on background20.04:1AAA
Text on card19.70:1AAA
Primary button7.22:1AAA
Secondary button7.22:1AAA
Muted text5.48:1AA
Accent7.22:1AAA
Destructive6.26:1AA
Dark mode
Text on background19.37:1AAA
Text on card19.71:1AAA
Primary button7.22:1AAA
Secondary button7.22:1AAA
Muted text6.38:1AA
Accent7.22:1AAA
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 17.194);
  --foreground: oklch(0.105 0.016 20.126);
  --muted: oklch(0.894 0.009 17.32);
  --muted-foreground: oklch(0.451 0.024 18.076);
  --popover: oklch(0.991 0.002 17.194);
  --popover-foreground: oklch(0.105 0.016 20.126);
  --card: oklch(0.982 0.004 17.231);
  --card-foreground: oklch(0.083 0.013 20.126);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.38 0 180);
  --primary-foreground: oklch(0.892 0 180);
  --secondary: oklch(0.38 0 180);
  --secondary-foreground: oklch(0.892 0 180);
  --accent: oklch(0.38 0 180);
  --accent-foreground: oklch(0.892 0 180);
  --destructive: oklch(0.448 0.182 29.347);
  --destructive-foreground: oklch(0.913 0.044 19.14);
  --ring: oklch(0.38 0 180);
  --chart-1: oklch(0.38 0 180);
  --chart-2: oklch(0.38 0 180);
  --chart-3: oklch(0.38 0 180);
  --chart-4: oklch(0.409 0 190.305);
  --chart-5: oklch(0.377 0.005 17.398);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.012 18.732);
  --foreground: oklch(0.991 0.002 17.194);
  --muted: oklch(0.241 0.012 18.051);
  --muted-foreground: oklch(0.711 0.021 17.658);
  --popover: oklch(0.138 0.012 18.732);
  --popover-foreground: oklch(0.991 0.002 17.194);
  --card: oklch(0.15 0.014 18.881);
  --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.38 0 180);
  --primary-foreground: oklch(0.892 0 180);
  --secondary: oklch(0.38 0 180);
  --secondary-foreground: oklch(0.892 0 180);
  --accent: oklch(0.38 0 180);
  --accent-foreground: oklch(0.892 0 180);
  --destructive: oklch(0.638 0.242 28.142);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.38 0 180);
  --chart-1: oklch(0.38 0 180);
  --chart-2: oklch(0.38 0 180);
  --chart-3: oklch(0.38 0 180);
  --chart-4: oklch(0.409 0 190.305);
  --chart-5: oklch(0.377 0.005 17.398);
}