Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
Add support for global tokens and array token values.
Browse files Browse the repository at this point in the history
  • Loading branch information
elving committed Jul 19, 2019
1 parent 14f13e0 commit 8adc6a4
Show file tree
Hide file tree
Showing 103 changed files with 1,953 additions and 1,599 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
.jest-*
dist
node_modules
lerna-debug.log
lerna-debug.log
1 change: 1 addition & 0 deletions .storybook/addons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@storybook/addon-backgrounds/register'
28 changes: 10 additions & 18 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
import React from 'react'
import { configure, addDecorator } from '@storybook/react'
import { addDecorator, addParameters, configure } from '@storybook/react'
import centered from '@storybook/addon-centered/react'

const files = require.context('../packages', true, /.story.js$/)

function loadStories() {
addDecorator((story) => (
<div
style={{
width: '100vw',
display: 'flex',
overflow: 'auto',
minHeight: '100vh',
alignItems: 'center',
alignContent: 'center',
justifyContent: 'center',
}}
>
{story()}
</div>
))

addDecorator(centered)
files.keys().forEach((filename) => files(filename))
}

addParameters({
backgrounds: [
{ name: 'Dark Background', value: '#212025', default: true },
{ name: 'Light Background', value: '#f9f9f9' },
],
})

configure(loadStories, module)
Loading

0 comments on commit 8adc6a4

Please sign in to comment.