Tuesday, December 2, 2014

Smashing Newsletter #125: CSS Tricks and Interface Design Ideas

With tips on UI motion experiments and maintainable CSS. Issue #125 Tuesday, Dec. 2nd 2014 181,348 readers View in the browser

The Smashing Email Newsletter

Dear Friends,

Navigation on mobile is a common topic in design conversations, and it often boils down to a simple compromise on hiding navigation behind an icon and showing it on demand. Perhaps with a toggle behind a hamburger icon, or a large overlay, or a good old-fashioned off-canvas. While these conversations help us decide on the interaction used, it's just as important to think about where this interaction takes place.

On mobile, our designs must accommodate primarily for thumbs. Usability matters.

Usually, navigation toggles are placed in the area where they are potentially difficult to access: on the right or left upper corners in the header — often within a persistent overlay. However, since many users prefer the one-handed grip to access the content, our designs must accommodate for thumbs, making it easy for users to click on those shiny navigation buttons of ours.

So, as the physical dimensions of mobile devices get larger, it may be a better idea to make navigation accessible at the bottom of the screen instead? Or have a floating toggle to open and close navigation somewhere at the left bottom of the screen? Perhaps it could become more transparent as the user keeps scrolling down the page. Or, for complex interfaces, perhaps consider using tabbed navigation with primary options in the left bottom corner?

A lot of options, but all of them better suited for many scenarios in which users would feel much more comfortable with your navigation controls.

Happy mobile designing!
– Vitaly (@smashingmag)


Table of Contents

1. Beautiful UI Is Beautiful Copy
2. Keeping An Eye On Your Stylesheets
3. UI Motion Experiments
4. currentColor, A Little Helpful CSS Property
5. A Full-Fledged SVG Editor In Your Browser
6. For The Love Of... Triangles!
7. Learning Has Never Been Easier

1. Beautiful UI Is Beautiful Copy

Great interfaces don't visualize features, but communicate messages instead. What's a better way to communicate than with a well-written, purposefully curated copy? In fact, before even thinking about the information architecture and visual design of the interface, how about opening a text editor and writing down the meaningful, purposeful wording for critical UI components first? Writing-First Design, anyone?

Beautiful UI Is Beautiful Copy

If you're in need of a bit of inspiration, Content Snippets, a growing resource of examples of well-written copy, could prove quite useful. If you're rather working on a redesign, an interface inventory template might prove quite useful to audit and prepare an overview of UI components early on in the process. Now, wouldn't you simply love a friendly, helpful interface speaking a sort of convenient and friendly language to your users? (vf)


2. Keeping An Eye On Your Stylesheets

Stylesheets tend to become cluttered quite quickly, especially if multiple teams are involved in the front-end work. How do your stylesheets hold up in terms of file size and specificity scores? To get to the bottom of this, Adam Morse and Brent Jackson created CSS Stats, a little tool that visualizes all kinds of interesting stats about stylesheets.

Keeping An Eye On Your Stylesheets

Whether it's the number of rules, selectors, declarations and properties that are defined, or even colors, media queries and font-families used, CSS Stats lets you collect data like these on any site. Just enter an URL or paste in raw CSS and the tool does the rest. Perfect to keep an eye on your stylesheets or just to get some insights into how other developers work. (cm)


Advertisement
Ad


3. UI Motion Experiments

There are a number of ways to create a beautiful, delightful interaction, and one of the most useful tools to achieve just that are transitions and animations. In fact, while Navigation Transitions spec is in the works, when it comes to micro-interactions in our user interfaces, a simple transition can go a long way.

UI Motion Experiments

Michael Vellar's motion experiments feature a few examples of interesting, subtle yet delightful interaction patterns, such as a thumb zone-optimized toggle menu, adding an item, or animated search. Also, if you want to go deeper into the details of creating animations and interactions based on the laws of physics, Ralph Thomas' article on physics-based interactions (a quite lengthy one!) is worth a read. And there you go! Nothing stands in the way of more delightful interactions any longer! (vf)


4. currentColor, A Little Helpful CSS Property

You can do pretty much anything with (relative) simple CSS, yet if you'd like to build truly flexible, scalable systems, even little styling issues might need reconsideration here and there. In fact, we could all save quite a number of CSS lines if we just used the currentColor CSS property, you know, properly.

currentColor, A Little Helpful CSS Property

currentColor allows us to reuse the color properties that aren't inherited by child's elements by default. For example, if you want your SVG button to have the color of the text, or your arrow in a text link to inherit the color of the link, or the horizontal line to inherit the text color, you can achieve all of this without the use of "proper" CSS variables or preprocessors, with (guess what?) only one single line of CSS. The currentColor property is supported in modern browsers, starting with IE9+. In his article, Keeping CSS Short With currentColor, Osvaldas Valutis provides a few examples of what you can do to achieve just that. A little nifty helper for those sneaky CSS issues. (vf)


5. A Full-Fledged SVG Editor In Your Browser

SVG is a wonderful way to cater for crisp and sharp images no matter which screen resolution. You can make basic changes right in the markup, but if the changes are a bit more involved, you might need a quick SVG editor at hand. So if you're still looking for one, you might want to give SVG-edit a try. It's a free, completely web-based SVG editor, and it works in any modern browser.

A Full-Fledged SVG Editor In Your Browser

The features that SVG-edit has to offer are quite extensive. Not only can you view and edit an SVG source in there, but also make use of a number of drawing options and import functions to create your own SVGs from scratch. Convenient, fast and definitely worth checking out. Happy SVGing! (cm)


Advertisement
Ad


6. For The Love Of... Triangles!

Triangles! What? Seriously, what can be so spectacular about triangles? Well, apparently, every triangle has a story — a story to tell, and a story to share. Indeed, triangles can have quite unique personalities, and perhaps even a sense of purpose. That's why Varun Vachhar keeps adding A Triangle Every Day to his growing collection of, you know, triangles.

For The Love Of... Triangles!

Admittedly, every single object featured in this little library is an artwork of its own — within its own unique environment, and with a standalone role assigned to it. Some triangles fall in love, others get lost in space, and others are built out of checkboxes. You can be creative with anything! Even a simple triangle can become quite a character with enough imagination and design skill. Now, what about circles? (vf)


7. Learning Has Never Been Easier

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

Full-Day Workshop in New York City, USA:

Full-Day Workshops in Whistler, Canada:

Upcoming Online Workshops:

Full-Day Workshop in Edinburgh, UK:

Full-Day Workshop in Atlanta, GA, USA:

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:

  • Web Design Instructor at Tuts+ (Anywhere)
    We're looking for an instructor who understands what makes things work with decision-making processes behind web design.

  • PHP Expert at Goodgame Studios (Hamburg, DE)
    We're looking for a PHP developer who will work on our back-end systems such as our payment shop and our in-house core library.

  • Senior UI Designer at Apttus (San Mateo, CA)
    We're looking for a talented designer who will develop UI standards and best practices for user interfaces for desktop, tablet, and smartphone browsers and mobile devices.


Smashing Highlights (From Our Archive)

  • Christmas Icon Set (10 Quality Icons, 256×256px PNG)
    This icon set contains ten icons available as 256×256px PNGs that have been lovingly and exclusively prepared for Smashing Magazine and the Web design community. As usual, the set is released under a Creative Commons license and can be used in commercial and private projects.

  • The Z-Index CSS Property: A Comprehensive Look
    Most CSS properties are quite simple to deal with. Often, applying a CSS property to an element in your markup will have instant results — as soon as you refresh the page, the value set for the property takes effect, and you see the result immediately.

  • 10 Useful Usability Findings and Guidelines
    Everyone would agree that usability is an important aspect of Web design. Whether you're working on a portfolio website, online store or Web app, making your pages easy and enjoyable for your visitors to use is key.


Recent Articles On Smashing Magazine


Workshop post image credits: Dennis Wong

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), Christiane Rosenberger (research), Elja Friedman (tools).

unsubscribe update preferences view in your browser


Friday, November 28, 2014

A Smashing Black Friday Special, Just For You...

One Year Smashing Library, for only $39. Happy Black Friday!

The Smashing Email Newsletter

A Smashing Black Friday Special, Just For You...

So you've watched the game, spent time with your family and eaten more pie than you care to admit... We wanted to give our lovely readers something else to be thankful for this holiday, and are doing our bit for Black Friday by offering you access to the Smashing Library for only $39. Once you've subscribed, you'll have over 80 eBooks and over 50 videos, and so much more!

Special Deal, Only Today

Get yourself one year unlimited access to the Smashing Library, for only $39. Just check out with 60% off the regular price, and lean back and enjoy. But be quick, the offer is only valid until 00:00 AM (midnight) PT today.

$39

Save 60% today...with even more goodies coming up in 2015!

What You'll Get

  • Immediate unlimited access to all 80+ Smashing eBooks (digital versions of all of our Smashing printed books are included as well, of course)
  • Immediate access to 50+ SmashingConf talks
  • Exclusive first access to new eBooks and conference videos (published on a monthly basis)
  • DRM-free access, i.e. you get to download, read and own the eBooks forever
  • All eBooks are available in PDF, EPUB & MOBI formats

It's easy-peasy and won't take more than 60 seconds.
It's easy-peasy and won't take more than 60 seconds.

Tell Me More →




Tuesday, November 25, 2014

Meet SmashingConf LA 2015: California, Here We Come!

Bingo! SmashingConf LA. April 27–29th 2015.
Tickets now availableView in the browser

California, Here We Come.

Meet SmashingConf LA 2015, our new US conference with as many practical takeaways as sunshine hours in Los Angeles.

SmashingConf LA, April 27-29th 2015

Get the ticketsIt's going to be quite a ride. Only 450 tickets.


About The Conference

When preparing a conference, we care deeply about how practical and valuable it will be. With our very first SmashingConf L.A. (oh my!) on April 27–29th 2015, we'll focus on hands-on techniques and strategies. Be it your workflow, front-end, design, UX or nerdy performance tricks. In fact, we've prepared quite a treat for you:

LA scenery
Santa Monica in L.A. — not a common location for web conferences. Until now. Image credit.

  • Two full days packed with practical design/front-end talks and workshops—you'll leave with a treasure of useful tips and tricks applicable to your work right away!
  • Intimate, personal event with only 450 attendees. No crowded multi-track experience. 1 track, 2 days, 16 thoroughly curated speakers and lots of networking.
  • A quite spectacular conference experience in Santa Monica, right at the coast of the Pacific ocean, with an onshore ocean breeze and sunshine in the back!

First Confirmed Speakers

The speakers line-up is filling up, but of course we aren't going to reveal everything just yet. To spice up your appetite a bit, here are the first confirmed speakers:

First speakers at SmashingConf LA: Steve Souders and Samantha Warren

We reserved 50 early-bird tickets for US$549, and if you book a workshop, too, you save US$100 off the conference + workshop price. Now, seriously, get your ticket already.

Get the ticketsGrab your sunglasses, too. Only 450 tickets.

Convince Your Boss (PDF)

We've prepared a neat Convince Your Boss (PDF) (0.15 Mb) that you can use to convince your colleagues, friends, neighbours and total strangers to join you or send you to the event. We know that you will not be disappointed.

Smashing Conference LA
"8 reasons why you should send your incredibly hard-working, deserving employee to the SmashingConf" (PDF). Quite self-explanatory, really.

Of course we'd love you to be on board as well. Perhaps you'd like to be part of the event? We're looking for some very special sponsors; if you're interested, check out the options available Sponsoring Opportunities (PDF, 0.9MB) — we'll make sure it's worth it!


Why This Conference Is For You

The conference is for you because you'll learn lots of valuable techniques and meet fantastic, like-minded people from the industry. You'll learn:

  1. How to improve user experience and design workflow,
  2. Strategies for building fast responsive websites,
  3. Front-end techniques for scalable designs,
  4. How to make use of pattern libraries and style guides,
  5. Guidelines for designing flexible design systems,
  6. How to deal with responsive images and RWD email,
  7. Common problems and solutions in eCommerce,
  8. Advanced front-end tooling, setup and workflow,
  9. Mistakes and lessons learned from large projects,
  10. …more practical, actionable takeaways.

Good enough? Alright then! Only 450 tickets are available, so get your ticket right away — it won't take more than 60 sec.

Still not convinced? →



Tuesday, November 18, 2014

Smashing Newsletter #124: SmashingConf LA, Performance Tools and SVG Tricks

With small hacks for faster growth and smart libraries for better web forms. Issue #124 Tuesday, November 18th 2014 181,865 readers View in the browser

The Smashing Email Newsletter

Dear Friends,

We like challenges, and we like experiments. Wherever we go, we take our time to observe, to focus, to explore and to get things right. Our first stop in the US last year was the SmashingConf in New York (hint), and we have another event coming up in Whistler, Canada in just a few weeks. But, fasten your seatbelts, we also have something else in the works, and it's probably not at all what you're expecting.

SmashingConf Los Angeles 2015
Our new little endeavour: SmashingConf LA 2015, and it's going to be as smashing as always.

SmashingConf Los Angeles 2015. Our new conference, with two days full of practical talks and smart techniques and design patterns for you to apply in your projects. We never compromise on quality, and we always emphasize the value you get from the event. Los Angeles isn't going to be an exception. Taking place on April 28–29th 2015 in Santa Monica, right next to the beach paradise across the Pacific Ocean.

Speakers, you ask? Well, the line-up is going to be as strong as you should expect it to be! The first confirmed speakers are Steve Souders, Sara Soueidan, Andy Budd and Andrew Clarke. Need to convince your boss to buy that ticket? We've got your back: download the Convince Your Boss PDF right away!

The tickets go on sale on Nov 25th at 2 PM EST (right before Thanksgiving), with an early-bird ticket price of $549 per ticket. And as usual, we'll have a few workshop options available as well. We'll keep you updated via email and @smashingconf. So you better mark your calendars and make sure not to be late!

We're looking forward to see you in LA then! ;-)
– Vitaly (@smashingmag)


Table of Contents

1. Mobile Settings UX
2. Smart Libraries For Better Web Forms
3. Performance Matters
4. Small Hacks, Faster Growth
5. Modifying SVG Background Fills
6. Shorten Your Gulp And Grunt Build Processes
7. Learning Has Never Been Easier: New Workshops

1. Mobile Settings UX

We've all heard it before: when it comes to the current state of UX, iOS is often considered to have a much better experience, while Android is more powerful and customizable. But why? Where are the facts? Well, Luis Mena goes ahead and elaborates on The UX of Mobile Settlings, and compares the difference in experiences among Apple, Google and Microsoft device settings — probably not something that many of today's conversations are concerned about.

Mobile Settings UX

For example, iOS uses only (at most) 11% of screen space occupied by persistent menus, while Microsoft occupies 25% of the space. Android groups items in indented categories, while iOS 8 uses slight contrasts to group the items, and Microsoft has an unordered list of items. When it comes to ordering, iOS options start with network, device and personal settings first and so does Android, yet it's quite mixed in Microsoft's case. A few interesting insights worth considering. So how do you organize settings for your web and native apps? (il)


2. Smart Libraries For Better Web Forms

Filling in forms is still one of the most tedious, annoying, and slow activities on the web. Usually, input is very complex and difficult to navigate while correcting mistakes always turns into a competition between precision and stubbornness for users who just want to get things done. Well, there are a few little things that can improve web form UX significantly.

Smart Libraries For Better Web Forms

Let's say you want to provide a bulletproof international telephone input, then why not format the input as the user types in the data and show the flag of the country as well? For the country selector, we could just ask the user to type a few first characters of their country instead of going through a lengthy list of select-options. What about expanding textareas automatically so the user never has to scroll vertically? And perhaps storing data in localStorage, so the user never loses it?

Finally, if you do need a good selector, Select2 or Multiple Select jQuery plugins could be helpful, and a CSS-only solution for cross-browser styling could come in handy, too. Now, here's a way to improve the UX just a little bit step by step — and get rid of those annoying fragile web forms for good! (vf)


Advertisement
Ad


3. Performance Matters

Building fast responsive websites is no piece of cake, but once you have a working process in place, it doesn't have to cost you more time or money. However, to ensure that performance remains a priority during the entire design and build process, you need metrics and tools that track performance and report occurring issues.

Performance Matters

So, what if you set your performance budget (e.g. start render time under 1.1s on 3G in your city), and then use tools like PerfBar to keep collecting performance metrics? Once you've installed the script on your pages and defined what you are interested in, you can measure a number of built-in metrics that let you see performance results right away.

Alternatively, you could use WebPerf Monitor to track the PageSpeed score, Mark Zuman's SpeedCurve or grunt-perfbudget to validate your builds against a performance budget, and PerfMap Bookmarklet that visualizes performance metrics in a heatmap overlay of the page. Not enough? Perf.Rocks is a new website that collects useful articles, tools, talks and slides about web performance optimization which should have you covered for quite some time. So let's make the web faster, shall we? (vf)


4. Small Hacks, Faster Growth

Pushing your product forward doesn't necessarily require big, costly marketing strategies. In fact, sometimes it's the small details that can have a significant impact when it comes to fostering growth, acquiring new customers, and increasing revenue. Javier Sanz is one of the folks out there who constantly keeps his eyes open for such interesting little tweaks, i.e. the so-called "petithacks".

Small Hacks, Faster Growth

Did you know, for example, that in order to acquire new users, the CRM service Intercom lets existing users invite others to a free 90-days trial? Clever, especially since the regular trial length is only 30 days. Or take Mailchimp. They display their latest products and features in the log-out screen, taking advantage of that last moment of user interaction to get your attention. These are only two of the hacks that Javier had spotted and which he shares on his site. Who knows, perhaps one or two of those little hacks might be just what your product needs. (cm)


Advertisement
Ad


5. Modifying SVG Background Fills

For resolution-independent graphics, SVG is often a better option than icon fonts, yet while you can be quite flexible with SVG, there are a few gotchas that need a bit of thinking to get things right.

Modifying SVG Background Fills

So, what if you created an icon system with symbol and use and then wanted to modify colors of the paths in SVG? Well, you can use the mysterious fill: currentColor to reuse the color within your SVG. But if you want to specify SVG as background, you can't use color to modify the fill color. The workaround is to modify the fill attribute of the SVG itself within the data URI source with a LESS mixin. Need a SASS mixin instead? Here's how you can convert mixins from LESS to SASS. Another headache prevented! (vf)


6. Shorten Your Gulp And Grunt Build Processes

While automating build processes is becoming a common tool in development, some developers feel more comfortable with Grunt, while others prefer Gulp. Both tools are helpful and time saving for repetitive tasks, yet ironically enough, setting it all up and fiddling with the config files can be quite time consuming — and there are so many boilerplates out there to start with! Which one to choose?

Shorten Your Gulp And Grunt Build Processes

Gulp Fiction was built to help shorten the time it takes to set up a proper build process. It enables visual editing of your Gulp files and automatically generates Gulp config files. It also searches for recommended steps and build tasks with the npm repository, so you can select the most useful tasks, as verified by its creators. If you prefer Grunt, you can optimize the maintenance of your Grunt files with Supercharging your Gruntfile and More Maintainable Grunt. Making fast processes even faster, one build step at a time! (ml)


Advertisement
Ad


7. Learning Has Never Been Easier: 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 + 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:

Full-Day Workshop in New York City, USA:

Full-Day Workshops in Oxford, UK:

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:

  • Freelance web designer at UpTrending (100% Remote)
    We're looking for a freelance designer who is tech-savvy and sees the Internet as a playground, with a passion for coding.

  • Web Designer at The Michael J Fox Foundation (NYC)
    We're looking for a talented, user-focused web designer to help guide a redesign of its website, MichaelJFox.org, and execute ongoing web design projects across the Foundation, including mobile and desktop-based websites and applications, microsites, landing pages and email templates.

  • Visual Designer at Pratice Fusion (SF, CA)
    We're looking for a senior visual designer who is both idealistic and pragmatic, and likes to push the envelope on how to communicate value through design.


Smashing Highlights (From Our Archive)

  • Festive Christmas Icon Pack (20 .EPS Icons)
    The year is slowly coming to an end and we're glad to present to you a festive icon set to inspire you in your designs. In this post we present a minimalist collection of 20 free festive vector (.EPS) icons created by the crew at offset media.

  • Smart Transitions In User Experience Design
    Some websites outperform others, whether in their content, usability, design, or features. We'll share some lessons drawn from various models and analyze why these simple patterns work so well.

  • Designing CSS Layouts With Flexbox Is As Easy As Pie
    Flexible box layout (or flexbox) is one of the first CSS modules designed for actual layout (floats were really meant mostly for things such as wrapping text around images), it makes a lot of tasks much easier, or even possible at all.


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

unsubscribe update preferences view in your browser