Giter Site home page Giter Site logo

Comments (5)

dmolsen avatar dmolsen commented on May 29, 2024

Writing this down while I'm thinking of it...

On a pattern detail page the default style could be chosen. A selected a style could be chosen via the code view pop-up or added via the address bar. For example:

http://patternlab.localhost/?p=atoms-button-star&s=stars-given

This would show the atoms-button-star pattern (as it does now) and give it the style stars-given. Essentially the style could be injected via JS so no need to create multiple pattern files. Unfortunately, I think the s request var would need to be added to History which is such a pain in the ass. It would make it easy to share a particular styling of a pattern with a client though.

from patternlab-php.

lewisnyman avatar lewisnyman commented on May 29, 2024

It might be worth looking into Holograph aka Hologram for PHP - https://github.com/sumpygump/holograph

It wouldn't introduce the Ruby dependancy that KSS would.

from patternlab-php.

dmolsen avatar dmolsen commented on May 29, 2024

There is a PHP KSS library which I was looking at. I haven't fired it up yet though...

https://github.com/scaninc/kss-php/

But I'll also look at Holograph. Thanks for the heads up :)

from patternlab-php.

forjoyilive avatar forjoyilive commented on May 29, 2024

What did you end up deciding on, for this? We have a very small number of employees, and KSS would make sure Pattern Lab was up to date with the latest code and styles.

Edit: I see this is slated for an upcoming version. Whoops!

from patternlab-php.

lrobeson avatar lrobeson commented on May 29, 2024

Can anyone provide specifics on how exactly to get KSS working with PL? I've messed around with the PHP-KSS plugin but I'm still unclear on how it's all intended to work together. Is the end result supposed to be a KSS styleguide and Pattern Lab, or everything inside PL?

from patternlab-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.