Hey everybody, i wrote a tool to convert HTML to C...
# compose-web
f
Hey everybody, i wrote a tool to convert HTML to Compose for Web Composables https://github.com/Foso/HtmlToComposeWebConverter
K 14
👍 6
a
Next step to make Figma -> Compose converter 🙂 (it looks like it’s Figma -> HTML -> Compose)
s
figma -> Compose would be amazing
f
Sounds interesting, but unfortunately I have no experience with Figma
d
By the way, I would never use inline styles in a real web app: https://www.quora.com/Is-it-really-a-bad-practice-to-use-inline-styles-in-HTML
👍 2
b
Looks like next project for @Foso will be CSS -> Compose CSS converter 😄
a
It’s true. @Foso, could your converter generate stylesheet?
I mean <style> tag is part of HTML, so it could be part of HTML -> Compose converter
f
I will implement it next
K 2
👍 4
s
@Dumitru Preguza If you are doing single, 1-off styles, there is no reason not to use inline. Compose also allows for style sharing / reuse in ways that CSS doesn’t necessarily.
🚀 1
d
@spierce7 I would still use non inline over inline, I did not deny compose can’t be used, there is https://github.com/JetBrains/compose-jb/blob/master/tutorials/Web/Style_Dsl/README.md to use non inline css with compose
f
Hi, I added the generation of Compose Stylesheets for style rules and media rules in style tag. Things like import rules are not working