Skip to content

saadshd/mui-theme-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

MUI Theme Builder

A free visual theme editor for Material UI (MUI).
Customize palette, typography, and shape — preview live, export production-ready code.

MUI Theme Builder

Preview


Features

Palette Editor

  • Edit all 6 semantic color roles — primary, secondary, error, warning, info, success
  • Control background, text, divider, common colors, and the full grey scale
  • HEX, RGBA, and HSLA input modes with a color picker
  • Auto-generate light/dark/contrastText from any main color
  • Per-color reset buttons, recently used colors
  • Reorderable color roles — drag any of the 6 semantic color accordions to rearrange them; order is saved to localStorage
  • Generate palette from brand color — pick a single hex (or use the color picker) to instantly generate all 6 semantic roles using color theory; contrastText is always WCAG-safe
  • Color harmony panel — derives complementary, analogous, triadic, and split-complementary palettes from your primary color; apply any suggestion with one click
  • WCAG contrast badge on each semantic color — shows the contrast ratio between main and contrastText, colored green (AA/AAA pass), amber, or red; includes a one-click fix button to set the highest-contrast text color automatically
  • WCAG accessibility report — full modal listing every foreground/background pair (semantic colors + text-on-background combinations) scored with AA and AAA chips; per-row fix buttons and a "Fix all" button auto-correct failing pairs without creating circular conflicts
  • Gradient backgrounds — toggle any background (default or paper) between solid color and gradient; inline editor with angle presets (0°–270°), custom angle input, and independent color pickers for each stop; preview and all Paper/Card/Dialog components reflect the gradient live
  • Saved swatches library — bookmark icon inside any color picker saves that color to a persistent library (up to 20); saved swatches appear in every picker below "recently used" with hover-to-delete; shared across all color fields and sessions

Typography

  • Pick any Google Font via autocomplete — or type any font name
  • Set a separate heading font (h1–h6) independent of the body font
  • Control base font size and per-variant styles (size, weight, line height, letter spacing)
  • Live font preview panel — shows heading and body fonts side by side when both are set

Shape & Spacing

  • Global border radius with Sharp / Default / Rounded / Pill presets
  • Spacing unit slider
  • Live shape preview

Live Preview

  • 10 page templates — switch between Dashboard, Landing, Blog, Auth (sign in/up), Settings, Kanban, Analytics, Inbox, Social feed, and Pricing from the layers icon in the preview toolbar; each template uses your full theme live
  • Full e-commerce dashboard driven entirely by your theme
  • Device modes — Mobile (390px), Tablet (768px), Desktop (full width)
  • Realistic device frames with dynamic island, status bar, volume buttons
  • Color blindness simulation — preview your theme as seen with protanopia, deuteranopia, tritanopia, or achromatopsia; toggle from the eye icon in the preview toolbar

Component Showcase

  • 35 interactive MUI component demos — Inputs, Data Display, Feedback, Navigation
  • Every demo renders inside your live theme instantly
  • Search, pin, and deep-link to any component
  • Component overrides editor coming soon — set default props per component directly from the UI

Export

  • 10+ export formats — JS, TS, JSX, Styled Components, Emotion, CSS Variables, Tailwind config, Figma Tokens, and more
  • Monaco editor with syntax highlighting
  • Copy to clipboard or download as file

Other

  • Light / Dark mode toggle
  • Undo / Redo — 50-step history (Ctrl+Z / Ctrl+Y, or buttons in the toolbar)
  • Saved themes — save up to 20 named themes to localStorage; load, rename, duplicate, or delete them from the bookmark drawer in the toolbar
  • Checkpoints — save quick snapshots of your current state and restore any of them later (up to 15, newest first); accessible from the Checkpoints tab in the bookmark drawer
  • Change log — the Changes tab in the bookmark drawer lists every token edited this session with old → new values and color swatches; clears on page refresh
  • Share via URL — click the link icon in the toolbar to copy a shareable URL that encodes your entire theme; opening the link restores the exact theme instantly
  • Token search — search bar at the top of the editor panel; type any token name, path, or value (e.g. "primary", "border", "#1976") to instantly filter all ~150 theme tokens across palette, typography, and shape; click a result to jump to that editor tab
  • Command paletteCtrl+K opens a searchable palette to jump to any editor section, switch device/preview mode, load a saved theme, or trigger any action
  • Keyboard shortcuts — press ? to open the shortcuts panel; highlights include:
    • D — toggle dark/light mode
    • M / T / W — switch to Mobile / Tablet / Desktop device view
    • P / C — switch to Preview / Components tab
    • F — toggle full-screen preview (hides the editor panel)
    • Ctrl+S — save current theme (saves to active theme if one is set, otherwise opens the bookmark drawer)
    • Ctrl+E — open export dialog
    • Ctrl+Z / Ctrl+Y — undo / redo
    • / — focus component search
  • Export badge — a dot on the export button signals when your theme has unsaved changes
  • Theme persists across sessions (localStorage)
  • Fully responsive — works on mobile

Reporting Issues & Feature Requests

Found a bug or have an idea?
Open an issue →

Please include:

  • For bugs: what you did, what you expected, what happened (+ browser/OS)
  • For features: what you want and why it would be useful

Roadmap

Active development is ongoing. Follow this repo to get notified of updates.

Coming soon:

  • Custom width input — type any pixel value to preview your theme at that exact viewport width
  • Landscape orientation toggle — rotate the mobile / tablet device frame 90° to test landscape layouts
  • Custom JSX slot — paste your own component and preview it live inside ThemeProvider with your active theme
  • Component overrides panel — per-component defaults editor (Button variant, TextField variant, Card elevation, and more) as a dedicated tab in the editor panel
  • "Affected by your theme" badge — highlights which component demos are visually changed by your current theme settings
  • "What uses this token?" — click any token in the editor to see which components it affects, highlighted live in the preview
  • Right-click to edit — right-click any element in the preview to jump directly to the token that controls it

About

Visual MUI theme editor — issues & feedback

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors