Today, we’re shining the spotlight on boilerplates and starter kits for all kinds of projects, from static site templates and React/Vue starter kits to favicon and accessibility templates and emergency site templates. This collection is by no means complete, but rather a selection of things that the team at Smashing found useful and hope will make your day-to-day work more productive and efficient.
If you’re interested in more tools like these ones, please do take a look at our lovely email newsletter  , so you can get tips like these drop right into your inbox!
Table of Contents
Below you’ll find quick jumps to specific boilerplates and guides you may need. Scroll down for a general overview or skip the table of contents  .
To prevent accessibility from becoming an afterthought, it is a good idea to already lay the foundation when beginning a web project. So if you’re looking for a boilerplate solution to kickstart your project responsibly, the Accessibility Boilerplate  is for you.
The template uses plain old semantic markup to correctly structure your content, making it easily accessible by search engines and assistive technologies. The HTML5 syntax is further enhanced with ARIA roles and Microdata. An oldie but goodie.
The ASP.NET Boilerplate  uses familiar tools to provide you with a solid developer experience when building modern web applications. Based on domain-driven design, it provides a strong infrastructure and development model for modularity, multi-tenancy, caching, background jobs, data filters, setting management, domain events, unit and integration testing, and everything else you’ll need to have more time to focus on your business code. Startup templates help you get started — either with an Angular single-page application or classic MVC & jQuery architecture.
Another fully-fledged boilerplate is the ASP.NET Core Hero Boilerplate  . It enables you to run a single line of CLI on your Console to get a complete implementation. The template includes both WebAPI and MVC. A perfect starting point to learn about various essential packages and architecture.
Browser Extensions Boilerplate
Do you plan to build a browser extension? The Browser Extension Webpack Boilerplate  has got your back. Designed for creating WebExtensions API-based browser extensions using Webpack, the extensions are, in theory, compatible with Chrome, Chromium, Firefox, Firefox for Android, Opera, and Microsoft Edge. Actual compatibility will depend on the APIs you used.
Modern Cross-Browser Extensions Boilerplate
Things that seem trivial in the web development world can turn out to be surprisingly hard in a web extension context. Especially when it comes to cross-browser extensions. To give you the experience you know from building cross-browser web apps when developing cross-browser web extensions, Cezar Augusto built
helps you develop cross-browser extensions with built-in support for module import/exports, auto-reload, and more. There’s no build configuration necessary: To create an extension, a new browser instance (for now, Chrome) will open up, and you’re ready to dive right in. Each command and major feature works as a standalone module which is particularly useful if you have your extension setup but want to benefit from specific features, such as the browser launcher with default auto-reload.
Modern CSS Resets And Their Alternatives
With CSS browser compatibility issues being much less likely today, CSS resets have mostly become redundant. However, there are instances when a modern CSS reset might still make sense. Box sizing, body styles, links, fluid image styles, fonts, and a
query for reduced motion, these are things you might want to reset,
as Andy Bell shows
. A modern reset of sensible defaults, so to say.
Another modern alternative to CSS resets is Normalize.css  . It normalizes styles for a wide range of elements, corrects bugs and browser inconsistencies, improves usability with subtle modifications, and it uses detailed comments to explain what code does.
CSS Boilerplates And Snippets
Are you embarking on a smaller project or do you feel that a larger framework is overkill for your needs? Barebones  only styles a handful of standard HTML elements and CSS Grid, and, as it turns out, that’s often more than enough to get started. With its approximately 400 lines, the boilerplate is light as a feather, and there’s no compiling or installing necessary to get you started.
The CSS snippet collection  by 30 seconds of code contains utilities and interactive examples for CSS3. Whether it’s custom checkboxes, menu overlays, or button animations, the collection has got you covered with useful snippets for layouts, styling and animating elements, and handling user interactions. CodeMyUI also features a collection of pure CSS code snippets for user interfaces  — some of them with quite fancy effects.
Color Themes For Your Dev Environment
Have you ever wished for a streamlined color theme across your entire development environment? One that you feel is pleasant for the eyes and that stays the same when you switch from your code editor to the terminal across to Slack? themer  helps you achieve just that.
themer takes a set of colors and generates themes for your development environment based on them. You can either start with a pre-built color set or create one from scratch by entering two main shades for background color and foreground text and accent colors for syntax highlighting, errors, warnings, and success messages. Once you’re happy with the result, you can download the themes you want to generate from the palette — different terminals and text editors are supported, just like Slack, Alfred, Chrome, Prism, and other tools and services. To make the color coordination complete, there are matching wallpapers based on your theme, too.
Bootstrap Your Dotfiles
Dotbot  helps you install dotfiles with just one short command, even on a freshly installed system. It is designed to be lightweight and self-contained (no external dependencies or installation required) and can be used as a replacement for any other tool you were using to manage your dotfiles. Dotbot uses YAML or JSON-formatted configuration files to let you specify how you set your dotfiles and it knows how to link files and folders, create folders, execute shell commands, and clean directories of broken symbolic links. User plugins are supported for custom commands.
If you want to dive deeper into dotfiles, the Awesome Dotfiles  list features helpful articles and tutorials, as well as example dotfile repos and frameworks, tools, and more.
A minimalist boilerplate application for Electron runtime  comes from Jakub Szwacz. To provide you with an easy-to-understand base that you can build upon, it only includes the bare minimum of tooling and dependencies that are needed for a fully-functional Electron environment. The boilerplate doesn’t impose any front-end technologies on you, so you are free to pick your favorite.
Emergency Site Kit
In case of emergency, many organizations need a quick way to publish critical information. However, existing CMS websites are often unable of handling sudden traffic spikes and, depending on the kind of emergency, the local network infrastructure might even be damaged, leaving people with poor mobile connections out. Max Boeck’s Emergency Site Kit  is here to provide people with the information they need in such cases, no matter the circumstances.
The kit helps you quickly publish a simple website that is fast, accessible, and that can withstand large amounts of traffic. Built on the rule of least power, it uses simple technologies to ensure maximum resilience: The static files are optimized for first roundtrip, there’s only basic styling and one critical request, and service workers ensure offline support. One for the bookmarks.
How To Favicon In 2021
Sometimes, it’s a good idea to re-evaluate best practices. When it comes to favicons, for example — particularly given the fact that front-end developers have to deal with more than 20 static PNG files to display a simple favicon these days. To make the process more straightforward, Andrey Sitnik came up with a smarter solution that requires just five icons  and one JSON file to fit most modern needs.
Inspired by Andrey’s approach, Chris Coyier went even a step further and went ultra-minimalist for the CSS Tricks favicon. He explains how it works in his post “ How to Favicon in 2021  ”. An SVG concept to get your favicons ready for dark mode is also included.
A Boilerplate For Forms
Let’s be honest, forms can be a pain. Luckily, there’s a little HTML and CSS boilerplate to change that: Boilerform  . Providing baseline BEM-structured CSS and appropriate attributes on elements, the little boilerplate gives your forms a head start.
Designed to be straightforward to implement, you can, in its most basic form, drop a CSS file into your head with a short snippet and wrap your elements in a
wrapper. To give you more control, there’s also a Sass and Patterns Library to work with. Whether it’s a contact form, card payment, or user signup, Boilerform has got you covered.
All-In-One Front-End Boilerplates
Another modern front-end boilerplate comes from the team at digital product studio tonik: the HTML Frontend Boilerplate  is a modern solution for building fast, organized, and standardized web apps and sites.
GitHub Template Guidelines
No matter if it’s a private repository you share with your team or an open-source tool intended for the community: the first thing people usually see of your project is the Readme on GitHub. But what goes into the Readme that actually provides value to the user? Cezar Augusto put together guidelines for building GitHub templates  . Handy!
Create .gitignore Files For Your Git Repositories
Another little detail that can be automated to save you some precious time are
does exactly that. The site has a graphical and a command line method of creating
files for your operating system, programming language, or IDE.
You can either enter the system and language you want to ignore directly on the site or copy the snippet that fits your shell from the documents to create an alias and, finally, the .gitignore file with the help of the command line.
If you have ever attended a hackathon, you know how much time it takes to get a project started: Once you’ve decided what to build, you need to pick a programming language, a web framework, a CSS framework, and you need to set up an initial project that team members can contribute to.
Hackathon Starter  is here to help you set the base for your Node.js web applications so that you can focus on what really matters: the hackathon project itself. The boilerplate features local authentication with email and password, authentication via Twitter, Facebook, Google, GitHub, LinkedIn, and Instagram, flash notifications, MVC project structure, account management, API examples, and much more to help you get started.
HTML Boilerplate Explained
How do you start a new project? Do you copy the HTML structure of the last site you built or maybe a boilerplate from HTML5 Boilerplate? Manuel Matuzović usually does the same, but recently, he encountered a situation where copying and pasting wasn’t an option: To document the structure he and his team are using at work, he had to understand the choices that have been made.
The task took up quite some time to research, so Manuel published the boilerplate  on his blog for everyone to use, along with detailed explanations for each line of code so that you know exactly what you’re dealing with. A great opportunity to dive deeper into the underlying structure of a page.
Do you need a lightweight, mobile-first boilerplate that includes only the essentials? Then Kraken might be for you. Kraken  is not supposed to be a finished product but rather a starting point that you can adapt to any project. The base structure is a fully-fluid, single column layout, and an object-oriented approach to CSS lets you mix, match, and reuse classes throughout a project.
Another great little helper if you feel you don’t need all the utility of larger frameworks is Skeleton  . It only styles a handful of standard HTML elements and includes a grid. The boilerplate gets by with only 400 lines and there’s no installation and zero compiling necessary to get started.
One of the most popular (if not the most popular) boilerplate to help you build fast, robust, and adaptable web apps or sites, is HTML5 Boilerplate  . It bundles up the combined knowledge and effort of 100s of developers in one little package.
What’s in it? A lean, mobile-friendly HTML template, with optimized Google Analytics snippet, a placeholder touch device icon, and docs with extra tips and tricks. The boilerplate also includes Normalize.css, a modern, HTML5-ready alternative to CSS resets, and further base styles, helpers, media queries, and print styles. Perfect to give your project a head-start.
An alternative worth looking into is Igor Agapov’s Modern HTML Starter Template  which was built with a focus on performance.
Boilerplates For Responsive HTML Emails
We all know about the challenges that come with formatting HTML emails. A handy boilerplate for sending out nicely formatted messages while avoiding some of the major pitfalls comes from Sean Powell: HTML Email Boilerplate  .
Sean’s template is available in two versions — with and without comments — and consists of a header with global styles and a body section with more specific fixes and guidance to use where needed in your design. Whether you want to create your own template based on the snippets or cherry-pick the ones that fix your specific rendering issues, the boilerplate has got you covered.
Another email boilerplate worth looking into is Mark Robbins’ Good Email Code template  , a simple stripped-back template that you can use for every email you send. If you’re interested in learning why each part of the code is where it is, Mark breaks it down in more detail.
Developed to help you build responsive HTML emails with confidence, the Email Framework  provides you with pre-built grid options for responsive/fluid and hybrid layouts as well as with common components. The framework supports over 60 email clients and has been thoroughly tested using Litmus.
Last but not least, for those occasions when all you need is a simple responsive HTML template with a clear call-to-action button, you might also want to check out Lee Munroe’s template  . It’s tested on all major email clients, on mobile, desktop, and web. Happy emailing!
A Complete Guide To HTML
The head of a web page can get quite full, especially in large pages. But what do you actually need? And how to organize the head to prevent implications on performance? Josh Buchea put together a
that dives deep into HTML
The guide covers everything from the recommended minimum and including elements for how a document should be rendered to links and references, favicons, social media, just like browser-depended information for things like smart app banners or “add to homescreen” features. A nice bonus: The guide is available in 11 languages. One for the bookmarks.
If you’re looking for a simple yet powerful PHP framework with a very small footprint, CodeIgniter  has got you covered. CodeIgniter encourages MVC without forcing it on you, it has exceptional performance, and comes with built-in protection against CSRF and CSS attacks. There’s nearly zero configuration required to get you up and running.
A PHP framework that was also built with simplicity, performance, and security in mind is the PHP Microsite Boilerplate  . As the name implies, it is perfect for building a rather small website without complex code structure. Key features include easy routing, intelligent serviceworker cache, and it’s 体育平台app -optimized, and prepared for Accelerated Mobile Pages as well as for Progressive Web Apps.
Create Projects From Cookiecutters
A command-line utility that creates projects from cookiecutters (i.e, project templates)?
does just that. It takes a source directory tree, copies it into your new project, and replaces all the names that are surrounded by templating tags
with names it finds in cookiecutter.json. These can be file names, directory names, and strings inside files. This enables you to bootstrap a new project from a standard form, skipping all the mistakes that are often involved when starting a new project. Project templates can be in any language or markup format and you can use both local cookiecutters or remote ones from Git or Mercurial repos.
Sometimes you come across a small tip that turns out to be true gold: Maybe it’s a solution to a problem you’ve been tinkering with for some time or a short code snippet that makes your workflow a lot more efficient. The site QuickSnippets  collects little nuggets like these.
When it comes to React, there are several community-created boilerplates out there that are bound to save you time. One of them is the React Boilerplate  . The highly-scalable, offline-first foundation was created with a focus on performance, best practices, and developer experience and shines with features such as quick scaffolding, instant feedback, predictable change management, and internationalization support, among other things.
Another boilerplate worth looking into comes from the team at Infinite Red: Ignite  is the culmination of five years of constant React Native development and was created for both Expo and bare React Native. It comes with a CLI, component/model generators, and more.
The Electron React Boilerplate  is another great foundation for scalable cross-platform apps. Fast iteration, incremental typing, and code optimization and minification out of the box are the three pillars it’s built upon.
The React Starterkit  by Konstantin Tarkus is a front-end starter kit using React, Relay, GraphQL, and JAMstack architecture. It’s optimized for serverless deployment to CDN edge locations and comes pre-configured with CSS-in-JS styling, code quality tools like ESLint, Prettier, TypeScript, and Jest, as well as VSCode snippets and settings to make your workflow more efficient.
Speaking of VS Code: The React + Redux Snippets  extension makes sure you always have the snippets you need available in your editor. It’s designed taking maximum advantage of code completion — perfect for power users.
Last but not least, if you want to use the best of all worlds to create your own, unique React boilerplate, Leonardo Maldonado’s tutorial  is for you. He takes you step by step through building your own boilerplate from scratch with the main dependencies used in the React community today.
A Snippet For Loading Responsive WebP Images
It has always been complicated to load images in the best sizes and formats, and with new image formats like WebP and AVIF gaining popularity, things don’t get any easier. If you want to ship WebP already today, you’ll need a loading strategy that also providess a fallback for browsers that don’t support the new format yet. Stefan Judis shows how to do it  .
Stefan’s solution for loading a responsive WebP image uses the
element, and even though it it involves quite a lot of lines of code, it’s worth it as the snippet not only loads the image in the best format but also the best sizes. One for the bookmarks.
Also, in case you missed it, Stefan has started publishing his Web Weekly newsletter  this year. Every Monday, you’ll find a colorful mix of resources all around frontend, productivity and web development learnings paired with handy tools and GitHub projects in your inbox. Stefan’s goal: make it the best email to start your week.
User authentication, cookie sessions, subscription payments, billing management, team management, GraphQL API, transactional emails — when you’ve built a SaaS product before, you know how much time it takes to make all the different tools involved play well together to offer the functionality you need. To change that, Max Stoiber created Bedrock  .
Static Site Boilerplate
Automated build processes, a local development server, production minification and optimizations, and the latest standards for static websites. Eric Alli’s Static Site Boilerplate  uses the latest tech to make the process of building static websites more straightforward.
The built-in development server will get you up and running in seconds, your HTML, styles, and scripts will be automatically linted, changes to files are monitored in real time, images are compressed for your production build, and sitemap.xml and robots.txt files are automatically included with your production build. A real timesaver.
Style Guide Boilerplates
What do you need to consider when building a style guide that, well, works? Brad Frost’s Styleguide Guide  takes you step by step through each and every section and what goes into it — from the homepage to guidelines, styles, components, utilities, page templates, downloads, and even support, and contributions. A very complete overview.
Brett Jankord’s Style Guide Boilerplate  is a great starting point for crafting living styleguides. You can create a directory for it on your site to see how your live site’s CSS affects the base elements and start customizing the patterns and modules to your liking.
Typographic Starter Kit
Do you need a little bit of help with typography? Not in terms of aesthetic design choices, but regarding markup? The typographic starter kit Typeplate  has got your back. It defines proper markup with extensible styling for common typographic patterns.
Typeplate is available as a stripped-down Sass or CSS library of your choosing (including Bower and CDNJS) and is primarily concerned with technically implementing design patterns, not their looks: from typographic scale and word-wrap to indenting, hyphenation, small and drop capitals, small print, code blocks, quotes, footnotes, lists, and more.
VS Code Snippets To Streamline Your Workflow
Are you using VS Code? We came across some useful extensions that handle the React, Vue, and Angular snippets you might need to type frequently for you. For Vue, be sure to check out Sarah Drasner’s extension  . It was built for real-world use and focuses on developer ergonomics instead of cataloguing API definitions.
Burke Holland provides you with a collection of essential React snippets and commands  that he selected from his day-to-day React use. And if you’re looking for Angular snippets, John Papa has got you covered. His extension adds snippets for Angular for TypeScript and HTML  to your VS Code setup.
Speaking of VS Code setup: Have you heard of the “ VS Code Can Do That Workshop  ” already? From customizing the editor to using Git and source control, it features eight exercises to enhance your VS Code skills.
Do you plan to build a Progressive Web App with Vue.js? Vuesion  has got your back. Described as the “most complete boilerplate for production-ready PWAs”, Vuesion focuses on performance, development speed, and best practices. The code is all yours, ready to be modified and build upon, so that you can implement the things you actually need, without being limited by the template itself.
If you’re looking for a solution to achieve a consistent user experience across your applications, CION  might be for you. The design system utilizes design tokens, a living styleguide with integrated code playgrounds, and reusable components for common UI tasks. A great starting point that can be extended to your project’s needs.
To improve prototyping in Vue, there’s the prototyping tool OverVue  . It allows developers to dynamically create and visualize a Vue application, implementing a real-time intuitive tree display of component hierarchy and a live-generated code preview. The resulting boilerplate can be exported as a template for further development.
Have you ever tinkered with the idea of using Vue to power a blog? Ben Hong did, and created a dev environment to help you do the same. Optimized for blogging, the VuePress Blog Boilerplate  includes default features like RSS feed generation, a list of recent posts, etc. The minimal setup and Markdown-centered project structure help you focus on writing, and, thanks to the Vue-powered engine, you can use Vue components in Markdown and develop your theme in Vue, too.
For handy Vue snippets, little tips, tricks, useful directives, and nice practices, be sure to also check out Vue Snippets  collection. A small but mighty collection.
WordPress Plugin Boilerplate Generator
No one likes to repeat unnecessary tasks. That’s why WordPress developer Enrique Chavez built the WordPress Plugin Boilerplate Generator  . Every time he started working on a new plugin, he found himself renaming file names, packages, subpackages. The generator automates the task.
All you need to do is type your plugin details in a short form containing plugin name, slug, uri, autor name, email, and uri, and the generator will generate a ZIP file for you with the correctly-named file structure. A great little timesaver.
WordPress Starter Theme
Do you plan to build your own WordPress theme? The starter theme Underscores  helps you get started. It’s not meant to be used as a parent theme but as a stable base to kickstart your theme development adventures.
Underscores comes with only minimal CSS so that there’s less stuff getting in your way when building your own theme. It shines with lean, well-commented HTML5, a helpful 404 template, an optional sample custom header implementation, custom template tags that keep your code clean, a mobile-friendly dropdown, and some other nifty features.
- ^ CSS auditing tools (www.smashingmagazine.com)
- ^ CSS generators (www.smashingmagazine.com)
- ^ accessible front-end components (www.smashingmagazine.com)
- ^ VS code extensions (www.smashingmagazine.com)
- ^ take a look at our lovely email newsletter (www.smashingmagazine.com)
- ^ skip the table of contents (www.smashingmagazine.com)
- ^ Accessibility Boilerplate (github.com)
- ^ collection of accessible snippets (atom.io)
- ^ collection of snippets (bootstrapcreative.com)
- ^ ASP.NET Boilerplate (aspnetboilerplate.com)
- ^ ASP.NET Boilerplate (aspnetboilerplate.com)
- ^ ASP.NET Core Hero Boilerplate (codewithmukesh.com)
- ^ Browser Extension Webpack Boilerplate (github.com)
- ^ extension-create (github.com)
- ^ Large preview (www.smashingmagazine.com)
- ^ as Andy Bell shows (piccalil.li)
- ^ Normalize.css (necolas.github.io)
- ^ Large preview (www.smashingmagazine.com)
- ^ Normalize.css (necolas.github.io)
- ^ Barebones (acahir.github.io)
- ^ Barebones (acahir.github.io)
- ^ CSS snippet collection (www.30secondsofcode.org)
- ^ pure CSS code snippets for user interfaces (codemyui.com)
- ^ themer (themer.dev)
- ^ Smashing Email Newsletter (www.smashingmagazine.com)
- ^ Dotbot (github.com)
- ^ Dotbot (github.com)
- ^ Awesome Dotfiles (github.com)
- ^ boilerplate application for Electron runtime (github.com)
- ^ Emergency Site Kit (github.com)
- ^ solution that requires just five icons (evilmartians.com)
- ^ How to Favicon in 2021 (css-tricks.com)
- ^ Boilerform (boilerform.hankchizljaw.com)
- ^ Modern Front-End Development Boilerplate (github.com)
- ^ HTML Frontend Boilerplate (github.com)
- ^ guidelines for building GitHub templates (github.com)
- ^ gitignore.io (toptal.com)
- ^ gitignore.io (toptal.com)
- ^ Hackathon Starter (github.com)
- ^ published the boilerplate (www.matuzo.at)
- ^ Kraken (cferdinandi.github.io)
- ^ Kraken (cferdinandi.github.io)
- ^ Skeleton (getskeleton.com)
- ^ HTML5 Boilerplate (html5boilerplate.com)
- ^ Modern HTML Starter Template (moderntemplate.site)
- ^ HTML Email Boilerplate (htmlemailboilerplate.com)
- ^ Good Email Code template (www.goodemailcode.com)
- ^ Email Framework (emailframe.work)
- ^ Lee Munroe’s template (github.com)
- ^ handy guide (htmlhead.dev)
- ^ CodeIgniter (codeigniter.com)
- ^ PHP Microsite Boilerplate (phpmicrosite.jenskuerschner.de)
- ^ Cookiecutter (github.com)
- ^ QuickSnippets (quicksnippets.dev)
- ^ React Boilerplate (github.com)
- ^ Ignite (github.com)
- ^ Electron React Boilerplate (electron-react-boilerplate.js.org)
- ^ React Starterkit (github.com)
- ^ React + Redux Snippets (marketplace.visualstudio.com)
- ^ Leonardo Maldonado’s tutorial (www.freecodecamp.org)
- ^ shows how to do it (www.stefanjudis.com)
- ^ Web Weekly newsletter (www.stefanjudis.com)
- ^ Bedrock (bedrock.mxstbr.com)
- ^ Static Site Boilerplate (staticsiteboilerplate.com)
- ^ Large preview (www.smashingmagazine.com)
- ^ Styleguide Guide (bradfrost.github.io)
- ^ Style Guide Boilerplate (bjankord.github.io)
- ^ Typeplate (typeplate.com)
- ^ Sarah Drasner’s extension (marketplace.visualstudio.com)
- ^ essential React snippets and commands (marketplace.visualstudio.com)
- ^ snippets for Angular for TypeScript and HTML (github.com)
- ^ VS Code Can Do That Workshop (burkeholland.gitbook.io)
- ^ Vuesion (vuesion.github.io)
- ^ CION (cion.visualjerk.de)
- ^ OverVue (www.overvue.io)
- ^ VuePress Blog Boilerplate (vuepress-blog-boilerplate.bencodezen.io)
- ^ Vue Snippets (www.vuesnippets.com)
- ^ WordPress Plugin Boilerplate Generator (wppb.me)
- ^ Underscores (underscores.me)
Powered by WPeMatico