Skip to content
This repository was archived by the owner on Jun 17, 2019. It is now read-only.

Benefits

Ranol edited this page Apr 12, 2019 · 1 revision

Advantages over CSS

  • Scoped - CSS codes are scoped by the module system of Rust.
  • Together - You don't need to switch over files when you're using HTML in Rust library like yew.
  • Reliable - Styles stored in variable. Mistakes are found at an earlier time.
  • Reduced - End in the Rust. Don't depends on other tools. Vendor prefixing, Preprocessors, etc.
  • Modularized - That's easy. just like code splitting.

Advantage over Preprocessors

  • Easy to Learn - It's heavily based on CSS and Rust syntax. If you are an expert of both, probably you can use it easily.
  • Integrated - It's integrated to rust compiler. Only compile if the file changes.

Advantage over Inline Styles

  • Fully Featured - Media query, animation, pseudo-selectors, and etc are not limited.
  • Performance - In fact, CSS selectors are faster than inline styles.

Clone this wiki locally