How do i style a component ?
for example vuejs do it like this
https://vuejs.org/guide/single-file-components.html
I think because of all that components hype and react modern things and shits, everyone forgot what actually css and html are - things can be pretty easy and enough flexible, useful and scalable. Why not use one class/id for each component? What about to do the same style scoped thing and use some polyfill or something like that?
j2c, don't get me wrong, sorry :)
hf,
charlike
Thank you. No ofense taken. I´m just looking for answers and ideas, not
just questioning things.
2016-10-19 22:03 GMT+01:00 Charlike Mike Reagent [email protected]:
I think because of that all Components hype and react modern things and
shits, everyone forgot what actually css and html are - things can be
pretty easy and enough flexible, useful and scalable. Why not use one
class/id for each component? What about to do the same style scoped thing
and use some polyfill or something like that?j2c, don't get me wrong, sorry :)
hf,
charlike—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/yoshuawuyts/choo/issues/284#issuecomment-254940204,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABJ56kBfsag5eAb_rmql_uVF7RGN8UaSks5q1oW8gaJpZM4KbNxo
.
I like to use sheetify https://github.com/stackcss/sheetify
@ramstein74 i'm currently using sheetify with tachyons css, works great having re-usable global static styles as plain old classes, local static styles using inline sheetify styles, and any local dynamic styles as inline dom styles. but honestly, most approaches listed in MicheleBertoli/css-in-js will work with choo, everyone has their own opinions. :smile:
I think this question is answered now :sparkles:
Hi,
Still not clear how to style a component in choo in development.
I, for example, am trying to migrate a project to choo.js and I'm not entirely sure what's the best option to use to add the css files in the new choo.js project in dev
Is there no way of importing style.css in development in a component.js ?
The sheetify seems extremely tedious when migrating.. :(