scoped_css

Tools for generating scoped css.

How to use

```rs fn main() { let mycss = scopedcss::css!( .my_class { color: red; } );

// this will generate a struct with a .classes.my_class field which // is an obfuscated &'static str.

let myapp = scoped::smd!(

); }

// or the following, which generated a static variable named css scopedcss::staticcss!( .my_class { color: red; } ) ```

Supported CSS features

Classes, ids, tags and attributes are supported. Selectors like > are not.

In addition, nested selectors are supported.

scoped_css::static_css!( body.my_app #some_id[some-attr="hello"] { .nested_stuff_is_supported_too { color: blue; } } )

TODO and drawbacks

This is pretty alpha, and is only being published for a demo :)