<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Luke Dunsmore</title>
    <description>The latest articles on DEV Community by Luke Dunsmore (@lukedunsmoto).</description>
    <link>https://dev.to/lukedunsmoto</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2779070%2F76d3d0c7-6bf9-4ec7-93f4-f9817cd2f642.png</url>
      <title>DEV Community: Luke Dunsmore</title>
      <link>https://dev.to/lukedunsmoto</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lukedunsmoto"/>
    <language>en</language>
    <item>
      <title>Building (and Sharing) an HTML5 Component Library — No Frameworks Required</title>
      <dc:creator>Luke Dunsmore</dc:creator>
      <pubDate>Thu, 01 Jan 2026 19:06:01 +0000</pubDate>
      <link>https://dev.to/lukedunsmoto/building-and-sharing-an-html5-component-library-no-frameworks-required-497o</link>
      <guid>https://dev.to/lukedunsmoto/building-and-sharing-an-html5-component-library-no-frameworks-required-497o</guid>
      <description>&lt;p&gt;Modern frontend development has a curious talent for overengineering itself. We have build steps that require build steps. Components that only function inside other components. And a perfectly valid  that somehow needs 200KB of JavaScript to exist.&lt;/p&gt;

&lt;p&gt;This article is about stepping sideways from that world — not backwards — and building a pure HTML5 component library that is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Framework-agnostic&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Copy-paste friendly&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Useful to beginners and web veterans alike&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I recently open-sourced &lt;a href="https://www.lukedunsmore.com/html-component-library.html" rel="noopener noreferrer"&gt;my HTML5 Component Library&lt;/a&gt;, and this post explains the why, the how, and the surprisingly large number of problems that plain HTML still solves beautifully.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why an HTML-First Component Library?
&lt;/h2&gt;

&lt;p&gt;Frameworks are excellent. I use them. You probably do too. &lt;strong&gt;But,&lt;/strong&gt; they are not always the right tool.&lt;/p&gt;

&lt;p&gt;There are plenty of situations where you just need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A dropdown&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A modal&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Tabs&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;An accordion&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A layout pattern&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A form that behaves itself&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;…without installing Node, choosing between six competing state libraries, or explaining to a client why “just a button” needs a build pipeline.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9mmsyqwqbqzjgkri8yut.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9mmsyqwqbqzjgkri8yut.png" alt="HTML5 Component Library - Luke Dunsmore" width="800" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;HTML5 already gives us a lot:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Semantic elements like , , and &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Native form validation&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Keyboard accessibility by default&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal here isn’t to replace frameworks, but to offer an easier alternative when you just want to build.&lt;/p&gt;

&lt;h2&gt;
  
  
  What This Library Is (and Isn’t)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Plain HTML with minimal CSS&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Framework-free&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Copy-pasteable&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It is not:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A design system&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A JavaScript UI framework&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A replacement for React, Vue, or Svelte&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A one-size-fits-all solution&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Think of it as HTML patterns you can trust, not a UI system or kit. Every component follows the same core philosophy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Clean, semantic HTML&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Optional, scoped CSS&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Zero required JavaScript&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enhancement hooks if you want them&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example: an accordion using native HTML only.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;details class="accordion"&amp;gt;&lt;br&gt;
  &amp;lt;summary&amp;gt;What is this?&amp;lt;/summary&amp;gt;&lt;br&gt;
  &amp;lt;p&amp;gt;This is a native HTML accordion.&amp;lt;/p&amp;gt;&lt;br&gt;
&amp;lt;/details&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;No JavaScript. Keyboard accessible. Screen-reader friendly. Works in modern browsers. If you want animation or advanced behaviour, you add it. If you don’t, the component still works.&lt;/p&gt;

&lt;h2&gt;
  
  
  Accessibility as a Default, Not a Feature
&lt;/h2&gt;

&lt;p&gt;One of the most underrated strengths of HTML-first components is how much accessibility you get for free.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt; handles focus and keyboard events automatically&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt; improves form usability without extra code&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt; communicates open/closed state to assistive tech&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Native validation is announced correctly by screen readers&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When accessibility is baked into the language, you stop having to remember it. That alone is reason enough to start with HTML.&lt;/p&gt;

&lt;h2&gt;
  
  
  Real-World Use Cases
&lt;/h2&gt;

&lt;p&gt;This approach shines in places people don’t talk about enough:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Static sites&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Marketing pages&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Documentation&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CMS templates&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Client projects with long lifespans&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Environments where JavaScript may be blocked, delayed, or fail&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It’s also excellent for prototyping. You can sketch interfaces without committing to a tech stack on day one.&lt;/p&gt;

&lt;p&gt;I hope it's of use to some of you, especially if you're just starting with frontend/webdev and want to learn how HTML works.&lt;/p&gt;

&lt;p&gt;You can check out the &lt;a href="https://www.lukedunsmore.com/html-component-library.html" rel="noopener noreferrer"&gt;live web version&lt;/a&gt;, an &lt;a href="https://www.lukedunsmore.com/wp-content/uploads/2025/12/html-component-library.pdf" rel="noopener noreferrer"&gt;offline PDF version&lt;/a&gt;, or the source repo &lt;a href="https://github.com/lukedunsmoto/html5-component-library" rel="noopener noreferrer"&gt;over on GitHub&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>html</category>
      <category>frontend</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
