News for hackers. Stuff that matters.
Re:Htmx and Web Components: A Perfect Match by rpmisms on Thursday January 18, 2024 @12:44AM (#39038357)
No, it's a hatred of CSS. CSS is a pain, tailwind is a balm. I use tailwind on everything, extend or modify tailwind as needed, and write very little CSS. I have also stopped having dreams of strangling css-grids to death since I started doing this, so something's working.
Re:Htmx and Web Components: A Perfect Match by 8n4vidtmkvmk on Thursday January 18, 2024 @03:21AM (#39039316)
Sounds like you just don't know modern CSS. I rarely have trouble styling things how I want these days.
Re:Htmx and Web Components: A Perfect Match by rpmisms on Thursday January 18, 2024 @09:33AM (#39042096)
Unfortunately, I do. Modern CSS is not modern SASS.
Re:Htmx and Web Components: A Perfect Match by erhaetherth on Friday January 19, 2024 @12:16AM (#39051815)
I'm not familiar with modern Sass. Has it evolved much in the last decade? I'm still using Less because I installed it 10 years ago and it still works great, but there's almost 0 features that haven't been adopted into CSS now so I really don't need at all.

There is 1 I guess. I wrote a loop somewhat recently because there doesn't appear to be a variable for DPI yet. `env(dpi)` doesn't exist or I could have did what I wanted: scale a <canvas> element to be 1.0 scaling regardless of the user's screen scaling.

Re:Htmx and Web Components: A Perfect Match by lenkite on Friday January 19, 2024 @10:51PM (#39064486)
Have you tried https://open-props.style/ ? Atomic CSS but leverages good CSS principles.
Re:Htmx and Web Components: A Perfect Match by holoduke on Thursday January 18, 2024 @05:17AM (#39040058)
I have personally never seen a easier way to style things than the modern css engine. Whether its Android, iOS, GTK or anything else. CSS is fast and extremely easy. Used to flexboxes in css. Goodluck enjoying others :)
Re:Htmx and Web Components: A Perfect Match by rpmisms on Thursday January 18, 2024 @11:13AM (#39043527)
The engine is good, the language is not. Tailwind is an abstraction layer removing much of the pain from the engine.