3 ms·
these two points are exactly where I am coming from ... (i) I am deliberately starting from a(n over-) simplified pov to see how far I can get with zero JS ...
by librasteve 2y ago
these two points are exactly where I am coming from ...
(i) I am deliberately starting from a(n over-) simplified pov to see how far I can get with zero JS ... but as I read the comments above I realise that, for real applications, I will need to "sprinkle" some Alpine and Tailwind here and there. (I chose Cro for the user auth.)
(ii) Indeed HTML and CSS are in an intricate contradictory dance. In the purest sense I think that my sites should be composed of reusable parts that sit within context. These parts can be composed from roles and may selectively tweak them. The roles convey aspects of the design (colours, typography, containment, scale, size). The parts contain content (text, image, actions), identity and semantic intent. Role mixing in SASS is a small start in this direction.
[This is a very weak stab at a very thorny problem ... please let me know if there is any reading that you recommend.]
HTMX is a great tool to bring the UI implementation back into the realm of more capable & expressive languages. And to start with a new perspective.
My personal preference is Raku, but you may prefer OCAML, Rust, Go, Python, Haskell, Elixir, ROC, Zig ...
- niutech 2y agoWhy not just use a pure CSS framework like Spectre.css (including accordions, modals, carousels, tooltips, tabs) and optionally a 166-byte HTMZ where CSS is not enough? You don't need more than 1KB of JS, see PHOOOS at https://kodus.pl https://kodus.pl.
- librasteve 2y agothat looks very interesting - thanks for the tip
- raiph 2y agoHi Steve. Please include https://github.com/beercss/beercss https://github.com/beercss/beercss in your exploration.
- librasteve 2y agoit’s already my favourite - great tip