mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
78 lines
6.7 KiB
JavaScript
78 lines
6.7 KiB
JavaScript
|
import { addons } from '@storybook/addons';
|
||
|
import { create } from '@storybook/theming/create';
|
||
|
|
||
|
|
||
|
// brandImage fix for known SB webpack issue where SVGs aren't served locally when imported.
|
||
|
const logoAsPath = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkwIiBoZWlnaHQ9IjMyIiB2aWV3Qm94PSIwIDAgMTkwIDMy\
|
||
|
IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMTYgMzEuMTg2NEMyNC4zODczIDMxLj\
|
||
|
E4NjQgMzEuMTg2NSAyNC4zODcyIDMxLjE4NjUgMTZDMzEuMTg2NSA3LjYxMjc2IDI0LjM4NzMgMC44MTM1NiAxNiAwLjgxMzU2QzcuNjEyOCAw\
|
||
|
LjgxMzU2IDAuODEzNTk5IDcuNjEyNzYgMC44MTM1OTkgMTZDMC44MTM1OTkgMjQuMzg3MiA3LjYxMjggMzEuMTg2NCAxNiAzMS4xODY0WiIgZm\
|
||
|
lsbD0id2hpdGUiLz4KPHBhdGggZD0iTTE2IDBDNy4xNjM0NCAwIDAgNy4xNjM0NCAwIDE2QzAgMjQuODM2NiA3LjE2MzQ0IDMyIDE2IDMyQzI0\
|
||
|
LjgzNjYgMzIgMzIgMjQuODM2NiAzMiAxNkMzMiA3LjE2MzQ0IDI0LjgzNjYgMCAxNiAwWk0xNiAxLjYyNzEyQzIzLjkzNzkgMS42MjcxMiAzMC\
|
||
|
4zNzI5IDguMDYyMDggMzAuMzcyOSAxNkMzMC4zNzI5IDIzLjkzNzkgMjMuOTM3OSAzMC4zNzI5IDE2IDMwLjM3MjlDOC4wNjIwOCAzMC4zNzI5\
|
||
|
IDEuNjI3MTIgMjMuOTM3OSAxLjYyNzEyIDE2QzEuNjI3MTIgOC4wNjIwOCA4LjA2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NjUgMjIuNjAwNiAxNj\
|
||
|
cuODI5IDIwLjg5OTQgMTY3LjgyOSAxOC4zOTg0VjYuNjgwNjZaTTE4Ny4zOTMgMjVWNi42ODA2NkgxODQuMTE3VjI1SDE4Ny4zOTNaIiBmaWxs\
|
||
|
PSJibGFjayIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyIiB4MT0iMTYuMTgwNyIgeTE9IjI3LjM4OTgiIHgyPS\
|
||
|
IxNi4xODA3IiB5Mj0iNC42MTAxNyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjNzQwMEUxIi8+\
|
||
|
CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzQwMDBCRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=';
|
||
|
|
||
|
addons.setConfig({
|
||
|
theme: create({
|
||
|
base: 'light',
|
||
|
colorPrimary: 'rgba(51, 52, 71, 1)',
|
||
|
colorSecondary: 'rgba(64, 0, 191, 1)',
|
||
|
brandImage: logoAsPath,
|
||
|
appBg: 'white',
|
||
|
appContentBg: 'rgba(240, 240, 240, 1)',
|
||
|
appBorderColor: 'rgba(240, 240, 240, 1)',
|
||
|
appBorderRadius: 3,
|
||
|
brandUrl: 'https://insomnia.rest',
|
||
|
mainFill: 'rgba(64, 0, 191, 1)',
|
||
|
mainTextColor: 'rgba(64, 0, 191, 1)',
|
||
|
}),
|
||
|
});
|