Tuesday, December 22, 2015

Smashing Newsletter #150: Holidays Gifts, CSS and HTTP/2

What's the best gift you've ever received? Last newsletter issue in 2015. Issue #150 Tuesday, December 22nd 2015 178,147 readers View in the browser

The Smashing Email Newsletter

Dear Friends,

What's the best gift you've ever received? The one you'll remember for years to come? Perhaps something lovingly crafted by somebody you care about, specifically for you? Maybe a very special origami with your name, or a vinyl of your favourite jazz composition, or a very special concert ticket, or a stone from the ocean where you celebrated a birthday together — a sign that somebody listened to you, paid attention and pulled out all the stops to find it, and give it to you.

We can't give you that special gift because we don't know you as well as your loved ones. But we can give you our truly smashing Smashing Book 5, "Real-Life Responsive Web Design", almost for free. Get the eBook today — 60% off, no strings attached. The print edition is pretty fancy too.

No, Smashing Book 5 doesn't make an appearance in Star Wars, but it's universally useful — well, for pros like you who care about the web, of course.

$7.90 $19.90

Get the eBook...and save 60% today. Happy holidays, everyone.

And if you're looking for something else, Quartz Gift Guide has featured some of the most memorable gifts shared by influential leaders in art, fashion and business. The best gifts are like those roman candles, giving light and wonder to our lives. Give something special to people you care about, even if it means that you have to pull all the stops to get there.

P.S. No, Smashing Book 5 doesn't make an appearance in Star Wars, but it's universally useful — well, for pros like you who care about the web, of course.

Happy holidays!
— Vitaly (@smashingmag)


Table of Contents

1. Are You Ready For HTTP/2?
2. Advanced Typographic Details, Small Efforts
3. Innovative Responsive Experiments
4. Getting Started With CSS Blend Modes
5. Mine, Yours, Ours or Theirs?
6. Positive Projections For Women In Tech
7. Designing For Virtual Reality
8. Upcoming Smashing Workshops
9. Upcoming Smashing Conferences
10. New On Smashing Job Board
11. Smashing Highlights
12. Recent Articles On Smashing Magazine

1. Are You Ready For HTTP/2?

The end of the year is just the right time for a clean slate. Just last week we deployed some rewritten bits of JavaScript, switched to PHP7 and moved our test environment to HTTPS — to get ready for the big switch to HTTP/2 in January. With an unlimited umber of parallel requests, HTTP/2 seems to bring 1.5× speed improvement (you can test your speed on HTTP/2 too). And that's kind of a big deal.

Are You Ready For HTTP/2?

Yet from a strategic perspective, HTTP/2 also brings some challenges. You need an SSL certificate: you could set up a free SSL certificate via Let's Encrypt. HTTP/2 is well-supported and there are server modules available for Apache and Nginx, so you could literally move to HTTP/2 today. The protocol is backwards compatible, so browsers not supporting HTTP/2 will naturally fall back to HTTP/1.1. Good news, right?

As Rebecca Murphy suggests, with HTTP/2 the ways we build and deploy websites are quite different from the HTTP/1.1 world, so we might need to send different builds via different protocols. If we optimize for HTTP/2, we might slow down the HTTP/1.1 experience. This might complicate deployment and delay maintenance. In her article, Rebecca suggests a strategy for HTTP/2-friendly deployment with HTTP/1.1 support which might be your strategy, too. HTTP/2 isn't just a switch; it requires consideration and optimization, especially if many (or most) of your users are still running on HTTP/1.1. (vf)


2. Advanced Typographic Details, Small Efforts

To achieve fine typographic details, there's usually no getting around some convoluted CSS. Luckily, Kenneth Ormandy's Utility OpenType puts an end to this. The 1.75KB CSS file reduces clutter in your style sheet and makes applying ligatures, small caps, number variants and other finesses as simple as using bold and italics.

Advanced Typographic Details, Small Efforts

How is it done? Well, by providing declarative utility classes that you can apply to entire elements or, specifically, to inline spans to evoke the desired typographic appearance. Contrary to the common font settings properties, the features cascade predictably, which, in the end, spares you a lot of maintenance work. Utility OpenType supports Chrome, Firefox and Internet Explorer 10+, and falls back gracefully elsewhere. You can use it with Sass, PostCSS, and, of course, with your plain ol' CSS too. A powerful little helper. (vf)


3. Innovative Responsive Experiments

What was the most complex responsive interface you had to build over the last few years? It might have been a fully responsive online banking UI, a sophisticated dashboard, an admin interface, a responsive game, or perhaps a heavily art-directed magazine issue. Well, with enough creativity, responsive design can bring us to new territories we never thought would be possible.

Innovative Responsive Experiments

For example, what about a smooth and simple CSS calendar (it can change the view and level of fidelity depending on the viewport) or responsive zoomable UIs — interfaces where you can basically zoom in and out of sections instead of using traditional navigation. Or maybe responsive cartoons where the interaction and the appearance change depending on the screen resolution (try it on desktop and phone). Or maybe responsive math equations? Even when building resilient responsive systems, there are interesting problems to solve, and it looks like pretty much everything can be solved with responsive design. Responsive design is worth experimenting with! (vf)


Advertisement
Ad


4. Getting Started With CSS Blend Modes

What if you need to dynamically reverse text color based on background color? In the past, we would either use CSS attribute selectors to target a few different use cases (not dynamic enough!) or JavaScript to toggle classes based on the detected background color. Well, with CSS blend modes you can resolve this issue way faster and way more simply.

Getting Started With CSS Blend Modes

CSS blend modes describe how different pieces of content should blend together — either with mix-blend-mode for an HTML element against the background or background-blend-mode for blending foreground and background images, as well as SVG elements. By applying one of the mix-blend-mode values (e.g. darken) on the foreground text, it will seamlessly blend in with the background. Simple. Robin Rendle and Dudley Storey have explained in detail how to reverse text color automatically in CSS.

To get started with CSS blend modes, check Blending Modes in CSS which provides a nice overview of practical applications of CSS blending modes with an interactive playground. Dudley Storey has a collection of practical blend mode examples and a comprehensive CSS blend modes reading list (or an introduction in German). Browser support? Pretty decent, actually. Now that's a nice add-on for funky and playful backgrounds! (vf)


5. Mine, Yours, Ours or Theirs?

When you write interface copy — for buttons, links or dashboard areas — how do you actually deal with personal pronouns? For example, when talking about the user's side of the interface, should it be "My profile" or "Your profile", or maybe just "Profile"? According to our Twitter poll, many readers prefer "My account", but is it convenient for the user?

Mine, Yours, Ours or Theirs?

In her article on the FutureLearn UI decisions, Alla Kholmatova argues that we should distinguish between when we're communicating to the user, and when the user is communicating to us. In the first case, since we are addressing users, we could use "you" (e.g. "Here's your profile", "Here are your settings"). In the second case, we could use "my" (e.g. "Email me when I have a new follower"). Every simple decision requires a bit of thought, and viewing the UI as two-way communication can help to guide design decisions and resolve copy inconsistencies. A little detail to keep in mind for the next project. (vf)


6. Positive Projections For Women In Tech

As a woman working in the events industry (more specifically in the tech events industry) for over five years, striving for well-balanced line ups, and friendly, inclusive atmospheres at my conferences has always been a no-brainer. It's distressing to hear about fellow females experiencing sexism within the community that I love (and yes, I've experienced it myself at times) so it was heartening to read Lea Verou's recent blog post "My Positive Experience As a Woman In Tech."

Positive Projections For Women In Tech

In it, Lea makes the very valid point that while discrimination undoubtedly occurs and should not be discounted in any way, "when no positive stories get out, the overall picture painted is bleak, which could scare even more women away." If you're interested in her thoughts regarding the internalized stereotypes that anyone is capable of unwittingly carrying around in their heads, or the well-meaning but ultimately counterproductive effect that attempts to self-censor around members of the opposite sex can have, it's a refreshing read. (cc)


Advertisement
Ad


7. Designing For Virtual Reality

What if your new project is supposed to contain interactive components working well with miraculous VR devices such as Oculus Rift, Cardboard or Samsung Gear VR? How would you design virtual reality experiences? How would you prototype them? And how would you build them within your existing working environment?

Designing For Virtual Reality

Well, instead of examining screen sizes and touch, you'd be looking into head tracking and acceleration, reticles, scale, gaze cues and spatial audio to guide your users through the interface you are crafting. Casey Hopkins has prepared a few UX considerations on designing for virtual reality while Jonas Treub shows how we can prototype VR experiences with Framer.js. Matt Sundstrom suggests that we think about immersive design that supports and enhances the user's sense of presence in the virtual environment, and even Google and Facebook have run some VR experiments recently. You can also use markup to create VR experiences with A-Frame. This should be enough to get started. Can VR design be responsive, too? We'll surely figure that out. (vf)


8. Upcoming Smashing Workshops

With so many techniques, tools, libraries, design patterns, strategies, abstractions, frameworks and boilerplates available nowadays, what do you really need to know to keep your workflow fast, smart and efficient? That's exactly what our front-end and RWD workshops are all about: practical front-end and RWD workshops that will help you become better front-end developers and designers, today.

Upcoming Smashing Workshops

Full-Day Workshops at SmashingConf Oxford

Full-Day Workshops at SmashingConf San Francisco

But what about in-house training instead? We can improve your front-end and performance right on spot — or checkout, accessibility or UX. Feel free to get in touch with Vitaly at vitaly@smashingconf.com and briefly describe what problems you're facing and would like to solve. Don't worry about the cost — we'll find a fair price for sure. Get in touch — it's that easy! (vf)


9. Upcoming Smashing Conferences

We love bringing people together, and creating a friendly atmosphere for everybody to share and to learn. Our community events are for professionals like yourself who want to improve skills and make a difference. No fluff, no theory — just actionable insights applicable to your work right away. In fact, we've listed our next stops in the overview of upcoming Smashing Conferences, with first confirmed speakers and tickets.

Upcoming Smashing Conferences

We'd love to meet you at SmashingConf Oxford, UK on March 15–16, or perhaps at SmashingConf San Francisco, on April 5–6, 2016 with a tremendous view, right opposite to Golden Gate Bridge and Alcatraz Island. Ah, and just in case you need to convince your manager to send you to the event, we've got a Convince Your Boss PDF ready for you, too. Just sayin'! (vf)

Image credit: wigz


New On Smashing Job Board

Here are the recent job openings published on our Smashing Job Board:

  • Senior UX Designer at Zalando (Berlin, Germany)
    "In collaboration with peers, POs and developers, you will increase customer retention at Zalando by enticing customers, enabling discovery, personalizing recommendations and individualizing the Zalando experience."

  • Front End Developer at Booking.com (Amsterdam, NL)
    "Booking.com is looking for the world's best Front End Developers all around the globe! Join us at our beautiful headquarters in Amsterdam and work on planet Earth's #1 accommodation website with some of the industry's smartest people!"

  • Art Director at OpenRoad (Vancouver, BC)
    "It's about gut-wrenchingly gorgeous work. It's about amazing, delighted people. It's about fantastic, rock-solid results. If those are the sorts of things that get you up and rocking everyday, then maybe you're the Art Director OpenRoad is looking for."


Smashing Highlights (From Our Archives)

  • Free Christmas Icon Sets
    Over the years, we've released a number of beautiful icon sets that you (still) can use for free both in commercial and private projects.
  • Avoiding The Pitfalls Of Free
    Misaligned interests create tension in the design process that can lead to bad, and potentially unethical, design decisions, that result in inferior products. In this article Dmitry Fadeyev examines how the desire to build a large audience by giving away your products and services free of charge can cause conflicts of interest.
  • Making Advertising Work In A Responsive World
    Advertising has always had an uneasy relationship with the media because of ethical considerations on both sides of the printing press. On the one hand, journalists are reluctant, quite rightly, to be seen as under the thumb of an advertiser, and on the other side, advertisers don't want to be seen to be enforcing their views on the free press.

Recent Articles On Smashing Magazine


Sent to truly smashing readers via Mailchimp.
We sincerely appreciate your kind support. You rock.

Email: newsletter@smashingmagazine.com
Follow us on Twitter Join us on Facebook

The authors are: Cat Clark (cc), Markus Seyfferth (ms), Iris Lješnjanin (il), Vitaly Friedman (vf), Christiane Rosenberger (research), Elja Friedman (tools).

unsubscribe update preferences view in your browser


Tuesday, December 8, 2015

Smashing Newsletter #149: Free Fonts, Advent Calendars and Empty Promises

When was the last time when you explore something entirely random? Issue #149 Thuesday, December 8th 2015 177,856 readers View in the browser

The Smashing Email Newsletter

Dear Friends,

Randomness is powerful. In times when everything seems to be like everything else, the best strategy to avoid generic solutions is to avoiding generic sources of inspiration. Instead of looking at similar websites or exploring remotely connected designs or art posters, what if we embraced randomness instead?

Hardboiled Web Design
Andy Clarke's brand new "Hardboiled Web Design" uses the "detectives" theme throughout the book to provide a few smart front-end techniques. The book is being dispatched this very moment, by the way. Just sayin'!

Pick a random antique book from a library and start exploring typography. Visit a random Wikipedia article and just follow your curiosity: from a historic article to a map of a country to map design to data visualization. Look around you at the wallpapers, tiles, carpets, signage or the shape of pencils and chairs and look into ways of synthesizing all of these ideas creatively. Avoid frameworks. Avoid Photoshop. Avoid CMS. Avoid design patterns. Just draw and sketch and design and explore.

But how do you apply the idea to your creative project then? Well, pick a theme and design an experience around it. Perhaps retrofuturism could work as a theme, or geometric shapes, or zooming experience or floating cards. That's a way to create unique, expressive and distinctive experiences that users might remember way better than another Bootstrap website. Explore randomness, and make it a ritual to dedicate 15 mins every other Sunday to something purely random: not only will you learn a lot, but will explore things that you might never have stumbled otherwise.

Keep exploring!
Vitaly (@smashingmag)


Table of Contents

1. Served! Butler, a Free Font Family
2. Remarkably Precise Image Cropping With JavaScript
3. Advent Calendars for Web Designers
4. On The Hunt For Color
5. Bullettproofing Slider Interfaces
6. Understanding JavaScript Promises
7. Font Usage Across The Web
8. Calendars For Creatives
9. Letter Collections: A Handlettered Postcard Project
10. Upcoming Smashing Workshops
11. Smashing Highlights
12. New On Smashing Job Board
13. Recent Articles On Smashing Magazine

1. Served! Butler, a Free Font Family

You can't have enough free quality fonts, can you? Fabian De Smet has released Butler, a free serif typeface with a conservative personality, by a mix between both Dala Floda and the Bodoni family. According to the designer, the main goal for the typeface was to bring a bit of modernism to serif fonts by working on the curves of classical serif fonts and adding an extra stencil family.

Served! Butler, a Free Font Family

The result: a beautiful family with 334 characters, 7 regular weights and 7 stencil weights, text figures, ligatures and fractions, well suited for a variety of languages, too. A good choice for type in large sizes, posters and books. Downloaded! (vf)


2. Remarkably Precise Image Cropping With JavaScript

Content-aware image cropping. Something that is best done manually? Well, not necessarily. A remarkably precise image cropping algorithm comes from Jonas Wanger: smartcrop.js. Based on simple image processing rules, smartcrop.js generates crops of your images that keep the details in the center.

Remarkably Precise Image Cropping With JavaScript

Browser support is nearly gapless (only IE 8 isn't supported) and it takes smartcrop.js less than 100 ms to find a square crop of a 640x427px picture. But please keep in mind: it's fine to run the library on one picture, but running it on page load for an entire gallery will harm performance. For a Node implementation of smartcrop.js make sure to also check out Jon Stuebe's SmartCrop Node. (cm)


3. Advent Calendars for Web Designers

Here we go, it's this time of the year again! Not only of cheerful holidays but also of annual advent calendars to web designers. As always, 24ways features 24 ways to impress your friends with front-end and UX, while Performance calendar covers practical techniques for faster and more resilient websites.

Advent Calendars for Web Designers

Furthermore, the Content Strategy Advent Calendar shares advice and tips on all things content related, Sysadvent provides great articles about systems administration topics written by sysadmins. If you prefer to read in German or French, Webkrauts-Adventskalender 2015 and 24 jours de web have a few things worth checking out as well. Not enough? Christmas Experiments features digital artists who produce something unique and creative to celebrate the festivities. Shape Christmas is similar but is themed around shapes, experiment with one shape a day until Christmas. Want to create your own advent calendar? Here you, it's still not too late: 25daysof.io to the rescue! Happy holidays, everyone! (vf)


Advertisement
Vivify


4. On The Hunt For Color

Colors take us on an associative journey: cool blues might remind us of a windy day by the sea, warm tones of an autumn forest, a soft color palette of the candy store from our childhood. Whatever it is, colors have something fascinating to them. If you are hunting for color inspiration or just want to indulge in their beauty, then Color Hunt is for you.

On The Hunt For Color

Curated by Gal Shir, Color Hunt is a community for sharing color palettes. You can browse and like existing palettes or submit your own. A nice add-on: the accompanying Chrome extension transforms every new tab you open into an inspiring color palette. (cm)


5. Bullettproofing Slider Interfaces

Slider interfaces seem intuitive, but out in the wild they can turn out to be quite problematic. In fact, a recent e-commerce usability study conducted by the Baymard Institute found that sliders not seldomly end up as a case of false simplicity: it seems simple, but when users try to interact with the interface it breaks apart and results in a clumsy experience. But that doesn't mean we should avoid sliders at all cost. If we stick to just a handful of implementation details, we can make them work, for good.

Bullettproofing Slider Interfaces

To bulletproof your sliders even further, you can also turn to an accessible slider script such as Brian McAllister's fd-slider. It conforms to the WAI-ARIA defined role of "slider" and can also be used as an HTML5 input range polyfill solution. Besides that, the slider is keyboard accessible and designed for touch, too. (cm)


6. Understanding JavaScript Promises

Whether you are writing advanced JavaScript or you've accidentally stumbled upon a piece of code — chances are high that you might have run into JavaScript promises, a relatively new concept which defines many of the sophisticated Web technologies today, like Service Workers or Node.js.

Understanding JavaScript Promises

Yet understanding promises isn't as straightforward as one might assume. JavaScript is single threaded, and the language semantics are inherently synchronous and sequential. It means that two bits of script cannot run at the same time, they have to run one after another. So if you want to run scripts asynchronously, you had to use events and callbacks in the past — with promises, you can do the same thing with a much simpler interface, and way faster. How?

Well, How Do Promises Work? goes into detail explaining promises with illustrations and examples, while Jake Archibald's article provides practical examples, and Nicolás Bevacqua's Promisees visualizes JavaScript promises in slow-motion. It might take a while to get it, but once you do, writing JavaScript will be much easier! (vf)


Advertisement
Ad


7. Font Usage Across The Web

Arial, Verdana and Helvetica Neue are some of the usual subjects when it comes to choosing fonts for a website. But what exactly does font usage across the web look like? Which fonts are trending, which ones are a more unique choice? If you want to assess how widespread a font is before you implement it into your design, then FontReach is for you.

Font Usage Across The Web

Brought to life by Jesse Chase and Jason Chen, FontReach lets you search for a font and shows you its popularity rank along with a list of websites that have it in their font stacks. The results are based on data from the top million sites on the web. Impressive. (cm)


8. Calendars For Creatives

Do you rely on digital calendars or do you prefer the tactile experience of having a tear-off calendar on your desk or a pocket calendar to jot down your deadlines and meetings? If you belong to the later and are still looking for a paper companion to track your time in 2016, well, Designer in Action has put together a fine selection of calendars that are bound to put a smile on your face. The site is in German, but nevertheless very inspiring for everyone with a sweet spot for well-made paper products.

Calendars For Creatives

Among the calendars are ones that celebrate minimalistic typography, some provoke our thoughts or wake our curiosity with photography, others impress with beautiful details and their choice of materials. A collection that will certainly wake your fancy for paper. (cm)


9. Letter Collections: A Handlettered Postcard Project

We send and receive a plethora of emails and text messages every day. But when was the last time you took the time to send someone a handwritten postcard? A message that doesn't get lost in the digital clutter of overflowing inboxes and social media streams? Something that, well, stays?

Letter Collections: A Handlettered Postcard Project

Martina Flor, a Berlin-based letterer and designer, shows her appreciation for the people she loves, likes, misses, those who inspire her and those whom she always wanted to meet with a handwritten postcard. Her goal is to send 100 postcards in total, and, what makes the plan even more special, she designs each one of them herself, with unique handlettering that tells a story tailored to the recipient. Luckily for all of us who aren't on her mailing list, she shares her works online in the Letter Collections. From there we can even send postcards (although digitally, of course) with a custom message. A beautiful tribute to the written word and to taking the time to show people what they mean to us. (cm)


Advertisement
Ad


10. Upcoming Smashing Workshops

With so many techniques, tools, libraries, design patterns, strategies, abstractions, frameworks and boilerplates available nowadays, what do you really need to know to keep your workflow fast, smart and efficient? That's exactly what our front-end and RWD workshops are all about: practical front-end and RWD workshops that will help you become better front-end developers and designers, today.

Upcoming Smashing Workshops

Full-Day Workshops at SmashingConf Oxford

Full-Day Workshops at SmashingConf San Francisco

Online Classes

But what about in-house training instead? We can improve your eCommerce checkout and conversion rates right on spot — or performance, accessibility or UX. Feel free to get in touch with Vitaly at vitaly@smashingconf.com and briefly describe what problems you're facing and would like to solve. Don't worry about the cost — we'll find a fair price for sure. Get in touch — it's that easy! (vf)


11. Smashing Highlights

  • The Good, The Bad And The Great Examples Of Web Typography
    Choosing typefaces is an integral part of every web design project. With thousands of typefaces available from hosting services such as Typekit, as well an ever-improving collection of free fonts available, there has never been a better time to be a typography-obsessed web designer.b animation is coming out that might just unite both camps.

  • Absolute Horizontal And Vertical Centering In CSS
    We've all seen margin: 0 auto; for horizontal centering, but margin: auto; has refused to work for vertical centering… until now! But actually absolute centering only requires a declared height and these styles:

  • Design Principles: Visual Weight And Direction
    Every element on a web page exerts a visual force that attracts the eye of the viewer. The greater the force, the more the eye is attracted. These forces also appear to act on other elements, imparting a visual direction to their potential movement and suggesting where you should look next.


12. New On Smashing Job Board

Here are the recent job openings published on our Smashing Job Board:

  • Digital Designer at Population Reference Bureau (Washington, DC)
    "The digital designer is a well-rounded expert in design for multiple types of digital media. S/he is excited about keeping up with current design trends and developing innovative visual storytelling approaches."

  • Online Instructor at Envato Tuts+ (Melbourne, Australia)
    "We're looking for online instructors to teach video-based courses or write how-to tutorials at Tuts+. Get paid a competitive rate to share your knowledge and experience. "

  • UX / UI-Designer at Social Fashion Company (Cologne, Germany)
    "You want to make a difference, change the status quo? So do we! You have high quality standards and you are dedicated to support us in continuously improving our online shop? Then we are looking for you to join our team at our Cologne headquarters as a full-time UX / UI Designer!"


13. Recent Articles On Smashing Magazine


Sent to truly smashing readers via Mailchimp.
We sincerely appreciate your kind support. You rock.

Email: newsletter@smashingmagazine.com
Follow us on Twitter Join us on Facebook

The authors are: Cosima Mielke (cm), Vitaly Friedman (vf), Christiane Rosenberger (research), Elja Friedman (tools).

unsubscribe update preferences view in your browser