mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-13 02:15:58 -05:00
Add dark mode to storybook (#39656)
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import { addons } from 'storybook/manager-api';
|
||||
|
||||
import theme from './storybook-theme';
|
||||
import { themes } from 'storybook/theming';
|
||||
|
||||
addons.setConfig({
|
||||
theme,
|
||||
theme: {
|
||||
...themes.normal,
|
||||
brandTitle: 'Mastodon Storybook',
|
||||
brandImage: 'logo.svg',
|
||||
colorSecondary: '#6364FF',
|
||||
},
|
||||
});
|
||||
|
||||
21
.storybook/static/logo.svg
Normal file
21
.storybook/static/logo.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 7.3 KiB |
@@ -1,7 +0,0 @@
|
||||
import { create } from 'storybook/theming';
|
||||
|
||||
export default create({
|
||||
base: 'light',
|
||||
brandTitle: 'Mastodon Storybook',
|
||||
brandImage: 'https://joinmastodon.org/logos/wordmark-black-text.svg',
|
||||
});
|
||||
Reference in New Issue
Block a user