Skip to content

Commit

Permalink
re-added the default themes from backstage
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-dot committed Jul 1, 2024
1 parent 82fa286 commit b22fa42
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion backstage/packages/app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
import { ReportIssue } from '@backstage/plugin-techdocs-module-addons-contrib';
import { TechDocsAddons } from '@backstage/plugin-techdocs-react';
import { UserSettingsPage } from '@backstage/plugin-user-settings';
import { UnifiedThemeProvider } from '@backstage/theme';
import { themes, UnifiedThemeProvider } from '@backstage/theme';
import NightsStay from '@material-ui/icons/NightsStay';
import LightIcon from '@material-ui/icons/WbSunny';
import React from 'react';
Expand Down Expand Up @@ -80,6 +80,24 @@ const app = createApp({
<UnifiedThemeProvider theme={diamondDarkTheme} children={children} />
),
},
{
id: 'default-dark-theme',
title: 'Backstage Default Dark Theme',
variant: 'dark',
icon: <NightsStay />,
Provider: ({ children }) => (
<UnifiedThemeProvider theme={themes.dark} children={children} />
),
},
{
id: 'default-light-theme',
title: 'Backstage Default Light Theme',
variant: 'light',
icon: <LightIcon />,
Provider: ({ children }) => (
<UnifiedThemeProvider theme={themes.light} children={children} />
),
},
],
});

Expand Down

0 comments on commit b22fa42

Please sign in to comment.