@socialgouv/emjpm-ui-theme

1.9.4 • Public • Published

emjpm-ui

ui library for emjpm

Storybook with auto docs can be found here https://emjpm-design-system.netlify.com

Installation and Usage

theming

You can use @socialgouv/emjpm-ui-theme or create your own based on that one, it should respect colors and variant

To provide a theme to the app you should use https://theme-ui.com/getting-started/

install dependencies

yarn add theme-ui @emotion/core @mdx-js/react

adding theme to the app

// basic usage
import React from 'react'
import { ThemeProvider } from 'theme-ui'
import theme from '@socialgouv/emjpm-ui-theme'

const App = () => (
  <ThemeProvider theme={theme}>
    <Content/>
  </ThemeProvider>
)

Readme

Keywords

none

Package Sidebar

Install

npm i @socialgouv/emjpm-ui-theme

Weekly Downloads

1

Version

1.9.4

License

Apache-2.0

Unpacked Size

31.2 kB

Total Files

9

Last publish

Collaborators

  • revolunet
  • socialgroovybot