npm.io
0.1.1 • Published 5 years ago

@20i/mui-theme

Licence
COPYRIGHT 20i
Version
0.1.1
Deps
0
Size
31 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

@20i/mui-theme

A default MUI theme and a function for creating a custom theme by overriding the defaults.

Peer dependency on MUI

"@material-ui/core": "^4.12.1"

Installation

npm login
npm i @20i/mui-theme

Usage

import { createTheme } from "@20i/mui-theme"

// Pass in any valid MUI theme fields and they'll be merged with the default theme
const theme = createTheme({
  typography: {
    fontFamily: ["Ariel", "san-serif"].join(","),
    fontSize: 14,
  }
})