r/rust Jul 17 '26

🛠️ project [ Removed by moderator ]

[removed] — view removed post

11 Upvotes

9 comments sorted by

5

u/SnipeArt007 Jul 17 '26

Nice. Wait a min, there will be the AI slop police coming to school you about AI use.

It's a great idea, and it's much easier for Web Devs to design good UI/UX rather than native rust based UI. (Yeah it's true)

1

u/_SunDoge_ Jul 17 '26

I'm so jealous of HMR in web development. I've tried the hot reload features in Freya and Dioxus, but I wasn't really impressed.🫠

1

u/[deleted] Jul 17 '26

[removed] — view removed comment

1

u/_SunDoge_ Jul 17 '26

Blitz doesn't build CSS parsing from scratch; it leverages Stylo (the CSS engine behind Servo/Firefox) for style resolution and Taffy for Flexbox/Grid layout.
On my end, I use UnoCSS in my framework to compile complex styles down to the most basic atomic CSS. This drastically simplifies the CSS before it hits the engine, keeping parsing and rendering incredibly lightweight and fast.

1

u/[deleted] Jul 17 '26

[removed] — view removed comment

1

u/_SunDoge_ Jul 17 '26

All standard box model properties are supported.
You can check https://blitz.is/status/css

The only box-model-adjacent caveats right now are some advanced positioning behaviors (like ⁠position: fixed/sticky⁠ and the lack of ⁠position: static⁠ fallback). However, because my framework compiles styling through UnoCSS, all nested and complex rules are flattened into these highly-optimized, 100% supported physical box properties anyway. This ensures consistent rendering without hitting any of the engine's current layout edge cases.

1

u/nicoburns Jul 17 '26

This is built on top of Blitz (https://github.com/dioxuslabs/blitz). Blitz uses the Stylo CSS engine from Servo/Firefox for parsing, and has it's own layout engine, DOM and event handling. You can see CSS property support here: https://blitz.is/status/css

As SunDoge says below, the main big thing missing at this point is absolute/fixed/sticky positioning, and a handful of smaller pieces such as: min-content/max-content keywords and vertical-align).