Anasayfaya Dön
Yayınlandı: Çar May 13 2026EN
#MUI#shadcn#React#Material UI#Theming
İçindekiler

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
Önceki How to Synchronize Obsidian Vault Using Git (PC + Android)
Sonraki Coolify Notifications to Gotify with n8n
Rastgele Insta Public Archiver

Arşivde ara

Yazılar, gist'ler, projeler, depolar ve bağlantılar tek bir dizinde.

Beklenmeyen bir hata oluştu. Yeniden yükle