💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀
💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀💀
ui library for emjpm
Storybook with auto docs can be found here https://emjpm-design-system.netlify.com
Components
Core Package
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/
yarn add theme-ui @emotion/core @mdx-js/react// 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>
)you can use the package @socialgouv/emjpm-ui-global-style and insert it in your head on anywhere you need
in exemple
import { GlobalStyle } from '@socialgouv/emjpm-ui-global-style'
const App =() => (
<div>
<GlobalStyle/>
</div>
)you can find the core component in that package.
exemple usage :
import {Button} from "@socialgouv/emjpm-ui-core"
const App =() => (
<div>
<Button>Content<Button/>
</div>
)Trigger a custom build on Travis (in the "More options" right menu) on the master branch with a custom config:
env:
global:
- RELEASE=trueyarn generate:componentyarn generate:coreyarn generate