tachyons-css / tachyons

Functional css for humans
https://tachyons.io
MIT License
11.64k stars 677 forks source link

Is it possible to use tachyons with web components / polymer? #402

Open muhajirdev opened 7 years ago

muhajirdev commented 7 years ago

I really enjoy using tachyons, It really boot my productivity. Recently I tried Google's Polymer, and it's using web components. I wonder if I could use tachyons with web component?

montogeek commented 7 years ago

How do you add classes to web component?

s2tephen commented 7 years ago

In some ways, Polymer's use of ShadowDOM/scoped styles are trying to solve a similar set of problems as Tachyons. But it's totally possible — you'll want to use a shared style module. In my current project I'm using gulp-style-modules to convert the Tachyons css file to an html import.