Storybook as subtheme kit

Created on 10 May 2021, about 4 years ago
Updated 25 March 2024, about 1 year ago

Problem/Motivation

Merge effort in Bootstrap Storybook β†’ as a subtheme. Has gotten initial agreement from Bootstrap Storybook maintainer. See #3212695: Join efforts in Radix, Storybook as a subtheme kit β†’ .

We could even have Storybook version and Storybook with Critical CSS version as separate kits if there is interest.

Remaining tasks

  • Merge fixes, useful changes into Radix.
  • Storybook version as a subtheme kit.
πŸ“Œ Task
Status

Fixed

Version

5.0

Component

Code

Created by

πŸ‡²πŸ‡ΎMalaysia ckng

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States jcandan

    Was this abandoned? I don't see any Storybook implementation in the 5.0.x, 5.1.x, or 6.0.x branches.

  • @jcandan, it is on our todo list, but I am considering it with the Storybook β†’ module instead of Twing/TwigJS approaches. but that would be the integration would be done once we are stable with the 6.x branch and if I get some free time, didn't get the chance to look into it much.

  • πŸ‡ΊπŸ‡ΈUnited States jcandan

    I'd imagine that, until this is added to Radix, in order to adopt Storybook β†’ , we'd just have to create our own *.stories.twig files in our sub-theme, and for those, a *.compentent.yml with the replaces key pointing to the target component in Radix. Anything else I may be missing?

  • @jcandan It depends on what you prefer, but yes, that's one way. I'd like to support Storybook as well out of the box, but it's rather an extra overhead and time-consuming, and most of our users in Drupal don't really use Storybook that often, so I prefer to use my free time for the theme itself or possibly extend it into Tailwind

Production build 0.71.5 2024