Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(storybook): storybook theme #1317

Merged
merged 9 commits into from
May 9, 2019
9 changes: 8 additions & 1 deletion .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { configure } from '@storybook/react'
import { configure, addParameters } from '@storybook/react'
import rbcTheme from './rbc.theme'

addParameters({
options: {
theme: rbcTheme,
},
})

function loadStories() {
require('../stories')
Expand Down
30 changes: 30 additions & 0 deletions .storybook/rbc.theme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { create } from '@storybook/theming'

export default create({
base: 'light',

colorSecondary: 'white',

// UI
appBg: 'white',

// Typography
fontBase: '"Open Sans", sans-serif',
fontCode: 'monospace',

// Text colors
textColor: 'black',
textInverseColor: 'rgba(255,255,255,0.9)',

// Toolbar default and active colors
barTextColor: 'white',
barBg: 'rgb(49, 116, 173)',

// Form colors
inputBg: 'white',
inputTextColor: 'black',
inputBorderRadius: 4,

brandTitle: 'Big Calendar',
brandUrl: 'http://intljusticemission.github.io/react-big-calendar/examples',
})