Designing Web Forms Using Graphic Styles and the Appearance Palette in Illustrator CS5

Paragraph styles in Adobe InDesign allow designers to maintain a typographic style across very large documents, while (in most cases) maintaining their sanity. Similarly, Illustrator offers a very powerful tool called graphic styles that allows the designer to define styles and apply them to Illustrator objects.

In this tutorial I'm going to demonstrate how the use of Graphic Styles in Illustrator can make it easier to build complex web forms and will assist you in developing rapid mockups.

Creating a new file

Making a background

Ensure you have both the Color and Layers palette available (Window → Color, Window → Layers).

Simply creating a background colour for our project to sit on.

Create a 'textfield' Graphic Style

Ensure you have both the Graphic Styles and Appearance palettes available (Window → Graphic Styles, Window → Appearance).

Setting up an Object

Creating an Outline and a Highlight

Here we're going to add a dark outline around the object with a one pixel highlight underneath.

Making a Background and Shadow

Ensure you have the Gradient palette (Window → Gradient).

We're going to use the appearance palette to create a secondary fill as a gradient. We will set up the gradient so that it appears to be a shadow within the rectangle. To do this we will first set three colour nodes along the gradient slider then move the nodes so that it creates a hard line.

Saving this Appearance as a Graphic Style

Creating a new graphic style will allow us to use this style on other objects in our project.

Creating a 'button' Graphic Style

In this section I'm going to show you how to use a previously established style as a starting point for creating a new element with similar attributes.

Start from our last object

Reverse the Lighting and Add Colour

Saving this Appearance as a Graphic Style

Using this method you will be able to create other elements for your designs. These graphic styles will allow you to quickly change and iterate on your design without having to carefully reposition as many objects. Well defined graphic styles can also be shared between designers to ensure visual congruency. Thanks to Steven Aston for showing me this trick.