Aluminium for shadcn/ui

Aluminium is a shadcn/ui theme built around a near-black primary color (#070305) with near-black accents (#030705). The light mode uses a neutral background (#fdf6fa). Dark mode keeps the near-black primary (#070305) on a neutral background (#040103).

Color palette

TokenLightDark
Background
#fdf6fasnow
#040103black
Foreground
#040103black
#ffffffwhite
Card
#fdf2f8lavenderblush
#080206black
Card foreground
#000000black
#ffffffwhite
Popover
#fdf2f8lavenderblush
#080206black
Popover foreground
#000000black
#ffffffwhite
Primary
#070305black
#070305black
Primary foreground
#c379a4palevioletred
#c379a4palevioletred
Secondary
#030705black
#030705black
Secondary foreground
#79c398darkseagreen
#79c398darkseagreen
Muted
#eceeedwhitesmoke
#111312black
Muted foreground
#43564bdarkslategray
#a9bcb1darkgray
Accent
#030705black
#030705black
Accent foreground
#79c398darkseagreen
#79c398darkseagreen
Destructive
#863709saddlebrown
#e55e10chocolate
Destructive foreground
#fbd9c6bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#070305black
#070305black

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.22:1AAA
Primary button6.42:1AA
Secondary button9.71:1AAA
Muted text6.75:1AA
Accent9.71:1AAA
Destructive6.20:1AA
Dark mode
Text on background20.76:1AAA
Text on card20.54:1AAA
Primary button6.42:1AA
Secondary button9.71:1AAA
Muted text9.35:1AAA
Accent9.71:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.009 341.234);
  --foreground: oklch(0.082 0.024 341.13);
  --muted: oklch(0.948 0.003 160.943);
  --muted-foreground: oklch(0.434 0.031 159.202);
  --popover: oklch(0.971 0.014 341.348);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.971 0.014 341.348);
  --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.11 0.014 341.067);
  --primary-foreground: oklch(0.668 0.107 344.466);
  --secondary: oklch(0.121 0.012 160.966);
  --secondary-foreground: oklch(0.757 0.097 157.486);
  --accent: oklch(0.121 0.012 160.966);
  --accent-foreground: oklch(0.757 0.097 157.486);
  --destructive: oklch(0.439 0.12 44.672);
  --destructive-foreground: oklch(0.909 0.046 51.933);
  --ring: oklch(0.11 0.014 341.067);
  --chart-1: oklch(0.11 0.014 341.067);
  --chart-2: oklch(0.121 0.012 160.966);
  --chart-3: oklch(0.121 0.012 160.966);
  --chart-4: oklch(0.168 0.019 158.358);
  --chart-5: oklch(0.109 0.015 341.072);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.017 341.097);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.183 0.004 160.461);
  --muted-foreground: oklch(0.778 0.027 160.163);
  --popover: oklch(0.106 0.022 341.097);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.106 0.022 341.097);
  --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.11 0.014 341.067);
  --primary-foreground: oklch(0.668 0.107 344.466);
  --secondary: oklch(0.121 0.012 160.966);
  --secondary-foreground: oklch(0.757 0.097 157.486);
  --accent: oklch(0.121 0.012 160.966);
  --accent-foreground: oklch(0.757 0.097 157.486);
  --destructive: oklch(0.646 0.184 43.532);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.11 0.014 341.067);
  --chart-1: oklch(0.11 0.014 341.067);
  --chart-2: oklch(0.121 0.012 160.966);
  --chart-3: oklch(0.121 0.012 160.966);
  --chart-4: oklch(0.168 0.019 158.358);
  --chart-5: oklch(0.109 0.015 341.072);
}