After importing the twig files from storybook I expected that the styles would be imported from storybook as well. However, while the twig templates were appropriately imported from storybook, the styles shown in storybook were not. Perhaps this was the intention, but any indication that this is the case seems to be omitted. Either that or I have missed something in the book so far.
If I was not mistaken it means that the styles included in storybook must be manually included the alps trips theme itself. The styles which are not reflected in the theme are as follows:
The nord color pallete
The tailwind typography plugin
The tailwind forms plugin
To remedy this I installed the tailwind CSS plugins in the theme directory npm install @tailwindcss/typography @tailwindcss/forms and added the safelist and theme properties to the module.exports object in project/web/themes/custom/alps_trips/tailwind.config.js. The file now appears as such:
After importing the twig files from storybook I expected that the styles would be imported from storybook as well. However, while the twig templates were appropriately imported from storybook, the styles shown in storybook were not. Perhaps this was the intention, but any indication that this is the case seems to be omitted. Either that or I have missed something in the book so far.
If I was not mistaken it means that the styles included in storybook must be manually included the alps trips theme itself. The styles which are not reflected in the theme are as follows:
To remedy this I installed the tailwind CSS plugins in the theme directory
npm install @tailwindcss/typography @tailwindcss/forms
and added the safelist and theme properties to the module.exports object inproject/web/themes/custom/alps_trips/tailwind.config.js
. The file now appears as such:Thanks for your time, hope this helps anyone else.