davidguttman / cssify

Simple middleware for Browserify to add css styles to the browser.
122 stars 19 forks source link

Gulp: CSS to JSON #20

Closed binarykitchen closed 8 years ago

binarykitchen commented 9 years ago

I like the idea to convert CSS into a JSON you can require(...) from any node.js app. Do you think you could create a Gulp plugin for that?

neodigm commented 8 years ago

I too like this idea. I am building a Living Style Guide browser extension. Thanks.

faergeek commented 8 years ago

Can you describe your use cases please? May be I could help

neodigm commented 8 years ago

A Living Style Guide chrome extension might allow designers / developers to browse component styles while actually on the production site. I imagine a hierarchical menu based on BEM rule names that could be used to add/remove styles in real-time. Generating that menu would be easy if the CSS were in JSON format. Gulp task automation would make it 'Living'. -Thanks

faergeek commented 8 years ago

@neodigm I think you'd better use PostCSS for that kind of functionality, cssify does not parse CSS in any way, sorry.

Take a look at https://github.com/aramk/CSSJSON or play with PostCSS, I'm not sure if it has some plugin for that or not.

neodigm commented 8 years ago

Great advise. Thanks.

faergeek commented 8 years ago

As it's not responsibility of this project I'll close this issue