wingsuit-designsystem / wingsuit

Twig for Storybook
GNU General Public License v2.0
93 stars 16 forks source link

Change source/default path to source/myproject #129

Closed mhlozek closed 3 years ago

mhlozek commented 3 years ago

Hi there, is it possible to change path source/default to something like source/nameofmyproject ? I tried it but get errors Can't resolve 'wsdesignsystem/namespaces' and Can't resolve 'wspatterns'

christianwiedemann commented 3 years ago

Hi,

you can set the path to the designsystem in your wingsuit.config.js

Checkout the config stub.

mhlozek commented 3 years ago

Thank you for your reply, I checked config stub and it works.

And just one question (or should I create new issue?):

How could I change theme logo (or the whole storybook theme)? I tried it in manager.js, but it has no effect. Could you give me some example/snippet please?

mhlozek commented 3 years ago

Just set custom theme in preview.js, but why it doesn't work in manager.js?

christianwiedemann commented 3 years ago

This should work.


// .storybook/manager.js

import { addons } from '@storybook/addons';
import { themes } from '@storybook/theming';

themes.dark.brandImage = 'images/logo.svg';
addons.setConfig({
  theme: themes.dark,
});
mhlozek commented 3 years ago

Great. Thank you very much!