cssinjs / jss

JSS is an authoring tool for CSS which uses JavaScript as a host language.
https://cssinjs.org
MIT License
7.06k stars 397 forks source link

[jss-autoreset][jss-initial] Plugins to reset styles. #119

Closed kof closed 7 years ago

kof commented 8 years ago

Inspired by autoreset and initial we need to port those to jss, because its an awesome thing and basically a first time true encapsulation for css.

Additionally we can:

kof commented 8 years ago

updated description, thanks for the input @ai

maximkoretskiy commented 8 years ago

I'd like to implement it

kof commented 7 years ago

Now we have jss-isolate which allows isolate rules from inheritance and to globally define default values.

The next stage is to think how to allow isolation from global selectors.

maximkoretskiy commented 7 years ago

We can reset all props like postcss-initial does.

kof commented 7 years ago

Yep, however the question is if we can do that at runtime without loading the static json ...

ahmad2smile commented 6 years ago

was this ever implemented ?

kof commented 6 years ago

Not exactly as described here, but yes! https://github.com/cssinjs/jss-isolate

ahmad2smile commented 6 years ago

Thanks, Appreciate the quick update.