Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@unicef/material-ui

Package Overview
Dependencies
Maintainers
2
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unicef/material-ui

UNICEF theme and components of material-ui for react

  • 0.4.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
98
increased by28.95%
Maintainers
2
Weekly downloads
 
Created
Source

UNICEF material-ui

Customized version for UNICEF of Material UI. Material UI is a set of ReactJS user interface components based on Google's material design written in Javascript.

You can see a Demo site and the reference documentation.

Getting started

In order to use the UNICEF's Material UI components in your React project install the npm package.

 npm install @unicef/material-ui

Usage

Adding UNICEF theme to your app

To use UNICEF theme add MuiThemeProvider at the top level of your app

// App.js
import React from "react"
import MuiThemeProvider from "@material-ui/core/styles/MuiThemeProvider"
import { theme } from "unicef-material-ui"

export default function App() {
  return <MuiThemeProvider theme={theme}>{/* Components*/}</MuiThemeProvider>
}

More info: Material-ui theming

Example project

You have an full example react project that showcases how to use the components in /example.

Development

In order to extend the components, clone the project and install the dependencies.

git clone https://github.com/unicef/unicef-material-ui.git
npm install

The following commands are available:

npm start

Builds the library of components in the distfolder.

npm start

Apart from the documentation The package comes with an example app - create-react-app - which is useful for testing and running the components.

cd example
npm install # only if it is first time
npm start

Runs the app in the development mode. Open http://localhost:3000 to view the app in the browser.

It will reload automatically upon edits. Lint errors are also displayed on the console.

npm run build

Builds the component library for production. Leaves the output in the dist folder.

npm run styleguide

Generates the documentation to be viewed in http://localhost:6060.

Page reloads on any change. Lint errors are displayed in the console, too.

We use styleguidelist for documenting our custom components.

npm run styleguide:build

Builds the styleguide for production. The output is stored in styleguide folder.

License

Distributed under GLPv3.

FAQs

Package last updated on 18 Feb 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc