fds-mui-theme
Getting started
yarn install fds-mui-theme
Usage
Apply base theme to your app
;; const appTheme = ; const App = <MuiThemeProvider theme=appTheme> <Root /> </MuiThemeProvider>;
Nesting themes for specific features
Some features have their own secondary color. You can nest theme providers to accomplish this...
;;; const appTheme = ; // Create a feature-specific theme in which the secondary// color is Form Design System violetconst featureTheme = const Container = <Fragment> <MuiThemeProvider theme=appTheme> <p>This area uses a default app theme</p> </MuiThemeProvider> <MuiThemeProvider theme=featureTheme> <p>This area uses our custom app theme</p> </MuiThemeProvider> </Fragment>;