diff --git a/.storybook/metamask-storybook-theme.js b/.storybook/metamask-storybook-theme.js index 707afc6e9..6623f4fe0 100644 --- a/.storybook/metamask-storybook-theme.js +++ b/.storybook/metamask-storybook-theme.js @@ -7,4 +7,8 @@ export default create({ base: 'light', brandTitle: 'MetaMask Storybook', brandImage: logo, + + // Typography + fontBase: 'Euclid, Roboto, Helvetica, Arial, sans-serif', + fontCode: 'Inconsolata, monospace', }); diff --git a/.storybook/preview-head.html b/.storybook/preview-head.html index 3f66a651e..4ac472636 100644 --- a/.storybook/preview-head.html +++ b/.storybook/preview-head.html @@ -7,50 +7,21 @@ diff --git a/.storybook/preview.js b/.storybook/preview.js index 89fdb4252..9e6fe2206 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -1,7 +1,6 @@ import React, { useEffect } from 'react'; import { addDecorator, addParameters } from '@storybook/react'; import { action } from '@storybook/addon-actions'; -import { withKnobs } from '@storybook/addon-knobs'; import { Provider } from 'react-redux'; import configureStore from '../ui/store/store'; import '../ui/css/index.scss'; @@ -13,6 +12,7 @@ import testData from './test-data.js'; import { Router } from 'react-router-dom'; import { createBrowserHistory } from 'history'; import { _setBackgroundConnection } from '../ui/store/actions'; +import MetaMaskStorybookTheme from './metamask-storybook-theme'; addParameters({ backgrounds: { @@ -22,6 +22,9 @@ addParameters({ { name: 'dark', value: '#333333' }, ], }, + docs: { + theme: MetaMaskStorybookTheme, + }, options: { storySort: { order: ['Getting Started', 'Components', ['UI', 'App'], 'Pages'], @@ -82,5 +85,4 @@ const metamaskDecorator = (story, context) => { ); }; -addDecorator(withKnobs); addDecorator(metamaskDecorator);