I’m aware of React.
I think packaging your styles with your components is, philosophically, a good idea. This is what Web Components will give us. What I am hesitant about, though, is writing your CSS as JS objects. Writing your styles actually as JS doesn’t sit too well with me. Keith Grant puts it best[1] when he says:
If in 14 months you find a new view library or framework you want to try out, you're out of luck. You will have to invest a lot of time into pulling styles back out of JavaScript modules and into stylesheets again.
By all means, bundle them together, but I’m all for keeping each language/syntax separate.
What do you think of styled-components.com?
I don’t have enough knowledge about it to comment I’m afraid.
- keithjgrant.com/posts/against-css-in-js.html