I love elm-ui, it helped me get into frontend dev and let me finally learn HTML.
legos is an implementation of elm-ui in Gleam/Lustre with a few changes:
- the core module (Element in Elm UI) is renamed to
ui - I've added a
colormodule with all the tailwind colors
https://github.com/NduatiK/legos
https://hex.pm/packages/legos
Why you should care:
- The elm-ui mental model is simple enough that you can build UIs without opening your browser
- You get to think in rows and columns (no flexbox)
- You get to reposition items with
align_{left,right,top,bottom},center_xandcenter_y.
- Styles are all typed
- Escape hatches to use plain Lustre with
ui.htmlandui.html_attr