Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Would be great with a KSS Living Styleguide built into Radix. I've implemented a way to do it in http://github.com/vih/sport_2014.
Comments
Comment #2
shadcn CreditAttribution: shadcn at Chapter Three commentedI've been working on a styleguide for Radix. I'll push it and we can test it. I'm using Markdown to generate the styleguide.
Comment #3
lsolesen CreditAttribution: lsolesen commented@arshadcn Ok. Have you checked KSS which is inline in the CSS which makes it really easy to maintain and it will make it possible to update it right away when doing changes.
Comment #4
shadcn CreditAttribution: shadcn at Chapter Three commentedYeah kss-node was the first thing I tried. What we have right now takes some features from kss. I'll clean it up and push it this weekend. We can test :)
Comment #5
shadcn CreditAttribution: shadcn at Chapter Three commented@lsolesen, I pushed a demo theme using the Radix Styleguide Builder here: https://github.com/arshad/radix_styleguide_example. Test it out (see the README for demo and installation) and let me know what you think.
Comment #6
lsolesen CreditAttribution: lsolesen commented@arshad It looks cool. Only thing that I really like with KSS is that the docs are written directly into the SCSS files. That means you have documented your code, and can use it for something useful when refactoring and debugging. I see the idea behind this, but often the styleguide will probably get out of date with new components etc. added during the lifespan of a theme.
This off course is much better than no styleguide :)
Comment #7
shadcn CreditAttribution: shadcn at Chapter Three commentedClosing this as outdated. Feel free to reopen if not. Thank you.
Comment #8
donquixote CreditAttribution: donquixote commentedA style guide is still a desirable thing to have in Radix sub-themes. No reason why this should be considered outdated.
I am also reopening #2901879: Generate Styleguide which seems to have the same or a similar purpose. We can then decide which of them is a duplicate, if any.
Radix has moved from gulp to laravel-mix, so whatever was done in the example probably needs updating or rethinking.
Comment #9
donquixote CreditAttribution: donquixote commentedComment #10
donquixote CreditAttribution: donquixote commentedI've had some success with 'kss-webpack-plugin'. Also 'kss-bootstrap' seems to be useful.
It is not working perfectly yet, but going in a good direction.
webpack.mix.js: