3 ms·
So great to see you on the front page, Stephen! Super cool work! Curious - my first time reading elm, is CSS an anti-pattern? I notice the styles are all inline
by martin_ 5y ago
So great to see you on the front page, Stephen! Super cool work! Curious - my first time reading elm, is CSS an anti-pattern? I notice the styles are all inlined
- slimsag 5y agoHa! Long time no see :) I'm no Elm expert, but I would say from what I've seen that mixing-and-matching (JS+Elm, CSS+Elm) as you see fit is totally fine, adopting Elm can be super incremental. When it comes to changing CSS dynamically, it's quite nice to have that in Elm code too rather than say a CSS class you toggle. The thing I'm using here is elm-ui, it takes a more opinionated approach and basically eliminates a lot of the CSS oddities: instead of numerous flex, margin etc. CSS properties you just get simple alignLeft, centerX, etc. attributes in a row/column layout. Quite nice. There's a talk[0] about it. [0] https://www.youtube.com/watch?v=Ie-gqwSHQr0&t=2s https://www.youtube.com/watch?v=Ie-gqwSHQr0&t=2s