Newsletter Subject

Smashing Newsletter #301: Front-End Boilerplates

From

smashingmagazine.com

Email Address

newsletter@smashingmagazine.com

Sent On

Tue, May 18, 2021 02:03 PM

Email Preheader Text

With front-end boilerplates: global CSS reset, favicons, HTML email template and VS code snippets fo

With front-end boilerplates: global CSS reset, favicons, HTML email template and VS code snippets for React, Vue, Angular and TypeScript.Issue #301 • May 18, 2021 • [View in the browser]( 💨 [Smashing Newsletter]( Hola Smashing Friends, Starting off a blank page or canvas is daunting. How would you structure your project? How would you start building your HTML email? Do we use global CSS resets, and if so, which one? And what's the bulletproof syntax for favicons again? In this newsletter issue, we highlight useful boilerplates — from HTML and accessibility boilerplates to global CSS reset, favicons and VS Code snippets for React, Vue, Angular and TypeScript. We’ll be publishing a lengthier overview of these boilerplates later in the magazine, so if you are using one all the time, please [let us know on Twitter](. [Birthday picker showing 6 February 2019]( Birthday picker starting from February 6th, 2019. From our [new series on frustrating design patterns](. As of how-are-things-at-the-smashing-department, there is quite a bit happening behind the scenes. We’ve been working on a few new series of articles that will be coming shortly, written by wonderful people from the community with whom we have the incredible honor to be working with. So drop by and take a look at the new articles on [CSS Container Queries]( by Stephanie Eckles, a [case study on Core Web Vitals]( by Beau Hartshorne, and our shiny new posts on [frustrating design patterns]( by yours truly — among [many other articles](. Happy reading — and we hope you’ll find these articles useful for your work. And now, off to boilerplates! — Vitaly ([@smashingmag]( --------------------------------------------------------------- #1. 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. [HTML Boilerplate]( 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. (cm) --------------------------------------------------------------- #2. Boilerplates For Responsive HTML Emails We all know about the challenges that come with designing and building 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](. [Free Responsive HTML Email Template]( 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. If you only need a really 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! (cm) --------------------------------------------------------------- From our sponsor Code, Test And Debug WordPress In A Local Environment With DevKinsta [Code, Test And Debug WordPress In A Local Environment With DevKinsta]( Design WordPress sites and themes offline with [DevKinsta]( Kinsta’s free local development tool. DevKinsta has powerful tools like a built-in database manager, SMTP server, WordPress_DEBUG toggle, and more. [Use DevKinsta to test your site]( with the latest version of PHP in a safe environment supporting PHP 7.2-8.0. --------------------------------------------------------------- #3. Modern Global CSS Resets What are sensible CSS defaults for modern projects? Do we need to rely on HTML5 Boilerplate, or Normalize.css, or should we not use them at all? To prevent common CSS issues down the line, it is a good idea to already lay the foundation when beginning a web project. So if you’re looking for a boilerplate solution for CSS, Andy Bell's [A Modern CSS Reset]( is for you. [CSS Boilerplate]( According to Andy, thee days we can trust our browsers to behave properly, so heavy-handed resets aren't really necessary. Andy provides a [tiny little CSS reset]( that you can use as the basis for your CSS, and provides a [detailed breakdown of each declaration]( as well. And in a proper [CSS folder organization boilerplate]( Matthias Ott explains how he structures CSS, using ITCSS and BEM. A well-established and sensible approach to avoid overwriting CSS and writing styles with maintenance in mind. This should cover the ground well! (vf) --------------------------------------------------------------- #4. Upcoming Smashing Online Workshops We love reliable tools and techniques, and they are pretty much at the heart of the [online workshops that we run]( — be it around accessibility, design or front-end. With our workshops, you can boost your skills around front-end and design, and get better at your work, live. [Smashing Online Workshops]( We have [Summer Bundles]( — spend the summer learning with us! 🏖 For the next workshops, we have coming up: - [React Performance]( Dev with Ivan Akulov. May 20 – June 4. - [Dynamic CSS]( Dev with Lea Verou. May 25 – June 8. - [New Adventures In Front-End 2021]( Dev with Vitaly Friedman. June 9–23. - [Successful Design Systems]( Dev with Brad Frost. June 29 – July 13. - [Level-Up With Modern CSS]( Dev with Stephanie Eckles. July 8–22. - [Designing Websites That Convert]( UX with Paul Boag. July 22–30. - [The TypeScript Masterclass]( Dev (early-birds!) with Stefan Baumgartner. August 5–19. - [Building Modern HTML Emails]( Dev (early-birds!) with Rémi Parmentier. September 16–24. --------------------------------------------------------------- #5. A Snippet For Loading Responsive WebP Images What's the responsive images syntax again? Was it srcset, or sizes, or both? We want to ship AVIF and WebP today, but we also need a loading strategy that providess a fallback for browsers that don’t support modern image foramts. Stefan Judis [has a little snippet boilerplate to do it](. [A picture element to load correctly resized webp images in HTML]( Addy Osmani explains everything around images in his article on [humble element and Core Web Vitals]( and you can use Stefan’s snippet to keep the right format of the responsive images markup nearby. 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. (cm) --------------------------------------------------------------- From our sponsor 5 Reasons Why You Should NOT Write Your JavaScript Data Grid From Scratch [5 Reasons Why You Should NOT Write Your JavaScript Data Grid From Scratch]( Of the many awesome things JavaScript developers can build, most are enjoyable, some give you a headache, but also satisfaction, and a handful should be labeled “Here be dragons.” Here are [five compelling reasons]( why creating a data grid from scratch falls into the latter category. [Change my mind](. --------------------------------------------------------------- #6. 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 had to deal with more than 20 static PNG files to display a simple favicon at some point. To make the process more straightforward, you can explore a [smarter solution that requires just five icons]( and one JSON file to fit most modern needs. [How to Favicon in 2021]( 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. (cm) --------------------------------------------------------------- #7. 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. [Vue VS Code Snippets]( 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. (cm) --------------------------------------------------------------- From our sponsor Build In-Demand Skills In Northwestern’s Online MS In Information Design And Strategy [Northwestern: Online Master’s in Information Design and Strategy]( Earn your master’s degree [online](. --------------------------------------------------------------- #8. New On Smashing Job Board - [Senior UX Engineer]( at JobRad GmbH (Freiburg, DE) - [Associate Web Developer]( at Fahrenheit Creative Group, LLC (Jackson, Mississippi) - [Graphic Designer @ Fun Ecom Co]( at JLS Trading Co. (Remote) --------------------------------------------------------------- #9. Our Current Most Popular Articles - [How To Create, Edit And Animate SVGs With SVGator 3.0]( - [Smashing Podcast Episode 37 With Adam Argyle: What Is VisBug?]( - [How We Improved Our Core Web Vitals (Case Study)]( --------------------------------------------------------------- That’s All, Folks! Wow, you’ve made it this far! We hope you’ve found at least one useful, practical tidbit that will help you get better at what you do. As you see, there are so many talented folks out there working on so many brilliant projects, and we’d sincerely appreciate it if you could help spread the word and give them all the credit they deserve! Thank you so much for reading and for your support in helping us keep the web dev and design community strong with our newsletter. See you next time! --------------------------------------------------------------- This newsletter issue was written and edited by Cosima Mielke (cm), Vitaly Friedman (vf) and Iris LjeÅ¡njanin (il). Sent to truly [smashing]( readers via [Mailchimp](. We sincerely appreciate your kind support. You rock. [Follow us on Twitter]( • [Join us on Facebook]( Weekly issues with useful tips for web devs. Email: newsletter@smashingmagazine.com. [unsubscribe]( • [update preferences]( • [view in your browser]( This email was sent to {EMAIL} [why did I get this?](    [unsubscribe from this list](    [update subscription preferences]( Smashing Media AG · Werthmannstr. 15 · Freiburg 79098 · Germany

Marketing emails from smashingmagazine.com

View More
Sent On

01/10/2024

Sent On

24/09/2024

Sent On

17/09/2024

Sent On

10/09/2024

Sent On

03/09/2024

Sent On

27/08/2024

Email Content Statistics

Subscribe Now

Subject Line Length

Data shows that subject lines with 6 to 10 words generated 21 percent higher open rate.

Subscribe Now

Average in this category

Subscribe Now

Number of Words

The more words in the content, the more time the user will need to spend reading. Get straight to the point with catchy short phrases and interesting photos and graphics.

Subscribe Now

Average in this category

Subscribe Now

Number of Images

More images or large images might cause the email to load slower. Aim for a balance of words and images.

Subscribe Now

Average in this category

Subscribe Now

Time to Read

Longer reading time requires more attention and patience from users. Aim for short phrases and catchy keywords.

Subscribe Now

Average in this category

Subscribe Now

Predicted open rate

Subscribe Now

Spam Score

Spam score is determined by a large number of checks performed on the content of the email. For the best delivery results, it is advised to lower your spam score as much as possible.

Subscribe Now

Flesch reading score

Flesch reading score measures how complex a text is. The lower the score, the more difficult the text is to read. The Flesch readability score uses the average length of your sentences (measured by the number of words) and the average number of syllables per word in an equation to calculate the reading ease. Text with a very high Flesch reading ease score (about 100) is straightforward and easy to read, with short sentences and no words of more than two syllables. Usually, a reading ease score of 60-70 is considered acceptable/normal for web copy.

Subscribe Now

Technologies

What powers this email? Every email we receive is parsed to determine the sending ESP and any additional email technologies used.

Subscribe Now

Email Size (not include images)

Font Used

No. Font Name
Subscribe Now

Copyright © 2019–2025 SimilarMail.