Khalas looks very nice, but it seems more like a library than super simple wrapper for CSS properties.
The idea is - Seed provides basic foundation for attributes, events, styles and elements/tags and you can use it to build libraries.
This foundation should be auto-generated, consistent, non-opinionated and typed & simple as much as possible. Example of styles (consistent with the draft design for atttributes):
div![
S.position.absolute(),
S.left.px(30),
S.top.px(50),
]
And with Khalas:
https://docs.rs/khalas/0.1.1/khalas/css/struct.Style.html#method.position
div![
Style::default()
.position(|conf| {
conf.position(|conf| {
conf.absolute().top(px(50)).left(px(30))
})
})
]
div![
S.position().absolute(),
S.left().px(30),
S.border().style(|s| (s.solid(), s.dotted())),
S.border().style(|s| s.solid()),
]
Closing in favor of https://github.com/seed-rs/seed/issues/413
Most helpful comment
Khalas looks very nice, but it seems more like a library than super simple wrapper for CSS properties.
The idea is - Seed provides basic foundation for attributes, events, styles and elements/tags and you can use it to build libraries.
This foundation should be auto-generated, consistent, non-opinionated and typed & simple as much as possible. Example of styles (consistent with the draft design for atttributes):
And with Khalas:
https://docs.rs/khalas/0.1.1/khalas/css/struct.Style.html#method.position