Crate rcss

source ·
Expand description

CSS embeding library.

The purpose of this library is to add support of embeded styles to wasm frameworks and other rust driven web apps.

Can output css files, or elements in inline <style> element. Provide scope or css_modules like api.

For scoped api, it generate random class name as scope identifier. For css_modules api, it modify class names to be unique.

Aim of macros in this library is to give support of unquoted styles on stable rust.

Modules§

  • Traits that are used to define chain of css scopes.

Macros§

  • Api that mimic js “CSS modules”, it generate struct with css classes as fields. Output instance of this struct as result of macro call.

Traits§

Type Aliases§