Open piccoloaiutante opened 8 years ago
@salmanm any thought on this?
Additional ideas
@piccoloaiutante Yes, I would say it depends on how complex our designs are. Perhaps namespaced BEM approach would seem okay. They can be overridden as well if the style needs to be changed.
@davidmarkclements Sorry what's a css as a microservice and css as a component?
@salmanm in experimenting with the idea of a "fullstack microservice" I created this repo https://github.com/apparatus/fullstack-microservices/
Take a look at spike-5 (https://github.com/apparatus/fullstack-microservices/tree/spike-5) - the theme service is a microservice that delivers CSS
In spike 2.1 ((https://github.com/apparatus/fullstack-microservices/tree/spike-2.1) the theme service is a microservice that delivers a css component
However, having gone through all the possibilities I can think of (and mentioned here), I'm very much sold on tachyons (functional css)
We should decide how we want to deal with the style of our UI component. My idea is that it should first look in some way for style passed by the app where the component will be used and then if nothing is passed it should fallback to a default style. There are multiple ways of passing css to the component:
I'll leave this presentation as reference (http://frostney.github.io/talks/react-paint/)