@DavidDarnes@mastodon.design
@DavidDarnes@mastodon.design avatar

DavidDarnes

@DavidDarnes@mastodon.design

Developer Advocate at zeroheight.
Previously: Nordhealth, Ghost, Stackbit.
Clients: Google, Buffer and Netlify.
[he/him]

This profile is from a federated server and may be incomplete. Browse more on the original instance.

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

For halloween I'm dressing up as a Slack DM which simply says “Can we have a quick chat” followed by complete silence for hours

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar
DavidDarnes, to mastodon
@DavidDarnes@mastodon.design avatar

New addition to my collection: <mastodon-post>!

Embed mastodon posts on your web pages by progressively enhancing a regular link and without the need for an <iframe>. Use the built in semantic template or apply your own! Read more about it here:
https://darn.es/mastodon-post-web-component/

Thanks to @robb and @mariohamann for the inspiration ✨

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

genie: please no
js dev: more frameworks

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

Newly added to my #WebComponents collection: <link-peek>!

Turn any regular anchor link into a rich preview (also known as an ‘unfurled’ link). Can be used with any JSON API and allows for custom templating.

Prefect for creating more visual interest on links without filling the page with additional HTML noise:

✍🏻 https://darn.es/link-peek-web-component/
📦 https://www.npmjs.com/package/@daviddarnes/link-peek

DavidDarnes, (edited ) to random
@DavidDarnes@mastodon.design avatar

You know the real reason why there isn't an <accordion> element? It's because we've never truly been able to accurately depict it in code… until now 🪗
https://codepen.io/daviddarnes/pen/zYyBWMm

DavidDarnes, (edited ) to random
@DavidDarnes@mastodon.design avatar

In the intersect between @zachleat sharing his , @adactio talking about declarative sharing buttons and all y'all (gestures vaguely at blogs and Mastodon) talking about ‘HTML Web Components’ there lies me and my urge to noodle around with small bits of .

So here's my first open source Web Component, <share-button>:
https://darn.es/share-button-web-component/

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

Published is better than perfect

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

Posting up another one of my today. Sort of a unique one this time, but I think it'll be useful for people who want to put together something like website user preferences or create small applications.

<storage-form> is a Web Component to allow regular form elements to interact with the browsers local storage. Wrapping this component around a <form> with <input> elements instantly allows you to add, edit and remove data within local storage:

https://darn.es/storage-form-web-component/

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

When the web page opens in a WebView

DavidDarnes, to design
@DavidDarnes@mastodon.design avatar

My talk about using Web Components in Design Systems that I did yesterday for NL Design Systems Week is already on the site if you want to check it out:

https://nldesignsystem.nl/events/design-systems-week-2023/programma/#design-systems-&amp;-web-components:-what-works-&amp;-what-doesn’t

Thanks again to @hdv, @robbert and the rest of the team for the opportunity. Also thanks to anyone who attended!

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

React both popularised and over-saturated the component concept. I think that's why a lot of us are weary of if the benefits Web Components that mirror Reacts biggest draws. We don't want to fall to the same fate.

Think of Web Components as having 'range' in terms of robustness. They can have an extremely light touch but also allow you to lock things down. In an ideal world we wouldn't use the latter as much as the former, but in certain contexts it can be really useful.

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

“Whoa, AI wrote this!”
🤝🏻
After putting all their leftovers in a blender: “Whoa, I made soup!”

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

Hey you, yes you, I've got a question for you…

What the f••k is a Design System?

https://designsystems.wtf

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

Please vote so we have a safer void to scream into 🕳️
https://github.com/mastodon/mastodon/issues/7135

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar
DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

Ghost will be removing AMP support with their next major version, and from the look of this thread there’s very little resistance to it. RIP AMP https://forum.ghost.org/t/upcoming-removal-of-amp-in-ghost-6-0-what-you-need-to-know/43034

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

What’s worrying is that all of it sounds like a joke, but it’s all real 🫠
https://youtube.com/watch?v=aWfYxg-Ypm4

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

Don't make me focus the <button>Sign</button>

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

I made a Web Component GitHub starter template to help me, and maybe you too, to get into making . Hope you find it useful:
https://darn.es/web-component-github-starter-template/

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

Quick roundup of what I did in 2023… https://darn.es/what-i-did-in-2023/

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

My friend from my Nord design system days @WickyNilliams has created a set of for displaying calendars called ‘cally’.

You should definitely check it out:
https://wicky.nillia.ms/cally/

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

Ideas for my dream CMS

After listening to @chriscoyier, @davatron5000 and @mathowie talk about their ideal CMS setup on Shop Talk I felt it was a chance to share my ideal CMS features as well as some context around why I'm more interested in them than I should be:
https://darn.es/ideas-for-my-dream-cms/

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

New Web Component! <random-source>

"The random-source Web Component allows you to cycle randomly through different audio or video sources, utilising existing HTML elements and providing an elegant fallback experience.”

https://darn.es/random-source-web-component/

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

Me on the train watching your fancy font load while I wait for your menu toggle to work

Michael Scott looking grumpy in The Office

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • DreamBathrooms
  • Durango
  • magazineikmin
  • everett
  • cubers
  • Youngstown
  • khanakhh
  • slotface
  • rosin
  • vwfavf
  • mdbf
  • ethstaker
  • provamag3
  • ngwrru68w68
  • InstantRegret
  • GTA5RPClips
  • cisconetworking
  • Leos
  • thenastyranch
  • osvaldo12
  • modclub
  • tacticalgear
  • tester
  • anitta
  • normalnudes
  • JUstTest
  • All magazines