That was our original trajectory as well. I had mentioned it to Google's lead on Web Components and he pointed me to the Facebook presentation. I tried selling it to the team but the CSS people educated me about a simpler approach: namespace your CSS and have user and default classes where user classes are loaded later in the sequence and override the default ones. Sure we are still susceptible to structural noise but the CSS gurus said they follow best practices that preclude any non-scoped used of structural targeting. Less work for me so thats what we ended up with, a mix of process and design.
What I've learned is that instead of building a purely technical solution to preempt some anti-pattern i should wait until the anti-pattern becomes too much to deal with by design and best practices and then and inky then invest time in creating a framework. This way we can focus more on content than framework development. Also, as an adjunct lesson, we don't go from skateboard to car in one step, but proceed along an incremental improvement path. That's more a learned orientation than a pure philosophy. I envy those who can pursue the ultimate without all the intermediate steps :) Sent from my iPhone >> On Apr 29, 2015, at 2:21 PM, Mike Thompson <[email protected]> wrote: >> >> On Thursday, April 30, 2015 at 6:55:37 AM UTC+10, marc fawzi wrote: >> It's actually very refined work. >> >> >> My issue with it is the number of configuration params and the approach to >> styling. Could be far simpler using default-stylesheet along with a >> user-stylesheet to override the defaults. This way users can overlay their >> changes on top, using normal Designer-friendly process of editing >> stylesheets, leaving developers out of it. That's what we ended up doing >> with our cursor-based reusable components. > > > When it comes to CSS we've been listing to Facebook & co: > > https://speakerdeck.com/vjeux/react-css-in-js > http://formidablelabs.com/blog/2015/03/01/launching-radium/ > > I'm not saying we're living the dream just yet (we're actually still > straddling the fence a bit), but that's the direction we are going. > > -- > Mike > > -- > Note that posts from new members are moderated - please be patient with your > first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
