UNPKG

norma-library

Version:

Olos/Norma-DS. Design System based on Material UI, developed with TypeScript and Styled Components to create reusable and consistent components in web applications.

16 lines 552 B
import { createTheme, ThemeProvider } from '@mui/material'; import React from 'react'; import { newOlosPalette } from '../helpers'; export var NormaProvider = function (props) { var theme = props.theme, children = props.children; var getTheme = function () { if (theme) return theme; return createTheme({ palette: newOlosPalette, }); }; var appTheme = getTheme(); return (React.createElement(ThemeProvider, { theme: appTheme }, children)); }; //# sourceMappingURL=NormaProvider.js.map