Skip to content

Commit

Permalink
docs(storybook): storybook theme (jquense#1317)
Browse files Browse the repository at this point in the history
* Add Theme to storybook, for branding and site linking

* Add Theme to storybook, for branding and site linking

* updated examples
  • Loading branch information
cutterbl authored and jquense committed May 9, 2019
1 parent 884bece commit 5c5fddd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
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',
})

0 comments on commit 5c5fddd

Please sign in to comment.