polymer icon indicating copy to clipboard operation
polymer copied to clipboard

Add a way to import external css files as styles with "custom-style" tag

Open jollycopper opened this issue 10 years ago • 2 comments

Currently there is no way to write style as a separate css file. The only way now is to create a style inside of the main html with is="custom-style".

The reason why this is important is that many developers use LESS or SASS to style their webpages, but in Polymer their workflow no longer works.

jollycopper avatar Feb 22 '16 05:02 jollycopper

dup of #2429 I guess See especially this comment https://github.com/Polymer/polymer/issues/2429#issuecomment-166181555

zoechi avatar Feb 22 '16 05:02 zoechi

Yep, mostly a dupe of #2429, but there are workarounds (https://github.com/Polymer/polymer/issues/2429#issuecomment-166181555).

The problem here is that Polymer needs to process styles to work for both ShadyDOM encapsulation, and for CSS Custom Properties. @arthurevans mentions why <link rel="stylesheet"> is problematic in https://github.com/Polymer/polymer/issues/2429#issuecomment-141550061

dfreedm avatar Feb 26 '16 01:02 dfreedm