helins / fcss.cljc

Minifying Garden classes showing up in advanced CLJS builds

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Functional CSS

Advanced CSS toolkit providing:

  • Browser dev environment with live generation and reloading of CSS (written using Garden)
  • Prevention of name clashes by design
  • Aggressive CSS optimization for advanced CLJS builds:
    • Dead rule elimination, only ship what is stricly needed
    • Splitting of classes into short-named atomic styles for maximum rule reuse

The end result is a similar experience to CSS-in-JS with a notable difference: everything is effectively static and pre-computed. It is a zero cost abstraction without any burden during runtime, quite the opposite.

Release pending.

Acknowledgment

Special thanks to Productions Associées ASBL for funding the upcoming release of this library.

License

Copyright © 2021 Adam Helinski

Licensed under the term of the Mozilla Public License 2.0, see LICENSE.

About

Minifying Garden classes showing up in advanced CLJS builds


Languages

Language:Clojure 99.8%Language:HTML 0.2%