ruby-hyperloop / hyper-component

The project has moved to Hyperstack!!
https://hyperstack.org/
MIT License
1 stars 3 forks source link

distributing components with style #4

Open janbiedermann opened 6 years ago

janbiedermann commented 6 years ago

creating components for hyperloop is cool and using them works, even if they depend on js, as this can be Hyperloop.import ed. Cool. just add it to Gemfile and ready to go. But what about stylesheets? When it comes to stylesheets, in addition to the gems, i have to instruct users to add this and that to application.css? I guess for stylesheets to work "out of the box totally automatic", we will need to have some //= require hyperloop-stylein application.css, which is a erb and in addition have a Hyperloop.import_style

catmando commented 6 years ago

I really want to add a DSL so that styles can be tied more directly to components, but still be overridden, but have it all work within ruby hyperloop

There are other projects like this both in Opal land, and in JS land

janbiedermann commented 6 years ago

For example, Hyper::Vis::Component depends on Vis.js, Vis.js comes with stylesheets, referred by Vis.js itself, not by the component, how to handle?