davesnx / styled-ppx

Type-safe styled components for ReScript, Melange and native with type-safe CSS
https://styled-ppx.vercel.app
BSD 2-Clause "Simplified" License
399 stars 32 forks source link

Render more than one global selector on %styled.global #437

Closed zakybilfagih closed 5 months ago

zakybilfagih commented 5 months ago

This should solve #295

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **styled-ppx** | ⬜️ Ignored ([Inspect](https://vercel.com/davesnx/styled-ppx/N3t8M7b3vDJdpGsv58y5fHaFuHn6)) | [Visit Preview](https://styled-ppx-git-fork-zakybilfagih-add-global-mult-31b178-davesnx.vercel.app) | | Mar 12, 2024 0:12am |
zakybilfagih commented 5 months ago

Refactored the code and also should render at_rule now

davesnx commented 5 months ago

Found why ReScript doesn't accept OCaml code (because it uses {j*|j*} strings. I added a -e into media-queries that replaces them with {js||js} and works. Let me know if you want to push it with this or merge it as it is.