Smelting for shadcn/ui

Smelting is a shadcn/ui theme built around a deep blue primary color (#111736) with deep yellow accents (#363111). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#111736) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#ffffffwhite
#010204black
Foreground
#030616black
#fbfcfdwhite
Card
#ffffffwhite
#010204black
Card foreground
#030616black
#fbfcfdwhite
Popover
#ffffffwhite
#010204black
Popover foreground
#030616black
#fbfcfdwhite
Primary
#111736midnightblue
#111736midnightblue
Primary foreground
#9aa5dflightsteelblue
#9aa5dflightsteelblue
Secondary
#363111darkslategray
#363111darkslategray
Secondary foreground
#c7b44ddarkkhaki
#c7b44ddarkkhaki
Muted
#f4f4f0whitesmoke
#0f0e0bblack
Muted foreground
#50504edarkslategray
#b1b1afdarkgray
Accent
#363111darkslategray
#363111darkslategray
Accent foreground
#c7b44ddarkkhaki
#c7b44ddarkkhaki
Destructive
#a21c10firebrick
#d12415firebrick
Destructive foreground
#fdeae8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#111736midnightblue
#111736midnightblue

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button7.36:1AAA
Secondary button6.28:1AA
Muted text7.31:1AAA
Accent6.28:1AA
Destructive6.65:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button7.36:1AAA
Secondary button6.28:1AA
Muted text8.98:1AAA
Accent6.28:1AA
Destructive5.28:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.131 0.037 269.598);
  --muted: oklch(0.965 0.004 98.381);
  --muted-foreground: oklch(0.43 0.002 98.39);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.131 0.037 269.598);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.131 0.037 269.598);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.218 0.062 272.751);
  --primary-foreground: oklch(0.734 0.086 276.343);
  --secondary: oklch(0.31 0.049 99.411);
  --secondary-foreground: oklch(0.767 0.125 99.341);
  --accent: oklch(0.31 0.049 99.411);
  --accent-foreground: oklch(0.767 0.125 99.341);
  --destructive: oklch(0.462 0.171 30.018);
  --destructive-foreground: oklch(0.95 0.021 23.808);
  --ring: oklch(0.218 0.062 272.751);
  --chart-1: oklch(0.218 0.062 272.751);
  --chart-2: oklch(0.31 0.049 99.411);
  --chart-3: oklch(0.31 0.049 99.411);
  --chart-4: oklch(0.351 0.057 99.366);
  --chart-5: oklch(0.216 0.065 272.311);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.01 273.912);
  --foreground: oklch(0.991 0.002 278.285);
  --muted: oklch(0.164 0.007 98.852);
  --muted-foreground: oklch(0.759 0.002 98.353);
  --popover: oklch(0.083 0.01 273.912);
  --popover-foreground: oklch(0.991 0.002 278.285);
  --card: oklch(0.083 0.01 273.912);
  --card-foreground: oklch(0.991 0.002 278.285);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.218 0.062 272.751);
  --primary-foreground: oklch(0.734 0.086 276.343);
  --secondary: oklch(0.31 0.049 99.411);
  --secondary-foreground: oklch(0.767 0.125 99.341);
  --accent: oklch(0.31 0.049 99.411);
  --accent-foreground: oklch(0.767 0.125 99.341);
  --destructive: oklch(0.554 0.208 30.062);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.218 0.062 272.751);
  --chart-1: oklch(0.218 0.062 272.751);
  --chart-2: oklch(0.31 0.049 99.411);
  --chart-3: oklch(0.31 0.049 99.411);
  --chart-4: oklch(0.351 0.057 99.366);
  --chart-5: oklch(0.216 0.065 272.311);
}