prisme-components-react

1.4.0 • Public • Published

prisme-components-react

npm

React components for the Prisme Design System.

Getting Started

Run the following command using npm:

npm install -S prisme-components-react

Or using yarn:

yarn add prisme-components-react

ThemeProvider

Wrap the root of your application with the ThemeProvider component, which adds the Design System theme to context for use in styled-components and sets typographic defaults. This should only be included once in your application.

The ThemeProvider is a wrapper around styled-components' ThemeProvider.

import React from 'react';
import { ThemeProvider } from 'prisme-components-react';

class App extends React.Component {
  render() {
    return (
      <ThemeProvider>
        <h1>Hello</h1>
      </ThemeProvider>
    )
  }
}

Fonts

Prisme uses the Roboto and Fira Sans fonts, be sure to include a link in your document <head>.

 <link href="https://fonts.googleapis.com/css?family=Fira+Sans:400,700|Roboto:100,400&display=swap" rel="stylesheet">

Components

View them here.

Package Sidebar

Install

npm i prisme-components-react

Weekly Downloads

0

Version

1.4.0

License

MIT

Unpacked Size

40 kB

Total Files

36

Last publish

Collaborators

  • beanpup.py