Can/should core-style replace all my LESS?

129 views
Skip to first unread message

Scott Beeson

unread,
Aug 4, 2014, 3:01:38 PM8/4/14
to polym...@googlegroups.com
I've been looking at core-style, and I like the idea of easily being able to change templates.  But every example I've seen is very simple; basically changing a primary color or two.  I have hundreds of lines of LESS CSS.  Can and should core-style replace it?  The first problem seems to be that it would clutter up my index.html, since every example I've seen puts them there.  Not to mention, if I put them any lower, I'd have to put them in multiple places (for each element that requires it).  Obviously a bad idea.  Can you put them in an external file (or create your own custom style element that utilizes core-style)?

Basically, anyone have thoughts on using core-style to completely style your app?

Steve Orvell

unread,
Aug 5, 2014, 12:44:10 PM8/5/14
to Scott Beeson, polym...@googlegroups.com
The `core-style` element and Polymer's support for theming is an area of active development. We'll post more definitive information about best practices as they develop. We do think `core-style` is an important piece of the element theming system.

The first problem seems to be that it would clutter up my index.html

You can store `core-style` elements in HTMLImports.

Can you put them in an external file (or create your own custom style element that utilizes core-style)?

We want to support embedding styles from one `core-style` element in another (similar to @import).

Basically, anyone have thoughts on using core-style to completely style your app?

Feel free to experiment and stay tuned for more info. 


On Mon, Aug 4, 2014 at 12:01 PM, Scott Beeson <sbe...@gmail.com> wrote:
I've been looking at core-style, and I like the idea of easily being able to change templates.  But every example I've seen is very simple; basically changing a primary color or two.  I have hundreds of lines of LESS CSS.  Can and should core-style replace it?  The first problem seems to be that it would clutter up my index.html, since every example I've seen puts them there.  Not to mention, if I put them any lower, I'd have to put them in multiple places (for each element that requires it).  Obviously a bad idea.  Can you put them in an external file (or create your own custom style element that utilizes core-style)?

Basically, anyone have thoughts on using core-style to completely style your app?

Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups "Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/1d194e14-87b7-49cc-8f8f-497025c42174%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Scott Beeson

unread,
Aug 5, 2014, 2:31:36 PM8/5/14
to Steve Orvell, polym...@googlegroups.com
Thanks for the response!
Reply all
Reply to author
Forward
0 new messages