Hacker News new | past | comments | ask | show | jobs | submit | hbroadbent's comments login

I'm currently building AttendList — https://attendlist.com — an attendance tracker for google meet.


Hey! Actually that is possible using the <datalist> element.

If you're interested, I wrote a bit more about it here: https://harrisonbroadbent.com/blog/cool-native-html-elements...


The rule is:

Styleable XOR Unusable = 1.


Sure it's not the prettiest, but even if you styled this with CSS directly you'd need to target those selectors. `#range-input::webkit-progress-bar` etc.

To your final point, I completely agree that it should be packaged up — I'd package this up into a component (react, partial etc.) which would encapsulate the styles via Tailwind, HTML and logic.

I like Tailwind as a way to more closely tie my markup with styling. I'll package it all up into a component anyway, but Tailwind keeps it all in 1 spot (the markup) rather than spread across multiple files.


You can't put CSS alongside a component's markup in the same file? What kind of framework are you using?

I don't use them all, but I know Vue and Svelte can. React is really popular, so I assume it's got a way.


Oh cheers, I had no idea. I'll fix it, thank you


Stoked to see a few hundred people have already read this article (and one person's already suggested an improvement!).

What other elements should I add?


You tell me. I actually didn’t know the modal element existed. Quite handy!


Hah fair enough! I've actually just stumbled on the Popover hint demo (https://mdn.github.io/dom-examples/popover-api/popover-hint/) which uses the Popover API to create native HTML tooltips. I'm planning to update my article with them once I've played around a bit more


> What other elements should I add?

Not really an element, but `popover` attributes for elements, maybe?

Recently I've been using fieldset+legend to great effect for titled input forms. In fact I've used it almost exclusively in my last contract.

Some other ones that too few people use: progress, cite, sub/sup, datalist (very useful), and search (also very useful as a busy indicator when used with no percentage).


I've been building Tailcolors lately, a TailwindCSS color palette: https://tailcolors.com

Just recently actually I published a Chrome extension for it too, so you can access and copy all the Tailwind CSS colors directly from an extension: https://chromewebstore.google.com/detail/tailcolors-tailwind...


Hey HN, just sharing the way I've been adding Tailwind CSS to my Chrome Extensions lately.

tldr is that it's dead easy to save the CDN script locally and use it, plus it doesn't come with the typical drawbacks that websites face (ie: loading external resources).


I've also built https://tailcolors.com which you might also like!


Thanks! I completely agree.

I'm planning to add more detailed pages for each color too. things like gradients, complementary colors and UI examples so keep an eye out!


thanks! and that's a cool idea — I like the localstorage idea, plus I'm thinking adding some hotkeys could help too (so pressing h would switch to hex mode).

I'll take a look in the next few days!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: