Current Rust for shadcn/ui

Current Rust is a shadcn/ui theme built around a vivid orange primary color (#a73f16) with vivid cyan accents (#167ea7). The light mode uses a neutral background (#fefcfb). Dark mode keeps the vivid orange primary (#a73f16) on an orange-tinted background (#0e0907).

Color palette

TokenLightDark
Background
#fefcfbsnow
#0e0907black
Foreground
#0c0604black
#fcf9f8snow
Card
#fdf9f7snow
#110b08black
Card foreground
#080402black
#fdfcfcsnow
Popover
#fdf9f7snow
#110b08black
Popover foreground
#080402black
#fdfcfcsnow
Primary
#a73f16saddlebrown
#a73f16saddlebrown
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#167ea7darkcyan
#167ea7darkcyan
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d2dfe5gainsboro
#1a282ddarkslategray
Muted foreground
#4b585ddarkslategray
#a2afb4darkgray
Accent
#167ea7darkcyan
#167ea7darkcyan
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#bd0a0afirebrick
#f42a2acrimson
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#eceaealinen
#201e1dblack
Input
#eceaealinen
#201e1dblack
Ring
#a73f16saddlebrown
#a73f16saddlebrown

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.45:1AAA
Primary button6.24:1AA
Secondary button4.59:1AA
Muted text5.42:1AA
Accent4.59:1AA
Destructive6.32:1AA
Dark mode
Text on background18.93:1AAA
Text on card19.07:1AAA
Primary button6.24:1AA
Secondary button4.59:1AA
Muted text6.73:1AA
Accent4.59:1AA
Destructive4.03:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 43.106);
  --foreground: oklch(0.13 0.015 50.273);
  --muted: oklch(0.896 0.017 223.33);
  --muted-foreground: oklch(0.451 0.019 223.64);
  --popover: oklch(0.984 0.005 43.082);
  --popover-foreground: oklch(0.113 0.013 50.589);
  --card: oklch(0.984 0.005 43.082);
  --card-foreground: oklch(0.113 0.013 50.589);
  --border: oklch(0.938 0.002 43.113);
  --input: oklch(0.938 0.002 43.113);
  --primary: oklch(0.506 0.146 39.519);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.557 0.107 231.482);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.557 0.107 231.482);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.504 0.203 28.762);
  --destructive-foreground: oklch(0.989 0.005 17.24);
  --ring: oklch(0.506 0.146 39.519);
  --chart-1: oklch(0.506 0.146 39.519);
  --chart-2: oklch(0.557 0.107 231.482);
  --chart-3: oklch(0.557 0.107 231.482);
  --chart-4: oklch(0.59 0.114 231.608);
  --chart-5: oklch(0.509 0.151 39.161);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.011 45.954);
  --foreground: oklch(0.984 0.003 43.102);
  --muted: oklch(0.266 0.021 224.412);
  --muted-foreground: oklch(0.745 0.017 223.376);
  --popover: oklch(0.156 0.013 43.378);
  --popover-foreground: oklch(0.992 0.001 43.117);
  --card: oklch(0.156 0.013 43.378);
  --card-foreground: oklch(0.992 0.001 43.117);
  --border: oklch(0.237 0.004 42.991);
  --input: oklch(0.237 0.004 42.991);
  --primary: oklch(0.506 0.146 39.519);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.557 0.107 231.482);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.557 0.107 231.482);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.623 0.233 27.424);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.506 0.146 39.519);
  --chart-1: oklch(0.506 0.146 39.519);
  --chart-2: oklch(0.557 0.107 231.482);
  --chart-3: oklch(0.557 0.107 231.482);
  --chart-4: oklch(0.59 0.114 231.608);
  --chart-5: oklch(0.509 0.151 39.161);
}