Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@kushki/suka-material-ui-theme

Package Overview
Dependencies
Maintainers
18
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kushki/suka-material-ui-theme

Suk'a Material UI theme

latest
Source
npmnpm
Version
1.0.4
Version published
Weekly downloads
8
166.67%
Maintainers
18
Weekly downloads
 
Created
Source

What am I looking at? 🤔

A Material-UI theme for Suk'a Design System

Getting the theme

npm i suka-material-ui-theme --save

or

yarn add suka-material-ui-theme

Your have to also install the IBM Plex Sans typography:

npm i fontsource-ibm-plex-sans

After installing @kushki/suka-material-ui-theme, import it:

import { sukaTheme } from "@kushki/suka-material-ui-theme";

Don't forget to also import the font within your app entry file or site component:

import "fontsource-ibm-plex-sans"

Using the theme

The theme exports an named export sukaTheme that calls createMuiTheme under the hood.

To use this theme, you need to pass it as the theme prop to muiThemeProvider:

<MuiThemeProvider theme={sukaTheme}>
  // ... your app here
</MuiThemeProvider>

See the Material-UI docs on themes for more details.

It also exports different variables for us, like pallete, borderRadius, typography for use inside your code like:

import { pallete } from '@kushki/suka-material-ui-theme'

const CustomBox = ({ children }) => <div styles={{ background: pallete.secondary.main }}>{ children }</div>

Keywords

suka

FAQs

Package last updated on 15 Sep 2020

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