The Backstage UI Themer helps you convert an existing MUI v5 theme into Backstage UI (BUI) CSS custom properties. It detects installed app themes, generates a complete set of BUI CSS variables for each theme (light and dark), and lets you preview how common BUI components look with your colors and typography. You can copy the generated CSS to the clipboard or download it as a .css file, and it works with both the old and new Backstage frontend systems without requiring any backend setup.
Run this from your Backstage repo root:
yarn add --cwd packages/app @backstage/plugin-mui-to-bui
App.tsx with <FlatRoutes>)Add a route for the page in your app:
// packages/app/src/App.tsx
import React from 'react';
import { Route } from 'react-router-dom';
import { FlatRoutes } from '@backstage/core-app-api';
import { BuiThemerPage } from '@backstage/plugin-mui-to-bui';
export const App = () => (
<FlatRoutes>
{/* ...your other routes */}
<Route path="/mui-to-bui" element={<BuiThemerPage />} />
</FlatRoutes>
);
If package discovery is enabled in your app, this plugin is picked up automatically after installation — no code changes required. Just navigate to /mui-to-bui.
If you prefer explicit registration (or don't use discovery), register the plugin as a feature. The page route (/mui-to-bui) is provided by the plugin.
// packages/app/src/App.tsx (or your app entry where you call createApp)
import React from 'react';
import { createApp } from '@backstage/frontend-defaults';
import buiThemerPlugin from '@backstage/plugin-mui-to-bui';
const app = createApp({
features: [
// ...other features
buiThemerPlugin,
],
});
export default app.createRoot();
/mui-to-bui in your Backstage app (for example http://localhost:3000/mui-to-bui)./mui-to-bui if you want a permanent navigation entry.