stylers icon indicating copy to clipboard operation
stylers copied to clipboard

Fully compile time scoped CSS for Leptos components

Results 13 stylers issues
Sort by recently updated
recently updated
newest added

I can't get `style_sheet!` macro to work. Step to reproduce: ```sh cargo leptos new --git https://github.com/leptos-rs/start ``` Create a file `src/test.css` with the content: ```css h1 { color: red !important;...

Here is the matching test: ``` #[test] fn test_56() { let style = style_test! { .fullData :deep(dl.alarm:has(dd.true) dt) { color: var(--bs-danger); } }; assert_eq!( style, r#".fullData.test dl.alarm:has(dd.true) dt{color: var(--bs-danger);}"# );...

If you have a directory structure like this: ``` workspace |- *other workspace members* |- frontend |- build.rs |- *source code* ``` `style_sheet!(...)` will base files paths from `workspace` but...

For example: ``` :deep(.rollUp) .unlockSplash { max-height: 0; } ``` Should return `.rollUp .unlockSplash.test{max-height: 0;}` but is returning `.rollUp.test .unlockSplash.test{max-height: 0;}`

The current implementation of the style macro has some limitations which may cause some future problems as we discussed in this [issue](https://github.com/abishekatp/stylers/issues/24) by @bluenote10 . Some problems which I have...

First of all, thanks for creating this library, this looks really promising! I'm wondering why the `style!` macro requires to pass in a component name? Initially I thought this is...

bug
enhancement

I'm trying to use the style_sheet! macro but it always complains saying that the file does not exist. This is my project structure (the relevant parts) < - root -...