From 4cd957953d52e813528cce424426f5ce7135cb4b Mon Sep 17 00:00:00 2001 From: George Marshall Date: Thu, 2 Dec 2021 09:11:35 -0800 Subject: [PATCH] Updating Storybook base styles (#12862) * Adding branding and updating styles for storybook docs * Making code blocks light gray --- .storybook/manager.js | 6 +++ .storybook/metamask-storybook-theme.js | 10 +++++ .storybook/preview-head.html | 56 ++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 .storybook/manager.js create mode 100644 .storybook/metamask-storybook-theme.js create mode 100644 .storybook/preview-head.html diff --git a/.storybook/manager.js b/.storybook/manager.js new file mode 100644 index 000000000..3f32fb0ba --- /dev/null +++ b/.storybook/manager.js @@ -0,0 +1,6 @@ +import { addons } from '@storybook/addons'; +import MetaMaskStorybookTheme from './metamask-storybook-theme'; + +addons.setConfig({ + theme: MetaMaskStorybookTheme, +}); diff --git a/.storybook/metamask-storybook-theme.js b/.storybook/metamask-storybook-theme.js new file mode 100644 index 000000000..707afc6e9 --- /dev/null +++ b/.storybook/metamask-storybook-theme.js @@ -0,0 +1,10 @@ +// .storybook/YourTheme.js + +import { create } from '@storybook/theming'; +import logo from '../app/images/logo/metamask-logo-horizontal.svg'; + +export default create({ + base: 'light', + brandTitle: 'MetaMask Storybook', + brandImage: logo, +}); diff --git a/.storybook/preview-head.html b/.storybook/preview-head.html new file mode 100644 index 000000000..3f66a651e --- /dev/null +++ b/.storybook/preview-head.html @@ -0,0 +1,56 @@ + + + + +