Tuesday, November 11, 2014

Smashing Newsletter #123: Free Fonts and CSS Experiments

With smart interface patterns, Photoshop tools and sound libraries. Issue #123 • Tuesday, November 11th 2014 • 181,852 readers • View in the browser

The Smashing Email Newsletter

Dear Friends,

While media queries enable responsive designs, they are actually quite limited at what they do. They are just like if-then statements, and are very static and rigid. Nowadays, we may be talking a lot about building responsive layouts, but not so much about how to maintain them in the future.

Editorial

What if you thoroughly selected your breakpoints (device-agnostically, of course), but then find out a year later that a layout has to change — a lot? Or that some of the components have to move within the layout — a lot? Often you will end up fixing and adjusting each and every media query, and this can obviously be very time consuming. Media queries are not good enough to provide us with a level of flexibility and modularity that we need for scalable design systems.

Wouldn't it be better if we could just define the behavior of a component based on its own width and height (or the width and height of its parent element)? Then, once we have decided to drop that component in a specific area of the page, it would automatically adjust itself based on the behavior we defined for it?

Well, that's exactly the point behind element media queries in which quite a number of use cases are involved. In fact, if you can afford using a little JavaScript, you can then also use the element query polyfill, eq.js library or even element queries workarounds and tricks with a little JavaScript and some attribute selectors. Need something more advanced? Conditioner.js is a library for loading and unloading behavior based on environment conditions of the component.

Just a few little helpful tools to make a responsive site at least a bit more flexible, and avoid maintenance headaches along the way.

– Vitaly (@smashingmag)


Table of Contents

1. The Beauty Of CSS Experiments
2. Free Sound Libraries For Better UX
3. Smart User Interfaces, As Animated GIFs
4. Clever Photoshop Tools And Scripts
5. Free Fonts Round-Up: Nexa, Citizen Slab, League Spartan
6. There Has Always Been Art
7. Why Would A Banana Want To Be Blue?
8. Learning Has Never Been Easier: Join A Smashing Workshop

1. The Beauty Of CSS Experiments

CSS is very practical in its nature, yet we can bend it creatively to stretch the borders and see what we can achieve with it beyond our regular layout problems. That's where creative experiments come into play. You might not see a practical value in them just yet, but perhaps you might implement some of these techniques in your future projects.

The Beauty Of CSS Experiments

One of these experiments is Blackout. Blackout is a cinematic experience that "explores the phenomenon of the extinction of lights", as its creator Ee Venn Soh explains. What sounds quite abstract is in fact a magical interplay of light and shadow, movement, geometric shapes and 3D effects that will cast a spell on you in no time. Puristic and very fascinating.

Another beautiful experiment comes from Russian designer Yoksel. She opted for a quite unusual combination of techniques (CSS, GIF animation and blend modes) to create a stunning animation of a flying raven that comes to life behind (or on top of?) a black and white Harlekin pattern. A bit like an optical illusion that you just can't stop looking at. Also, have you already seen the animated lighthouse that was created with CSS? It's pretty impressive what you can bring forth with the techniques that we actually have right in front of us. It's just combining them creatively that produces unusual results! (cm)


2. Free Sound Libraries For Better UX

Your user interface might be smart and beautiful already, but maybe it's still a bit lifeless, i.e. always so calm and so silent? Visual feedback is important, but we can integrate audio feedback as well, just to make sure that when users click on those buttons in your interface, they get a nice delightful surprise out of the box.

Free Sound Libraries For Better UX

What about the sound of fire cracking or the ocean swinging, or perhaps just rain drops falling on leaves? There are a few libraries that we're sure you'll want to check out, such as Free Defonic Sound Library, that lets you combine sounds into a melody. Or what about SoundKit, a large commercial sound library for UI components? Then there's freeSFX that provides free sound effects and also freesound which is a collaborative community for people sharing sounds licensed under Creative Commons. Last but not least, you can use ion.sound, a jQuery-based plugin that plays sounds on events as well. All nice and good, but please don't misuse the sounds; when applied heavily, they can easily get quite annoying! (vf)


Advertisement
Ad


3. Smart User Interfaces, As Animated GIFs

Is there anything better than starting into a new week with some clever examples of UI? Well, you'll love the uiGIFs newsletter that Ramy Khuffash sends out every Monday. In this little library of his, Ramy collects interesting examples of user interfaces and showcases them, well, as animated GIFs, of course.

Smart User Interfaces, As Animated GIFs

The interfaces showcased in the newsletter and online are thoroughly selected and come from real apps. You won't find any fancy mockups or imaginary solutions to problems that don't exist yet, but instead only things that work in the wild — with real users. Definitely a nice place for that regular dose of user interface discovery every now and again! (cm)


4. Clever Photoshop Tools And Scripts

Perhaps you don't use Photoshop as your primary design tool, but you may still use it to figure out the visual direction of the design or the design of website components. In either case, you could use a few useful plugins that allow a slightly easier transition from an element collage in Photoshop to a working prototype in the browser.

Clever Photoshop Tools And Scripts

For example, the Size Marks Photoshop script converts rectangular marquee to labeled measurement marks, while the Swatchy Photoshop plugin creates folders for your swatches in Photoshop. Not good enough? You can also use a number of useful Photoshop plugins for easier rotation, parsing colors from images and group layer renaming. These little gems are bound to help you get smarter and faster, but only if you use Photoshop, that is. (vf)


Advertisement
Ad


5. Free Fonts Round-Up: Nexa, Citizen Slab, League Spartan

Free quality fonts are always hard to come by. You may sometimes think you've found a good catch, but then the quality just isn't good enough. Nevertheless, there are a few exceptions every now and then. Nexa Rust is a rough, multi-faceted font family that includes Sans, Slab, Script, Handmade and Extras sub-families with a good number of font weights.

Free Fonts Round-Up: Nexa, Citizen Slab, League Spartan

If you are looking for a bit more casual or less colloquial free fonts, you might find Fira Sans, Citizen Slab, Eau Sans, League Spartan, Quark, Atlético, Montserrat quite helpful (all available for private and commercial projects for free, or Klinik Slab which is free for personal use only. If you ever get the chance to spend some money on fonts to support the type designers, it would be sincerely appreciated. (ml)


6. There Has Always Been Art

Cave paintings, the Medici family, Expressionism, Futurism, Bauhaus... What are all these terms about? They are all parts of something which is really great, and that is the history of art. It's a history so enormous and comprehensive that it's hard to grasp. It's no surprise that only a few of us are familiar with this subject while most of us shy away from it. So, how much do you know about the history of art?

There Has Always Been Art

This topic may seem boring (pardon us, art historians), however, if you take a closer look you'll notice that it really isn't. The history of art is an exciting story of innovative and unusual movements as well as people. It's also a story of love, pain, wars and the search for identity. Want to sneak a peak? Well, here's an overview of the history of art in 100 words, a base station from where you can take off to wherever you want to go in art — from its very beginning all the way to modernism. Enjoy! (ea)


Advertisement
Ad


7. Why Would A Banana Want To Be Blue?

Maybe just to make bats happy. Yes, this may sound a bit odd at first, especially because we're all sure that bananas don't 'want' anything anyway, and if anything, they want to be yellow. But what's with the bats? Well, did you know that if you turn a UV light on a bright yellow banana, it starts glowing in a bright blue? And guess who gets happy? Fruit bats, for example! Fruit bats see ultraviolet light, and they also love bananas. Want to hear more weird stories about color?

Why Would A Banana Want To Be Blue?

If so, then check out This Is Color, a beautiful presentation of all kinds of weird facts about color in rainbow order, reported and written by Nicole Cohen and Beth Novey. Learn just why The Simpsons are yellow, how red became the color of the matador's cape and why all of the gentlemen among you should think twice before you wear a green hat in China... And what do you think, is San Francisco's Golden Gate bridge really red? Go figure! (ea)


8. Learning Has Never Been Easier: Join A Smashing Workshop

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 + RWD workshops that will help you become better front-end developers and designers, today.

Learning Has Never Been Easier: Join A Smashing Workshop

Upcoming Online Workshops:

Upcoming Full-Day Workshop in NYC, USA:

Full-Day Workshops in Whistler, Canada:

Or, if you'd like to run an in-house workshop at your office, 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 costs — we'll find a fair price for sure. Get in touch — it's that easy!


New on Smashing Job Board

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

  • Project Manager at UpTrending (100% Remote - must be US based)
    We're looking for a Project Manager who can manage a complex project, or multiple projects, ensuring that quality projects are delivered on time, within budget, on schedule and within project scope.

  • Sr. UX Designer at ZenPayroll (San Francisco, CA)
    We're looking for a Senior UX Designer who enjoys creating only the most beautiful, pixel-perfect designs.

  • Full Stack Engineer (PHP) at Advertising Age (New York, NY)
    We're looking for an engineer who really, truly, honestly loves writing code, but also really, truly, honestly loves writing it because it makes people happy.


Smashing Highlights (From Our Archive)

  • Are You Ready For A Web Design Challenge?
    I want to encourage you to complete a Web design challenge. I believe this will help to address a weakness that exists in many of our design processes. If you complete this challenge, it will make it easier for clients to sign off on your designs, and it will improve the quality of your work. So, what are we waiting for? Let's get started.

  • Form-Field Validation: The Errors-Only Approach
    Error pages for form-field validation are dreadful. You've just filled out 20 form fields, yet you get the same bloated page thrown back in your face because a single field failed to validate. At Baymard Institute, we reflected on this problem and got an idea that we call "error fields only" — which is exactly what this article is about.

  • Free Smashing Christmas Icon Set
    Christmas is coming and, of course, it's just the right time to provide you with some nice freebies to fresh up your designs. To celebrate the holidays, our friends from IconEden designed "Smashing Christmas", a free icon set, dedicated to the design community and released especially for Smashing Magazine's readers.


Recent Articles On Smashing Magazine


Workshop post image credits: Paul Pride.

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), Iris Lješnjanin (il), Vitaly Friedman (vf), Melanie Lang (ml), Esther Arends (ea), Christiane Rosenberger (research), Elja Friedman (tools).

unsubscribe • update preferences • view in your browser


Tuesday, November 4, 2014

Smashing Newsletter #122: SVG, Input Range Slider and Sublime Extensions

Colorful wonders of CSS, useful Sublime text extensions and hidden gems. Issue #122 • Tuesday, November 4th 2014 • 181,804 readers • View in the browser

The Smashing Email Newsletter

Dear Friends,

WOFF2 has been promising a better compression for web fonts for quite some time now, and with the browser support landing in Chrome and Opera recently, it's just about time to give it the attention it deserves in our stylesheets, wouldn't you agree?

Editorial

If you serve your fonts via the @font-face attribute, you can just add url('web-font.woff2') format('woff2') in your src stack, just before url('web-font.woff') format('woff'), or use FontSquirrel that will generate the code for you. To generate the actual WOFF2 file, you can use a converter tool from TTF to WOFF2, or convert directly from WOFF to WOFF2.

In case you need to encode your fonts with Base64, you might just embed them additionally in your @font-face rules, but to avoid extra bandwidth, you can also use FilamentGroup's WOFF2 See the Wizard, a little JavaScript feature test for WOFF2 support (198 bytes gzipped) and serve only WOFF2 files to browsers supporting it and WOFF files to other modern browsers (with a EOT/TTF/SVG fallback for older browsers).

Keep in mind that WOFF already contains compressed data, so no gzipping is necessary. Not too much work considering that you can save up to a half of the web font bandwidth for your users, is it?

Happy web fonting!
– Vitaly (@smashingmag)


Table of Contents

1. Free SVG Pocket Guide (And Flexbox Cheat Sheet)
2. Blend If: A Hidden Photoshop Gem
3. Usability? Check!
4. Cross-Browser Input Range Slider
5. Useful Sublime Text Extensions
6. The Colorful Wonders Of CSS
7. Information, It's All Around Us
8. Learning Has Never Been Easier: Join A Smashing Workshop

1. Free SVG Pocket Guide (And Flexbox Cheat Sheet)

You must have come across SVG a lot recently, but you might have never found the time to actually get a proper overview of SVG and all its shiny properties. Well, perhaps Joni Trythall's SVG Pocket Guide, a free HTML book fully available online, is just what you need.

Free SVG Pocket Guide (And Flexbox Cheat Sheet)

The book is a very short, concise and detailed overview of SVG properties, with examples of document organization, basic shapes and paths, workspace, fills and strokes, the text element and a few advanced features such as gradients and transforms. The PDF version can be purchased as well. A short lovely book to read over a slow weekend.

If SVG doesn't happen to be your cup of tea, you might find Jodi's Flexbox Cheatsheet, a quick visual to summarize Flexbox properties, quite handy instead. (vf)


2. Blend If: A Hidden Photoshop Gem

If you think you know Photoshop inside out, well, there's a hidden little gem that you probably haven't stumbled across yet. A little gem thatis sure to make your workflow a lot easier. This little gem named Blend If can actually use shape layers to paint transparent areas. It's a quite useful feature that can help you achieve a transparent effect in your icons but at the same time maintain its ability to scale for different pixel densities.

Blend If: A Hidden Photoshop Gem

Usually, such an effect is quite difficult to achieve and requires complex bitmap masking. If you'd like to give it a try, Marc Edwards has written a short tutorial on how to use Blend If and all the possibilities it has to offer. Nifty! (cm)


Advertisement
Ad


3. Usability? Check!

In order to help us all improve the way we design digital things, Aaron Legaspi and Amit Jakhu have created an interaction design checklist that we can refer to during every step of our product development process. Its goal is to serve as a guide for creating positive UX and UI experiences between people and the products they use. Well, the products we build, that is.

Usability? Check!

All the different factors that contribute to a user's satisfaction (but which can easily fade out of the spotlight when working on a project) are neatly organized on the list and can be checked off as soon as your product complies with it. Is the function of a control easily determined at a glance? Check! Are there any fallbacks in place for accessibility purposes? Check! The IxD Checklist considers interface design, iconography, typography, interaction, and navigation issues. A handy little helper that belongs into every designer's toolbox. We're sure you'll agree! (cm)


4. Cross-Browser Input Range Slider

Nobody really likes filling in web forms; they're tedious, usually unnecessarily long and complex. If you can avoid input fields and select drop-downs with more reasonable and comfortable alternatives, such as segmented controls, switch or input range sliders, then it's definitely a good idea to do so. However, finding a good cross-browser slider isn't that easy.

Cross-Browser Input Range Slider

If you don't have to worry about IE8/9 and Opera Mini, you can just use the HTML5 range input type. For legacy browsers, you could use jQuery-based polyfills noUISlider or Webshim, and if you don't want to rely on jQuery, consider using the accessible input range slider polyfill instead. Also, don't forget about inventory-based discrete sliders to help avoid zero-results pages and improve user experience. Now this should have you covered for a while. (vf)


Advertisement
Ad


5. Useful Sublime Text Extensions

New times require new tools. While many designers tend to use nifty Sketch plugins, many other developers have turned to Sublime as a primary text editor. In fact, there is quite a number of useful extensions that can help save you quite a lot of work in the long run.

Useful Sublime Text Extensions

How about the inline color highlighter for all of the colors you use in your code? Or Gutter Color, an extension that displays a color in the gutter if the lines contains this particular color? Or perhaps an AutoFileName Completion, Git Diffs in Gutter or even JSHint Gutter? What extensions do you use the most? Share them via Twitter! (vf)


6. The Colorful Wonders Of CSS

Ah, don't you just love those little nifty CSS tools and techniques, the ones that help you save valuable time and focus on more profound and creative tasks? For instance, have you tried using the clip-path property yet? Well, Clippy allows you to generate complex shapes in CSS by clipping an element to a basic shape (circle, ellipse, polygon, or inset), or to an SVG source. CSS animations and transitions are possible with two or more clip-path shapes with the same number of points. Firefox and IE don't support the property, but it could be used as humble progressive enhancement, of course.

The Colorful Wonders Of CSS

Or what about the good ol' much-maligned display: table property? Whether you're looking for equal height columns, dynamic vertical centering, stack ordering, dynamic sticky footer or a cross-browser alternative for Flexbox, this property can be extremely helpful, and is also well supported.

Oh, and even though we've all said our goodbyes to Halloween, you'll be quite impressed with Bear Travis' SVG masking experiment. Don't just click around — try hovering and dragging, too! (il)


Advertisement
Ad


7. Information, It's All Around Us

Let's face it. Aren't we all addicted to surfing the digital universe of (seemingly) endless websites? Whenever we want to find out more about anything that interests us to a certain extent, we simply 'google', 'bing' or even 'yahoo' it. Then, sooner or later, we most probably end up on the Wikipedia site. So, there we are again, learning about yet another thing we've been wanting to learn more about. But why not turn the game the other way around?

Information, It's All Around Us

Instead of learning about something you actually wanted to learn about, why not learn something new every day with Wikipedia's Randompage instead? Just set your homepage to http://en.wikipedia.org/wiki/ Special:Random and figure out something new every time you open up your browser. Try to learn as much as you can, but before you get dizzy from all of the facts, take a break and remember that it's not only information that's all around you... (ea)


8. Learning Has Never Been Easier: Join A Smashing Workshop

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 + RWD workshops that will help you become better front-end developers and designers, today.

Learning Has Never Been Easier: Join A Smashing Workshop

Upcoming Online Workshops:

Upcoming Full-Day Workshop in NYC, USA:

Full-Day Workshops in Whistler, Canada:

Or, if you'd like to run an in-house workshop at your office, 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 costs — we'll find a fair price for sure. Get in touch — it's that easy!


New on Smashing Job Board

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

  • UX Architect at State Farm (Dunwoody, GA)
    We're looking for a UX Architect who has very strong web and mobile industry experience, and the ability to advise customer decisions based on that experience.

  • Web Developer at Opportunity International (Oak Brook, IL)
    We're looking for a web developer who will support and maintain Opportunity International's online development and deliver strong user experiences that improve our online platforms and enhance our brand reputation.

  • Senior UI Designer/Developer at Politico (Arlington, VA)
    We're looking for a senior UI designer/developer who is a digital problem solver with a passion for innovation in the realm of design and markup.


Smashing Highlights (From Our Archive)

  • The Art Of Storytelling Around An App
    Every app tells a story. Apps like Pandora tell the story of music; apps like Tip N Split tell a story of a calculator; and apps like Temperature tell the story of weather. Then we have storybook apps like Alice for the iPad, which literally tell stories!

  • A Comprehensive Guide To Firewalls
    In the construction industry, a "firewall" is a specially-built wall designed to stop a fire from spreading between sections of a building. The term spread to other industries like car manufacturing, and in the late 1980s it made its way into computing.

  • Typeplate: A Starter Kit For Beautiful Web Type
    a free-range and open-source typographic starter kit that will hopefully help you build beautiful, text-rich websites. The word on the street is that the Web Is 95% Typography, so as we hurtle towards the future, we think there's still a lot we can learn from five centuries of history. Typeplate is the result of this exploration of our typographic heritage.


Recent Articles On Smashing Magazine


Workshop post image credits: Paul Pride.


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: Iris Lješnjanin (il), Cosima Mielke (cm), Vitaly Friedman (vf), Esther Arends (ea), Christiane Rosenberger (research), Elja Friedman (tools).

unsubscribe • update preferences • view in your browser