In the following tutorial you will learn how to create a simple set of switch buttons. First, we’ll use the Rectangle Tool along with the Rounded Corners and the Drop Shadow effects to create the shapes behind the button. For the button we’ll use a mesh, some Pathfinder options and two simple strokes. Step 1 Create a 600 by 300px, RGB document. First, enable the Grid (View > Show Grid) and the Snap to Grid (View > Snap to Grid). Next, you’ll need a grid every 1px. Go to Edit > Preferences > Guides > Grid, enter 1 in the Gridline every box and 1 in the Subdivisions box. You can also open the Info panel (Window > Info) for a live preview with the size and position of your shapes. Do not forget to replace the unit of measurement to pixels from Edit > Preferences > Unit > General. Al these options will significantly increase your work speed. Step 2 Pick the Rectangle Tool (M) and create a 60 by 30px shape. Fill it with the linear gradient shown below and add a 1pt stroke. Set its color at R=88 G=89 B=91 and align it to outside. Step 3 Reselect the rectangle created in the previous step and focus on the Appearance panel (Window > Appearance). Add a second stroke for your shape using the Add New Stroke button. It’s the little, black square icon from the bottom …
Read the original here:
Quick Tip: How to Create a Simple Set of Switch Buttons