You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the mechanism of value.rec ppx. It should be doable to generate all the interface to render CSS. Right now value.rec generates the functions to parse CSS into an AST, and it generates the Types as well. We could add another pass to render the AST into strings.
The generated code might look like similar to bs-css, but would be nice to have a few improvements over them:
Support entirely the CSS spec (or at least what our Parser.re completly)
Try to improve performance on ReScript/Reason
Try to reduce the bundle-size
Remove all the glue code from declarations_to_emotion (and maybe some css_to_emotion)
Possible step by step
Add render to most basic standard tags
Implement rendering for variants (render non-properties)
Implement the rest of the types (render properties)
Check how much CSS support we have
Getting rid of bs-css
Remove extended properties from the Parser
The text was updated successfully, but these errors were encountered:
davesnx
changed the title
Generate a CSS pretty printer out of Parser.re
Generate a CSS printer out of Parser.re
Mar 7, 2024
davesnx
changed the title
Generate a CSS printer out of Parser.re
Generate the CSS runtime (styled-ppx.css) from of Parser.re
Mar 12, 2024
davesnx
changed the title
Generate the CSS runtime (styled-ppx.css) from of Parser.re
Generate the CSS runtime (styled-ppx.css) from Parser.re
Aug 9, 2024
With the mechanism of
value.rec
ppx. It should be doable to generate all the interface to render CSS. Right nowvalue.rec
generates the functions to parse CSS into an AST, and it generates the Types as well. We could add another pass to render the AST into strings.The generated code might look like similar to bs-css, but would be nice to have a few improvements over them:
Parser.re
completly)Possible step by step
The text was updated successfully, but these errors were encountered: