Add dark mode to storybook (#39656)

This commit is contained in:
Echo
2026-06-29 15:36:28 +02:00
committed by GitHub
parent 5c7e7865fc
commit 76930eb131
3 changed files with 28 additions and 10 deletions

View File

@@ -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',
},
});

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@@ -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',
});