Open abishekatp opened 1 year ago
Is it planned to fix https://github.com/abishekatp/stylers/issues/25 (macros break using SSR in Leptos) for the first alpha realease?
Edit: after testing, it seems the new style!
macro implementation fixes this on https://github.com/abishekatp/stylers/pull/36 and I understand it will be merged before 1.0.0-alpha so I have my answer.
The current implementation of the style macro has some limitations which may cause some future problems as we discussed in this issue by @bluenote10 . Some problems which I have solved in this new version are as follows,
stylers_core::from_ts
) or as a string value(.stylers_core::from_str
)Extra steps needed by the users
build
function from the stylers.cp ./target/stylers/main.css $TRUNK_STAGING_DIR/
tocp ./target/main.css $TRUNK_STAGING_DIR/
Steps needed before stable version release
let some_class_name = style!{ div{ color: red } };
. Need to do extra parsing steps to handle invocation of the style and style_sheet macros from the different places of leptos component. (Note: This restriction is not for style_str and style_sheet_str macros)css!
macro that will allow us to write css directly inside the RSX syntax like discussed here