Socket
Book a DemoInstallSign in
Socket

@borealisgroup/mui-theme

Package Overview
Dependencies
Maintainers
3
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@borealisgroup/mui-theme

Get the Borealis Material UI theme that can directly be used in your createMuiTheme function

0.8.139
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
3
Weekly downloads
 
Created
Source

npm bundle size

Make all your Material UI components consistent with the Borealis design language

yarn add @borealisgroup/mui-theme @material-ui/core
import { createMuiTheme, ThemeProvider as MuiThemeProvider } from '@material-ui/core/styles';
import borealisMaterialUiTheme from '@borealisgroup/mui-theme';

const muiTheme = createMuiTheme(borealisMaterialUiTheme);

export const App = () => (
  <MuiThemeProvider theme={muiTheme}>
    {/* all your Material UI components here will be Borealis themed */}
  </MuiThemeProvider>
);

If you want to update the theme for all our projects, follow the next steps:

  • Go to the Material UI Theme Designer
  • Make changes to the theming object
  • Verify in the preview panel that your changes look good
  • Hit the save icon
  • Trigger a new build on BitBucket pipelines
  • Once the build is done, this package is automatically updated with your theme adjustments

Making changes for your own project

You can easily make changes to the theme that will only effect your own project

import { createMuiTheme, ThemeProvider as MuiThemeProvider } from '@material-ui/core/styles';
import borealisMaterialUiTheme from '@borealisgroup/mui-theme'; 
import {
  ThemeOptions,
} from "@material-ui/core";

const customizedBorealisTheme: ThemeOptions = {
  ...borealisMaterialUiTheme,
  palette: {
    ...borealisMaterialUiTheme.palette,
    primary: {
      ...borealisMaterialUiTheme.palette?.primary,
      main: 'red'
    }
  }
}
const muiTheme = createMuiTheme(customizedBorealisTheme);

export const App = () => (
  <MuiThemeProvider theme={muiTheme}>
    {/* all your Material UI components here will be Borealis themed and also include your project customizations */}
  </MuiThemeProvider>
);

Keywords

material-ui

FAQs

Package last updated on 06 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.