futursolo / stylist-rs

A CSS-in-Rust styling solution for WebAssembly Applications
https://crates.io/crates/stylist
MIT License
366 stars 22 forks source link

Improve macro hygiene #51

Closed futursolo closed 2 years ago

futursolo commented 2 years ago

Currently, __stylist_style_manager__ is declared with Span::call_site() in the styled_component macro which is a simple workaround to fast track the implementation.

This issue aims to implement __stylist_style_manager__ with Span::mixed_site() so it will become invisible for other code inside the styled_component.