1.0.13 • Published 2 years ago
@joshuameiser/primary-theme v1.0.13
How to use
- import theme
import {theme} from '@joshuameiser/primary-theme
- Wrap theme around application (optionally add CssBaseline)
<ThemeProvider theme={theme}>
<CssBaseline />
<App>{content}</App>
</ThemeProvider>
- Add global.d.ts file with the augment import in the root folder
import "@joshuameiser/primary-theme/palette/augment";
It works without the last step, Typescript will not be able to detect the augment types though.