Settings

Theme

Ask HN: What if you didn't need JavaScript?

7 points by Theoleff 7 months ago · 6 comments · 1 min read


Hello,

I’ve been working on a side project: a curated collection of modern, CSS-only techniques for building interactive UI components (like toggles, modals, dark mode…) without relying on JavaScript.

The idea came from seeing how often we reach for JS when CSS is now more than capable. I’m putting these patterns into an ebook, focused on clean, accessible, and native solutions.

Here’s the landing page if you're curious: https://theosoti.com/you-dont-need-js/

I’d love your honest feedback:

- Does this seem useful or interesting to you?

- Anything you'd expect to see in something like this?

- Or anything that immediately turns you off?

I'm genuinely curious how others are thinking about this.

mattl 7 months ago

Here's a link https://theosoti.com/you-dont-need-js/

owebmaster 7 months ago

What if I'm not afraid of JS?

- Does this seem useful or interesting to you? no

- Anything you'd expect to see in something like this? no

- Or anything that immediately turns you off? -

krapp 7 months ago

Honestly I think using CSS to build UI components is an even worse idea than using Javascript. CSS is meant to provide styling and alignment, not to act as an ad-hoc scripting language.

I don't think this is an improvement on anything. It works but... ick.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection