Archive for June, 2012

Coding Q&A With Chris Coyier: Box-Sizing and CSS Sprites


  

Howdy, folks! Welcome to the new incarnation of Smashing Magazine’s Q&A. It’s going to work like this: you send in questions you have about CSS, and at least once a month we’ll pick out the best questions and answer them so that everyone can benefit from the exchange. Your question could be about a very specific problem you are having, or it could be a question about philosophical approach. We’ll take all kinds.

We’ve done a bit of this before with a wider scope, so if you enjoy reading the Q&A, check out my author archive for more of them.

Box Sizing

Question from Brad Frost:

What are your thoughts on Paul Irish’s idea to apply box-sizing: border-box to every element on the page?

Using box-sizing is super-helpful, especially for mobile and responsive design (for example, getting fully fluid form fields with fixed amounts of padding is awesome). But I’m leery of applying it to everything.

Besides browser support (I’ve already run into issues with some less-than-smart mobile browsers), can you think of any downsides to this technique?

An armchair critic of this technique would whine about the performance of the universal selector (*). This whine has been largely debunked. While this selector technically is “slower� than something like a class name selector, the difference is negligible, except in extreme cases of overuse or on pages with zillions of elements. Doing something that reduces one HTTP request makes at least an order of magnitude bigger difference than optimizing selectors.

For the record, the complete and recommended syntax is this:

* { 
   -webkit-box-sizing: border-box; 
   -moz-box-sizing:    border-box; 
   box-sizing:         border-box; 
}

With this, you essentially get perfect browser support in everything — even the vast majority of mobile Webkits. The notable exception is IE 7 and below. I don’t want to open a can of worms, but IE 7 usage is already low and dropping much faster than IE 6 did, so supporting only IE 8+ will be commonplace very soon.

Here’s a quick primer on why using this box model is nice:

  • Now, when you set a width and height, the element will always be that width and height, regardless of padding and borders.
  • This makes math a lot easier. For example, you could easily make a four-column grid by making the width of each column 25% and floating them. You could make gutters out of pixel padding and not worry that they will expand the columns and break the grid.
  • It’s also extra useful for text areas that you want to fill to their parent’s width, which you can only do by setting their width to 100%. But then you wouldn’t be able to have padding unless you used this box model, lest they expand beyond the parent’s width.

You mention a problem with a mobile browser but not exactly what the problem is or which mobile browser. It would be interesting to know which browser and what the problem is, so if you could follow up in the comments, that would be great.

For me, I’m using it on everything I build from here on out. It’s been fantastic so far, and I see no reason not to go with this empirically better box model.

CSS Sprites Workflow

Question from Matt Banks:

What’s your preferred method for creating and managing CSS sprites? Do you use Photoshop to manually create your own sprites, a Web service or an app like SpriteRight? For updating sprites with new images, what workflow is best and easiest?

I have an article from 2010 about my workflow for CSS sprites, in which step 1 is this:

Ignore sprites entirely. Make every background image its own separate image and reference them as such in the CSS.

Of course, I’m not suggesting that you don’t use sprites. Quite the contrary: I think using sprites and having a good workflow are paramount to being a good front-end coder and often the number one thing you can do to optimize Web performance. What I was trying to say is don’t pre-optimize. Pre-optimization is quicksand for developers: you spend a lot of time flailing your arms but not getting anywhere. You know that sprites are good, and so you start building with them right away, spending all kinds of time tweaking and adjusting and calculating the sprites to be just right during development.


(Image: electricnerve)

This is a waste of time. Instead, ignore sprites on new projects until you have reached a comfortable level of maturity with your CSS or are just about to go live. Then, take the time to go through and get yourself all sprited up. It will be easier and quicker.

In terms of workflow, I’m still a fan of SpriteMe, which is a bookmarklet that finds images in use on your page and suggests or creates a sprite for you and even helps you with the CSS. SpriteMe only works on one page at a time, though, which might not be good enough for complex apps. I’m also a big fan of SpriteCow, in which you handcraft your own sprite (in Photoshop or some other image-editing program), and then it helps you identify the parts with a really great UI and gives you the CSS needed to use a particular image inside the sprite. I think the SpriteCow workflow is a bit better because you are working from a sprite that you made yourself by looking through your images directory, so it’s more comprehensive and to your own style.

To take things to the next level with your CSS sprites workflow, you should really check out how Compass handles it. RailsCasts has a screencast that teaches you about it. It’s pretty awesome. You just use individual images as normal (remember, with no pre-optimization) and drop them into an images directory. Compass will see the new image and automatically add it to a master sprite image. It creates a class name for the new image, with all of the correct sizing and positioning. Then, anywhere you want to use this new image as a sprite, either use that class in your HTML or @extend that class in your CSS. Efficient, easy and super-fancy.

Triangles

Question from Jakob Cosoroaba:

All boxes are square to the browser. What’s the best way to fake a triangle box?

To set the stage here, you can “fake� a triangle in a number of ways. The most common is by exploiting the fact that borders end at an angle when they touch each other at corners. So, by collapsing a box to a width and height of 0 and setting the color for only one border, we can make a triangle. A lot of examples of this are on Shapes of CSS. We could draw a triangle with SVG or canvas. We could even make a triangle, with linear-gradient as the background of an element, as easily as this: background: linear-gradient(45deg, white 90%, blue 90%); (with all of the vendor prefixes, of course).

But none of these techniques will help us here. In his original question, Jakob Cosoroaba lists two techniques that he has tried. One involves rotate transformations and the clip property; the problem being that IE 9 has too large of a rollover area (i.e. it’s not limited to the triangle). The second technique uses slightly less markup, using only rotate transformations; the problem here being that you cannot add content inside. This made clear what he needs:

  1. The ability to put content inside;
  2. The ability to make the triangle (and only the triangle) a link.

Jakob, you should have taken your already clever work just a step further! By combining your two techniques, you could make the link the correct size (even in IE) and put content inside. Just make the link sit on top with z-index.

Here’s a demo of the combined techniques.

Yep, doing this with markup feels a bit hacky. This is just one of those things that CSS isn’t great at right now.

Server-Side Optimization

Question from Patrick Schreiner:

I was wondering if you could provide some insight into what one should keep in mind for server-side optimization and performance when it comes to CSS? Are there any red flags to look out for? What’s your approach to making sure that code performs well and that it’s optimized for heavy server-side optimization?

I’m not a great server-side guy, but I can list some tips that might be helpful. Perhaps some server folks can help out in the comments.

  • Just serve CSS straight up.
    … Not PHP that has to be run and that then serves as a CSS content type, and not LESS that needs to be interpreted client side — just plain old CSS.
  • Serve it compressed.
    There is no reason for CSS to be optimized for human readability. Strip out all non-relevant white space and comments.
  • Gzip it.
    If you’re running an Apache server (fairly likely), you could put an .htaccess file at the root of your website that tells the server to serve your CSS Gzip’ed. Check out the code starting at line 162 in HTML5 Boilerplate’s .htaccess file for how to do that.
  • Cache it.
    The fastest file is one you don’t have to serve at all. So, when you do serve a CSS file, tell the browser to keep it around for a long time (a year is a good rule of thumb). Then, if you change the CSS, you can break the cache by changing the file’s name (for example, global.v23453.css). Check out the code starting at line 267 in HTML5 Boilerplate’s .htaccess file for how to do that.
  • Keep it small.
    If your CSS file is 2 MB, you’re doing it wrong. Maybe you need to get a bit more OOCSS in your approach, doing things more modularly with very reusable bits of style.
  • One, two or three
    That’s how many CSS files should be loaded on any given page. One if the website is one page. Two for websites of medium complexity, using a global CSS file that all pages need and a second file for subsections of the website that are different enough to warrant one. Three for fairly complex websites that need global, section-specific and page-specific styles.

Onward!

Keep up the great questions, folks! Got a good one? Send it in, and we’ll pick the best for the next edition.

(al)


© Chris Coyier for Smashing Magazine, 2012.


Art on Board: Skateboarding and the Artistic Sub-Culture


  

When you think of sports, probably the last thing you think about is art or the freedom of expression. You probably think about the high energy. The excitement. The competition. The sweat. The blood. The tears. All of these tend to be associated with sports, from the most physical ones like football, to the least physical ones like golf. But art and sports are not mutually exclusive. Far from it, in fact. Just look at skateboarding.

Never have we seen a sport so closely linked to art as the skateboarding community. It’s a bit odd, because when you think of athletes, you might think of the stereotypical “dumb jock” and not of an “exceptional artist.” In that sense, you have to give your respect to the skateboarding community–without creativity or artistic freedom, skateboarding would probably be just seen as another crazy competitive sport. As it stands, it is also a powerfully creative force.

Skateboard Art

There’s a belief that skateboarding was a spin off of surfing culture; the guys want to ride the waves when there weren’t any waves, so they ended up shortening the board and putting wheels on them to ‘surf’ the streets. Of course, eventually, it evolved into less of a spin off and more of it’s own thing–it’s own community, that started to become popular in the 70′s and 80′s. From then to now, people had a real connection with their craft–it wasn’t just another thing to be good at, it was an extension of themselves and what they liked to do.

The ever growing popularity of the culture is great and as artists, it’s tough not to pay attention. Skaters have these great connections to their boards. They are aware that their board is part of them and they treat it as such. One of the most important things to a skater about their board is often the art on it. Most of the time skaters try to get a skateboard with art that relates to them or they customize them to continue to be a reflection of the individual.

This culture is built around, and promotes, creative individuals. Whether it’s by adding stickers to their boards, designing it in Photoshop or painting on them with acrylics or spray paint, skateboard art is a force to be reckoned with. There are some amazing things seen on skateboards that one couldn’t even fathom for canvas. Skateboard art and skateboard culture go hand in hand. Here are some examples of some great skateboard art from individuals and companies.

Art on Board

Zombunny by Klownhed

049: 112.1 by HateFuel

Rose Garden by YASLY

Bold is Beautiful by Jeff Finley

Buddy by Icanady

Eureka’s Castle Village Skateboard by David Diliberto

Dead Heart Skateboard by OptimusDesigns

Death is so Near by NOF ArtTherapy

The Exact Moment by Chuck Anderson

Gun Deck Skateboard by OBX Russell

Places You Can’t Imagine by Chuck Anderson

Rail Gun by Kiran-X

Retrocks – Board Collection 2 by JKohohen

Rihanna Skateboard by Artistlsak

Sk8 by God of Insects

Skate Branding by ChickenChild

Skateboard by FairyTale Thriller

Skateboard by Funeral Edition

Skateboard by Kitten-Nyo

Skateboard by Sir SiriX

Demon Hunter Skateboard by Stephen Tian

Skateboard Design 002 by Broken Brain Designs

Skateboard Design 4 by Tyra WM

Skateboard for Popdeck by TheHermitDesign

Skateboard Update by UnDead Amy

Spray Candle Skate Deck by Gwaraddict

Vector Skateboard Deck by Alvaro93

Wolf or Whale by Katie Major

Wood Morning Decks by Artendrju

Fierce Skateboard by Luis Diaz Artist

Conclusion

Skateboarding is really a sport like no other, one that promotes creativity and free thinking. It has sometimes blatantly, and other times silently, influenced many other cultures, especially in the realms of music, fashion and art. When one gets past the stereotype that the sport is for punks who are up to no good, it’s really easy to appreciate not just the physical and technical sport, but the art form. How do you feel like skateboard art and culture have influenced you?

(rb)


User Experience Takeaways From Online Car Shopping


  

Emergency car shopping is no fun. This past month was the second time I had to shop for a car in a short timeframe without advance warning. Like most informed shoppers, I went online to get a feel for my options, armed with knowledge of what I was looking for: apart from safety, gas mileage and reliability, it had to comfortably seat six and not require me to take out a second mortgage.

I felt like a persona out of a scenario that I had role-played a few years ago when our UX team at Capgemini conducted a global UX benchmarking project for General Motors. That year, a JD Power consumer satisfaction study revealed that 68% of GM’s US websites were below the industry average, with two in the bottom 10%. Heuristic evaluations were one method we used to identify the causes of dissatisfaction while evaluating over 50 of GM’s B2C websites, along with 75 competitor websites, across various countries and brands.

Each website evaluation captured over 600 points of data across 16 automobile website features that affect the online car research and shopping user experience, including vehicle information, comparison and configuration. This time, though, the experience was personal and made me think about the lessons to be learned from the experience of shopping for a car online that could be applied to any website.

The Online Car Shopping User Experience Journey Map
“Online Car Shopping UX Journey� (Large version)

Awareness

Without a preferred vehicle or brand, I started my search on independent websites such as Kelley Blue Book (KBB) and Edmunds. KBB greeted me with a featured article that hit the spot, showcasing “10 Best 3-Row Vehicles Under $30,000,� while Edmunds’ “Car Finder� tool offered common filters to narrow my search and compare shortlisted results. Some of the links in the research process deep-linked to pages on car manufacturers’ websites that were no longer available.

Kelly Blue Book

Edmunds

Takeaways

Don’t expect users to always start on your home page; deep links from search engines and third-party websites can drop them many levels deep onto your website. Design for these out-of-your-control scenarios with the following:

  • Clear navigation, breadcrumbs and search to help them get their bearings,
  • Useful 404 pages to guide them to the main areas of the website,
  • Standard and intuitive ways to go to the home page.

Consideration

Back to car shopping. With the search narrowed down to a handful of vehicles, it was time to visit the brand websites of the shortlisted vehicles for additional research and planning the next steps.

While broadband speeds have increased, car website home pages have also bloated, many taking over 10 seconds to crawl from zero to done. Websites such as the one for Kia made the wait seem longer with static screens and slow transitions. Downloading times for most websites on personal computers average about 6 seconds worldwide and about 3.5 seconds on average in the US. While car manufacturers are selling a lifestyle decision and are expected to market their brand and their cars, a few broke a golden rule by auto-playing video and animation with sound.

Kia home
Kia greets the users with several animations right away.

Most car websites showcase their models by body style (sedan, SUV, crossover), but that can be confusing because one brand’s SUV can be another’s crossover. Mazda guides users to the appropriate shopping tools depending on where they are in the process; for example, if you are trying to find the right model, Mazda has a model selector with feature-based filters.

Mazda
Mazda USA’s model selector has feature-based filters to help users find the right model.

Takeaways

  • Make it easy for customers to find your website, using a combination of online and offline marketing techniques. Search engine optimization (SEO) becomes more important when you don’t own the domain name that users would expect to find you at (as is the case with Nissan.com).
  • Load the home page quickly.
  • Give users control of the user experience, especially if they have not explicitly asked for multimedia. Do not auto-play video, and give users the option to turn audio on and off.
  • Provide users with the tools to find the right product, especially when dealing with a large product catalog or products with multiple variations. These tools include search, filters and wizards.
  • Search results should offer an appropriate summary of key product information. Apart from the name, thumbnail image and price, briefly summarize a couple of distinguishing features (No, “far-reaching funâ€� for a car does not count).

Preference

All car websites presented detailed model information, including features, specifications, pricing and incentives. However, jargon and marketing terminology were not always clarified (what exactly is included in “anti-theft features�?), which could drive users away from the website in search of an explanation.

Comparing trims within a model and against competitors was not always apparent (why should I spend more on a grand trim instead of a sports trim?). Dodge’s comparison seemed a nonstarter, not intuitive and without clear next steps.

Dodge’s vehicle comparison
Dodge’s vehicle comparison lacked prominent next steps and call to actions.

Kia compare
Kia was one of the few websites to highlight its competitive advantages

Takeaways

  • Support users’ tasks and goals on your website, including product research. Provide appropriately detailed information for the product category. While not required for commodities such as paper and books, 360-degree views and video are appropriate for cars.
  • Products that are complex, expensive, configurable or high-touch in nature should be accompanied by additional guidance to help users select the right product, ranging from educational guides (e.g. what to look for in a diamond) to recommendation engines.
  • Comparisons between competitors are best offered with a preconfigured set of comparison options (with the ability to change them), supported by content from a neutral and independent third party. A related best practice is to highlight the differences and benefits of the primary product.

Purchase

A few years ago, vehicle configurators were not common or sophisticated, but that has changed. Websites now have wizards guiding users through the steps of customizing a vehicle, followed by concrete steps such as finding nearby inventory, scheduling a test drive and requesting a quote. Some websites did better than others (for example, offering one click to get quotes from multiple dealers), while some websites, like the one for Dodge, were a letdown after building expectations (seven matches within a 10-mile radius turned into no exact match but 112 low matches within a 25-mile radius). Dealer websites themselves were less sophisticated than manufacturer websites and were often difficult to navigate and lacked crucial inventory information such as what trims were in stock.

Dodge inventory
Dodge did not return the promised results in its inventory search.

Most websites offered collateral with clear labeling for downloading or delivery by mail. Interactive online brochures like Kia’s were the exception, but most downloadable brochures were PDF files.

Takeaways

  • Make call-to-action options prominent and clear. For most online shopping websites, this means an “Add to cartâ€� button, but in other cases it could mean bringing the user to another channel such as a store or showroom or getting them to fill out a form for more information.
  • Don’t overpromise and underdeliver. As seen with Dodge’s dealer inventory tool above, some websites allow users to add a product to their shopping cart, only to inform them during checkout that it is not available.

Loyalty

Special sections on websites for car owners are now commonplace, unlike a few years ago, but websites could do a better job of giving users a taste of the features in store, as well as the benefits of registering after buying a vehicle.

Dodge details
The benefits of Dodge’s website for owners are hidden below the fold, and the FAQs linked to above the fold are not relevant.

Takeaways

  • Sustain an ongoing relationship with your users. For retail websites, this could include features such as order status, tracking information and easy reordering.
  • Support buyers with tools and features to manage their purchase while building loyalty. These could include product updates, alerts, reminders, guides and manuals.

Then And Now: Business To Personal

Our heuristic analysis from the study a few years ago drove improvements to the user experience on GM’s websites. This significantly increased customer satisfaction and was reflected in JD Power’s subsequent ranking: GM was number one in customer satisfaction, all of its US websites ranked above the industry average, and three of the top five spots belonged to GM brands.

The overall online car-shopping experience is much better now than it was a few years ago, but there is still room for improvement, as shown here. This time around, the websites helped lower the stress of shopping for a car, and I am enjoying my new car smell as I write this. Now for the final user experience test: seeing how easy it is to get off the phone, email and mailing lists of the dozen or so persistent dealers who think I am still in the market for a vehicle.

(al)


© Lyndon Cerejo for Smashing Magazine, 2012.


Industrial Makeover: Fully Illustrated Package Designs


  

Packaging is considered to be one of the main influences in the marketer’s world, instantly forming the first impression. It also helps determine the initial success of the product, since customers are accustomed to making instant decisions. Thus, the more memorable the package designs are, the better the chances that the merchandise will end up in the cart. And when you are depending on the attractive outer shell, artistic package designs definitely run the show.

The clear advantage of creating illustrative packaging is that it will definitely stand out among other products on the shelf. Another great advantage is that people instinctively believe that the sophisticated and artistic cover brings with it a higher quality of product. But creating visually appealing design, packed with illustrations is not the easiest approach. Not everyone can rise to meet this particular challenge, providing customers with finely balanced design that reveals both the creative side of the designer and the essential aspects of the product.

The collection below showcases excellent examples of fully illustrated package designs that captivate with their originality and creativity, all the while providing the customers with all the necessary information.

Industrial Makeover

1. Burnt Sugar. At first glance the design has 3 memorable things which immediately catch the eye: bright, almost toxic background colors, radically different illustrations for each package and mind-blowing typography. This product is aimed not only to satisfy hunger cravings, but also intended to bring an aesthetic pleasure to the customer.

Burnt Sugar illustration

2. Active Packs uses an unconventional approach to drawing your attention to the various advantages and useful properties of the product by filling all available space with hand-written inscriptions and visual images.

Active Packs illustration

3. Kiss. Unlike the two previous examples that are packed with abstractions, this one focuses only on a single illustration of a specific object, covering every part of the package.

Kiss illustration

4. Saturday Night Live: The Game perfectly utilises the approach of “the more, the better”, heavily applying character illustrations, catchphrases and rules. The package design serves two purposes. First, to make the game easy to understand to customers before buying it. Second, to convey the emotions and joy that are hidden inside the box.

The Game illustration

5. Absolut Watkins is a really complex design that takes every detail into account. Affiliated with the famous Swedish illustrator, the bottle cover calls on fashion by using stylish figures and trendy colors. Moreover, the illustration has a clue where to buy this product that is hidden in the image of the airport.

Absolut Watkins illustration

6. Fisheye Black beautifully combines black and white abstract illustrations and colorful image installations, invoking mixed feelings.

Fisheye Black illustration

7. Laranja Mecânica is a great example of how to properly use only two classic colors, black and white, in order to force the product to jump off the retail shelves. Although, the high density of illustrations makes the package looks a bit messy.

Laranja Mecânica illustration

8. Interpack 2011 Exhibition Concepts uses monochromatic illustrations throughout these to-go carrying containers, presenting objects of everyday life that together tell the story of one girl.

Interpack 2011 Exhibition Concepts illustration

9. Taste of Yellow Chocolate has an amazing background that is filled with yellow drawings that perfectly pop against a black canvas.

Taste of Yellow Chocolate illustration

10. Penhaligon’s X’mas Gift 2011 is fully illustrated gift wrap that brings a note of a traditional British feel. With an illustration of classic a brick building as the core identity element on the front side and artistic drawings typifying the short stories on the back, the packaging arouses the vague feeling of British quaintness.

Penhaligon’s X'mas Gift 2011 illustration

11. Mari Vanna, in contrast to package design No. 7 that also uses only black and white colors, this one has the perfect combination of a pure white background and elegant, clean black illustration.

Mari Vanna illustration

12. Good Ol’ Sailor Organic Vodka effectively utilizes a maritime theme, providing the design with a range of vivid pictured marine inhabitants.

Good Ol’Sailor Organic Vodka illustration

13. Tesco Standard Plus Cakes calls on sweetness, using a gentle color scheme and astonishing typography throughout the whole package.

Tesco Standard Plus Cakes illustration

14. Brains ‘n Bones comes up with an engaging and quite radical solution, creating frightening illustrations of zombies that, at first push you away, but then attracts with skillful execution and enormous attention to detail.

Brains and Bones illustration

15. Burger King Global Packaging is the kind of design that you don’t see very often in the restaurant industry. Hand-drawn illustrations of the food and abstract interpretations of the beverages make the restaurant not only a pleasant place to eat, but also the place to boost your inspiration.

Burger King Global Packaging illustration

16. Moonstruck Chocolate has an amazing handcrafted nature illustration with a slight fairy touch. The embossed effect that is used to give the wrapper a more three dimensional look, emphasizes the beauty of the composition and creates a multi-sensory experience.

Moonstruck Chocolate illustration

17. Captain Ahab gives the impression of a worn-out, slightly dirty packaging, which is obtained by leveraging the old-style typography with a warm colored, noisy background and abrasive illustrations.

Captain Ahab illustration

18. Simone Fuchs Tea creates something of a fluid brand with its diversity amongst the package designs. Each product has its own unique, but at the same time similar, scratchy nature-inspired illustration, complemented with a rough typography peppered background.

Simone Fuchs Tea illustration

19. Five Point Art Supplies uses awe-inspiring graffiti graphic elements to deliver their message. Hand-rendered typography together with bright colorful ribbons are intended to show artists the right way.

Five Point Art Supplies illustration

20. R3 Stories reimagines classic book covers. The brand uses comic style typography, old-school illustrations and a dingy textured background. To further the packages’ engagement with personality, every book cover has its own unique and memorable design.

R3 Stories

21. Absolut London allows the consumer to dive into the world of London chic. The bottle is decorated with complex illustrations with a predominant use of a muted red and blue palette. The illustration represents 7 different characters, that by means of facial expression and distinctive appearance, tries to embody various fashion eras.

Absolut London illustration

22. Naturade uses a bold and simple combination of typeface and abstractions in their packaging. It is a great example of the accurate implementation of vibrant textile textures and condensed graphic elements.

Naturade illustration

23. What On Earth. Despite having a simple round label that is not too different or has that enviable of typography, the overall design captivates with its background illustrations. The rough hand-made pictures of the organic world that are beautifully incorporated into the package design demonstrates the main purpose of the goods, and make it complex and attractive.

What On Earth illustration

24. Moloko. The designer has done an amazing job building an identity that is noticeable. The regular milk package plays into a new vibe through the reproduced picturesque urban scenes made in 3 different color palettes.

Moloko illustration

25. Friggs Rice Cake relies heavily on traditional abstractions of nature and the countryside. With nothing superfluous, the package looks really sophisticated and vibrant, driving home the message of clean and simple food.

Friggs Rice Cake illustration

26. Paw Ridge is a most impressive printing, that is upscale without being snooty. The illustration, made in a natural style, consists of fictional characters that make the product adorable by evoking childhood memories. It is a great example of how small package illustrations can send powerful messages.

Paw Ridge illustration

27. Rhythm screams urban art deco style by means of simply pictured inherent attributes of modern youth. Despite having a heavily illustrated background, the simple bold typography is well set and really speaks volumes about the product.

Rhythm illustration

28. How Stuff Works Box Sets is another example of a heavily illustrated package design. With the use of muted colors and monochrome illustrations, tightly placed on the box surface, the design conveys a warm experience.

How Stuff Works Box Sets illustration

All for Now

As you can see, sometimes creating packaging designs can be the perfect solution to convey the brand essence, and establish a connection with customers on an emotional level. All the examples represented above have unique and catchy packages, that will definitely come get noticed. Now it’s your turn. Tell us which package designs excite you the most? Which brand, in your opinion, has the most engaging and revealing design? Sound off, we are eager to hear from you.

(rb)


What’s New in WordPress 3.4


  

With WordPress 3.4 set to arrive this week, it’s a great time to familiarize ourselves with the new features and additions. The new version of WordPress brings many improvements, including custom backgrounds and headers, a live theme-customizer, revamped XML-RPC, better support for internationalization, and many bug-fixes and enhancements. Let’s dive in and see what WordPress 3.4 has in store!

wp34featured-500

Custom Headers And Background

When WordPress added featured images as a core feature in 2.9, a new function was added — add_theme_support. It was (and is) obvious that this is a precursor of things to come: the standardization of theme features. Since its introduction, add_theme_support handles post-formats, automatic feed-links, and now in version 3.4, custom backgrounds and headers will be added to the list.

Adding a Custom Background

To use this feature, just call the add_theme_support() function with ‘custom-background’ as the first argument, and a list of default options as the second. Here is an example showing the basic syntax:

	$args = array(
		'default-image'          => get_template_directory_uri() . '/images/bg-default.png',
		'default-color'          => '#fafafa',
		'wp-head-callback'       => '',
		'admin-head-callback'    => '',
		'admin-preview-callback' => ''
	);
	
	add_theme_support( 'custom-background', $args )

Once the code is in place, you’ll see the changes take effect in the WordPress Admin:

The new custom background facility in WordPress 3.4
The new custom background facility in WordPress 3.4

Adding a Custom Header

Adding the custom-header options work in much the same way. In addition to the new way of defining them, you can now make them flexible in height or width, which is a great asset to theme designers.

	$args = array(
		'flex-height'            => true,
		'height'                 => 200,
		'flex-width'             => true,
		'width'                  => 950,
		'default-image'          => get_template_directory_uri() . '/images/headers/header-default.jpg',
		'random-default'         => false,
		'default-text-color'     => '',
		'header-text'            => true,
		'uploads'                => true,
		'wp-head-callback'       => '',
		'admin-head-callback'    => '',
		'admin-preview-callback' => '',
	);
	add_theme_support( 'custom-header', $args );

Once you add this code the relevant controls will show up in the Appearance tab and you will be able to set up your custom header and background-image.

The width and height is now 'suggested'
The width and height is now ‘suggested’ (displayed in bold text)

Thanks to Chip Bennett and Amy Hendrix for their excellent posts on this topic.

Live Theme Customizer

I think one of the best features in recent times is the Live Previews or “The Customizer”. As someone who sells themes on Theme Forest, I welcome this addition because the more I can use default WordPress options, the less support I need to provide. The best way to familiarize yourself with this feature is to watch the following great overview from Otto. I also recommend his article on leveraging the theme customizer in your own themes.

We’ll be taking an in-depth look at this awesome functionality here on Smashing Magazine, but for this article, the live theme-preview feature is too complex to showcase concisely. If you’d like to get started, do read Otto’s article — it has everything you need to get things set up. Here’s the nutshell version for a quick preview.

The preview facility works in an object oriented fashion. To use it you will need to cover the following steps:

  1. Add the customizer (hook it to ‘customize_register’)
  2. Add an area of customization — a section (using add_section())
  3. Add a setting you want to be able to control (using add_setting())
  4. Add the control which is used to modify your setting (using add_control())
  5. Customize the preview functionality to work in real-time

The live preview is brand-spankin’ new, but it’s already a very powerful tool. It will no doubt receive numerous updates and additions, so theme developers will finally have a common and also flexible way of letting users customize their themes.

XML-RPC Revamped

XML-RPC is a specification and a set of tools that allow software running on different platforms to make procedural calls over the Internet. In essence, it allows communication between WordPress and other software. The most apparent use of XML-RPC is the remote blogging services that are offered by apps like Windows Live Writer and mobile apps.

WordPress 3.4 comes with a number of XML-RPC bug-fixes as well as some heavily requested features like support for post thumbnails, custom post types and taxonomies.

Internationalization Changes

Back in the second half of December last year, WP Polyglots (the translation team) announced that they will be pouring a lot of work into the 3.4 release and beyond. As a result there a numerous upgrades in the internationalization functionality of WordPress:

  • Comma-localization (for languages like Chinese and Arabic which do not use the standard comma)
  • Some fields are now forced to be LTR (like password and login names)
  • Translatable spell-checker language
  • Single quotes, apostrophes and primes can be localized
  • Translatable time-zone string
  • Simplification of:
    • Feed-language specification
    • Start of the week
    • RTL language designation
    • Default secret-key text
    • Placeholder text of database constants
    • setup-config.php file translation
    • WP_I18N_* hardcoded translations
  • Translations are now split over three POT files — wordpress.pot, wordpress-admin.pot, and wordpress-admin-network.pot
  • Default WordPress links can be translated
  • Dashboard widgets can be translated

Beginnings Of A New API

While not advertised in the change-logs, Andrew Nacin has been working on a new API which will replace the get_themes() functionality.

For now you won’t notice much, with the main difference being that you can place template files in sub-directories. Under the hood, the new class will bring significant speed increases while searching for themes by reducing the filesystem operations to a bare minimum.

As you can see on the main Trac Ticket (scroll down a bit in the comments), there has been a lot of work done but the class is only scratching the surface of what we will be able to do later on. Flexible theme-management with better performance will help developers and users out a great deal — I can’t wait to see where this goes!

Bugs and Enhancements

With a total of 401 bugs fixed, 116 enhancements added, 3 requested features built and 52 tasks completed (at the time of writing) there is a lot more to this update than just the main features above. The WordPress 3.4 Track Milestone page has all the links and info you need to take a look at all that’s been done, and here’s a quick overview.

  • HTML Support in image captions #18311
  • Twenty Ten and Twenty Eleven themes updated to support new features #20448
  • Theme installer supports child themes #13774
  • WP_Query core performance upgrade #18536
  • Clicking on an empty space in the toolbar will scroll the page to the top #18758
  • Incorrectly displayed author meta fields fixed #20285
  • Failed cURL redirect fixed #20434
  • Spam comments are now excluded from the dashboard #14222
  • Theme editor support for special theme name characters #16507
  • Retina display icons added #20293
  • Already installed themes excluded from theme search #20618
  • Args added to the recent post and comments widget #16159
  • New comments can be added from the editor #15527

Updates Of External Libraries

It’s always worth checking out the external library update for a milestone. This version brings quite a lot, to name just the most important ones:

  • PHPMailer updated to 5.2.1 #19887
  • TinyMCE updated to 3.4.8 #19969
  • jQuery updated to 1.7.2 #20339
  • jQuery UI updated to 1.8.20 #20559
  • SimplePie updated to 1.2.1 #18309
  • hoverIntent updated to r6 #19311

Want To Chip In?

If you’d like to participate there are still a few days left and you can always help out after 3.4 as well. If you have the coding chops take a look at the open tickets for the next major release.

If you’re not a coder, not to worry! Just using and testing the features can be invaluable as well! You can download WordPress 3.4 RC2 or you can install the Beta Tester Plugin to grab all the latest nightlies and be on the bleeding edge!

(JS)


© Daniel Pataki for Smashing Magazine, 2012.


  •   
  • Copyright © 1996-2010 BlogmyQuery - BMQ. All rights reserved.
    iDream theme by Templates Next | Powered by WordPress