A little about us.

By understanding consumer behaviour, we're able to design applications that work for consumers, helping them reach their goals as efficiently and enjoyably as possible.

If you'd like the same for your apps, get in touch with us at 416.642.9694 or hello@yousayyeah.com and we'll help you move from application to engagement.

Get in touch.

Join the team.

Have something you'd like to say about user experience? Want to work on some great apps? Let us know.

team@yousayyeah.com

Tuesday June 16, 2009

Yes, we use Illustrator when designing websites.

Tips, tricks and assets so you can do the same.

Tips, tricks and assets so you can do the same.
by Lee Dale

I personally don't understand why anyone would use a photo editing program to design a website, but I also recognize we're in the minority here. So here are some reasons why we use Illustrator when we're designing websites, along with some tips and assets to help you do the same.

As a designer, working with vector graphics over raster images gives you several distinct advantages. Specifically, you can move and swap groups of elements with ease, including adjusting their size, shape, colour, and layout almost instantaneously, without regard for diminishing resolution or sharpness issues when scaling, or colour issues when trying to replace colour or fill raster images.

These benefits are particularly useful for the web designer who may be working with changing page structures and user interface elements, such as button sizes, shapes, and colours, or shifting menus and submenus, including size, location and colour adjustments. 

As an added benefit, you can print out high quality preview images for review or for your portfolio. 

With all this in mind, here are some tips and assets to get you started using Illustrator as a web design tool.

For starters, you need to understand a pixel issue that can be solved with some careful planning. It's easy to starting placing elements off pixel in Illustrator which has the unfortunate result of making edges fuzzy. Website images are pixel specific, so if you have a 1 pixel line that is half on one pixel and have on another in Illustrator, it will end up being lighter or have fuzzy edges when you create your web image. To combat this there are two helpful Illustrator techniques, and the rest is up to you.

Step 1: Turn on Pixel Preview. 

Pixel Preview will help you spot soft edges that are the result of off pixel elements. You'll find pixel preview under your view menu, as follows:

Illustrator Pixel Preview menu option.

Here's the difference between an image with Pixel Preview turned on, and one without Pixel Preview. 

Without Pixel Preview:

Say Yeah Safari header without pixel preview.

This highly zoomed in browser template looks perfectly smooth without Pixel Preview turned on, but that's deceptive when it's a screen resolution website you're designing.

With Pixel Preview:

Say Yeah Safari header with pixel preview.

With Pixel Preview turned on, zooming in shows you the actual pixels which make up your on screen image. This really helps spot off pixel lines which will appear blurry instead of crisp. Here's the exact same image, with elements sitting at .5 vertical and .5 horizontal coordinates instead of precisely on pixel.

Say Yeah Safari header with pixel preview and off pixel.

You can see here that both horizontal and vertical single pixel crisp lines now appear disjointed or faded across two pixels. That's because they are. This means when you save these images for web, your clean lines become muddy pasty things that make your website look less than stellar.

So, what else can you do in Illustrator to prevent off pixel elements.

Step 2: Get friendly with Illustrator's Transform window. 

First and foremost, as shown below, ensure that the little black square on the grid of 9 squares in the Transform window is in the top left and not in the centre. Now that you've done this, you can easily see, when drawing lines or placing shapes, when an element is not precisely on pixel. 

Illustrator's Transform window with an on pixel example.

Specifically, instead of the whole numbers shown above, you'll see decimal points. You don't want decimal points, particularly on your x and y axis, though rounded elements and text will often not be perfect. As much as possible, it's ideal to clean this stuff up. Here's an example of what you don't want to see:

Illustrator's Transform window with an off pixel example.

If you are seeing this, the solution is to simply delete everything following the decimal points. If you do this, Illustrator will shift the element onto pixel.

So that's really all you need to know to make sure that your Illustrator elements are crisp and clear when you're designing for the web. Now, to augment your presentation and portfolio work, here's an on pixel Illustrator file of the Safari 4 browser window so you can top off all your web work with the latest browser, highlighting URLs and page titles, and making sure you never again forget to make a favicon. Enjoy!

More Web Development, Graphic Design

Comments

1st Comment Jun 17, 2009 at 9:03a
personally I've been using the vector stuff in PS a bit more and more now, or bringing in vector shapes as smart object into PS and using layer styles a bunch, for me its a quicker workflow and I've found that its better for other people that aren't down with illustrator as much as me, when trading files etc.

your template will join my older version of a safari template.

thanks Lee!
Updated Jun 22, 2009 at 11:04a
Reply
2nd Comment Aug 02, 2009 at 2:07p
Great article Lee - I'd love to see more posts about using Illustrator for design, especially geared towards people who are used to working with Photoshop. I know that CS4 was supposed to be the release where Adobe harmonized interfaces between PS & AI, but as a long-time PS guy, Illustrator has always seemed a little weird to me. 

I'm all about vectors and direct-selection (which is why I use OmniGraffle for most of my initial mockups), but I just wish Illustrator behaved a little more like Photoshop. You don't have to write some crazy huge guide or anything; even links to your favorite resources would be helpful
Lee Dale replied Mar 01 at 1:26p
This is one of those too deep into it to recall situations. I moved from Photoshop to Illustrator about 10 years ago. It was completely foreign to me back then, but now I don't remember what was throwing me off; it's all just second nature. Any suggestions here, Matt?
Reply
3rd Comment Sep 09, 2009 at 2:57p
This is awesome and really useful. Thanks for sharing it. I was wondering if you have a vector mock up of the way OSX browser, like safari and firefox, render buttons and drop down menus and such. If so, pleaaaaase let me know!
Thanks
Lee Dale replied Mar 01 at 1:21p
Not really. We generally just use screenshots of these if we get beyond a form sketch before moving to code; forms aren't really portfolio eye candy. 
Reply
4th Comment Sep 25, 2009 at 1:15p
Very interesting, although Fireworks is my choice of weapon for Web Design!
Reply
5th Comment Nov 06, 2009 at 3:28p
Fireworks combines vectors with pixel perfect control. And that's what Illustrator lacks, pixel perfect stuff.
Lee Dale replied Mar 01 at 1:23p
We've generally found turning on Pixel Preview in Illustrator to be foolproof. It snaps objects you move and shapes you're drawing to the on pixel coordinates. If you're looking for an alternative to Fireworks, give Pixel Preview a try!
Reply
6th Comment Nov 20, 2009 at 10:46p
Thank You this is beautiful !
Reply
7th Comment Feb 04 at 8:32p
Thank you for the .ai file!!!! You guys are awesome!
Reply
8th Comment Mar 01 at 1:45p
@marco
@pattern86

Thanks for the kind words. 
Reply

Please login to post your comment