Total for shadcn/ui

Total is a shadcn/ui theme built around a near-black primary color (#040201) with near-black accents (#010304). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#040201) on an orange-tinted background (#0c0704).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0704black
Foreground
#140b06black
#ffffffwhite
Card
#ffffffwhite
#0c0704black
Card foreground
#140b06black
#ffffffwhite
Popover
#ffffffwhite
#0c0704black
Popover foreground
#140b06black
#ffffffwhite
Primary
#040201black
#040201black
Primary foreground
#c8916frosybrown
#c8916frosybrown
Secondary
#010304black
#010304black
Secondary foreground
#6fa6c8cornflowerblue
#6fa6c8cornflowerblue
Muted
#dee4e7gainsboro
#181d21black
Muted foreground
#3d4a52darkslategray
#adbac2silver
Accent
#010304black
#010304black
Accent foreground
#6fa6c8cornflowerblue
#6fa6c8cornflowerblue
Destructive
#7c2803saddlebrown
#f94f06orangered
Destructive foreground
#fdcab4peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#040201black
#040201black

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button7.61:1AAA
Secondary button7.84:1AAA
Muted text7.12:1AAA
Accent7.84:1AAA
Destructive6.61:1AA
Dark mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button7.61:1AAA
Secondary button7.84:1AAA
Muted text8.55:1AAA
Accent7.84:1AAA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.16 0.019 55.944);
  --muted: oklch(0.916 0.008 234.625);
  --muted-foreground: oklch(0.4 0.022 235.387);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.16 0.019 55.944);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.16 0.019 55.944);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.092 0.008 61.084);
  --primary-foreground: oklch(0.702 0.082 52.823);
  --secondary: oklch(0.092 0.008 228.956);
  --secondary-foreground: oklch(0.7 0.077 236.676);
  --accent: oklch(0.092 0.008 228.956);
  --accent-foreground: oklch(0.7 0.077 236.676);
  --destructive: oklch(0.401 0.125 39.259);
  --destructive-foreground: oklch(0.879 0.065 44.38);
  --ring: oklch(0.092 0.008 61.084);
  --chart-1: oklch(0.092 0.008 61.084);
  --chart-2: oklch(0.092 0.008 228.956);
  --chart-3: oklch(0.092 0.008 228.956);
  --chart-4: oklch(0.146 0.013 232.781);
  --chart-5: oklch(0.092 0.009 61.57);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.014 62.132);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.227 0.011 235.241);
  --muted-foreground: oklch(0.782 0.019 234.862);
  --popover: oklch(0.133 0.014 62.132);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.133 0.014 62.132);
  --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.092 0.008 61.084);
  --primary-foreground: oklch(0.702 0.082 52.823);
  --secondary: oklch(0.092 0.008 228.956);
  --secondary-foreground: oklch(0.7 0.077 236.676);
  --accent: oklch(0.092 0.008 228.956);
  --accent-foreground: oklch(0.7 0.077 236.676);
  --destructive: oklch(0.659 0.216 37.572);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.092 0.008 61.084);
  --chart-1: oklch(0.092 0.008 61.084);
  --chart-2: oklch(0.092 0.008 228.956);
  --chart-3: oklch(0.092 0.008 228.956);
  --chart-4: oklch(0.146 0.013 232.781);
  --chart-5: oklch(0.092 0.009 61.57);
}