Skip to content

Commit ae1c62d

Browse files
docs(ui): add brandImage and favicon to storybook theme (#1836)
1 parent 4c4fe63 commit ae1c62d

File tree

4 files changed

+163
-0
lines changed

4 files changed

+163
-0
lines changed

.storybook/.public/favicon.svg

Lines changed: 55 additions & 0 deletions
Loading
Lines changed: 96 additions & 0 deletions
Loading

.storybook/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const config = {
44
stories: ['../app/**/*.stories.@(js|ts)'],
55
addons: ['@storybook/addon-a11y', '@storybook/addon-docs', '@storybook/addon-themes'],
66
framework: '@storybook-vue/nuxt',
7+
staticDirs: ['./.public'],
78
features: {
89
backgrounds: false,
910
},

.storybook/manager.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { addons } from 'storybook/manager-api'
2+
import { create } from 'storybook/theming'
3+
4+
const npmxTheme = create({
5+
brandTitle: 'npmx Storybook',
6+
brandImage: '/npmx-storybook.svg',
7+
})
8+
9+
addons.setConfig({
10+
theme: npmxTheme,
11+
})

0 commit comments

Comments
 (0)