Return to Home
Published: Wed May 13 2026EN
#MUI#shadcn#React#Material UI#Theming
Table of Contents

shadcn Theme Configuration for MUI

A single, app-wide dark theme for MUI that mirrors shadcn's default dark aesthetic. It maps zinc color tokens to MUI's palette, typography, and component overrides, producing bordered surfaces, near-white primary actions, and the subtle ring focus style shadcn is known for.

Key Design Decisions

  • Background: zinc-950 (#09090B) for both default and paper surfaces
  • Text: zinc-200 (#E4E4E7) primary, zinc-400 (#A1A1AA) secondary
  • Border/Divider: zinc-800 (#27272A)
  • Primary: near-white (#FAFAFA) with dark contrast text — matching shadcn's dark-mode primary
  • Secondary: neutral surface (#27272A)
  • Border Radius: 0.5rem (8px) applied via theme.shape and component overrides
  • Focus Ring: zinc-300 (#D4D4D8) with a subtle 3px box-shadow for that shadcn ring feel

Full Theme

TSX
Previous How to Synchronize Obsidian Vault Using Git (PC + Android)
Next Coolify Notifications to Gotify with n8n
Random GitHub Account Notifications to Gotify with n8n

Search the archive

Posts, gists, projects, repositories, and links in one index.

An unhandled error has occurred. Reload