Posts Tagged ‘ui’

Alert Box Photoshop Tutorial :: UI Series


Today we are continuing our new series of User Interface Design. With the vastly rising popularity of mobile apps and mobile web design User Interface Design is now a huge area for Designers to become proficient in. In this quick tutorial I will be walking you through the process of creating a few simple form elements in Photoshop.

As always this is what we will be creating:

Resources

Pixel Patterns V2 by Rich Hemsley

50 Free Menu Android Icons by AndroidIcons

Cabin Font by Google Fonts

Gettings Started

Start out by creating a new document 600px by 600px, and fill it with #ffffed.

Now grab your rounded rectangle tool and choose 10px for your radius. Change your foreground color to #f5a0a0. Now drag out a rectangle that is 510px by 80px. For now go ahead and center the rectangle on the document.

Now, make sure you load the Pixel Patterns V2 that we downloaded in our resources earlier. Open your layer styles for your rounded rectangle and apply the following three layer styles.

The pattern I am using is Pixel 15

You should have a nice looking rounded rectangle that will be the background for your message box. As you can tell by color the first alert box we will be making is an error box.

The Icon

Alright, now open up the Android Icons freebie that we downloaded earlier. You can choose whichever icon that you want, but make sure to resize it to 42px tall. Drag it over to your document and space it 20px from the left and center it vertically on your alert box.

Go ahead now and set your layer style to Luminosity. This will give your default style an letterpress style look.

The icon I used was the stop icon resized to 42px.

The Typography

Alright, now choose your favorite font, <sarcasm>or a font that would look good if your favorite font is something incredibly weird that only works in one document </sarcasm>

Change your foreground color to #b56060. Type out your information into the text box. Depending on the size of information you want in there will depend on the font size. Since I am using dummy text, and I don’t put a lot in my alert boxes, my font size is going to be 30pt. Center your text vertically on your icon and space it 20px from the right of your icon.

And there you have it. Our first box is finished. To create the other two boxes you will just duplicate your layers, change the background color of the box, your inner glow, and your stroke, and then your icon. You can find the colors and icons we used below.

Yellow

Background: #f5f2a0

Inner GLow: #faf560

Stroke: #c9c431

Icons: light (resized to 42px tall)

Green

Background: #a0f5c0

Inner Glow: #69f999

Stroke: #08b248

Icons: tick (resized to 42px tall)

The Tooltip

Now let’s go ahead and create our tooltip style alert box. We will be using the same color scheme, same colors, and same layer styles as our larger alert boxes, but we will be changing the shape and icon size.

To get started grab your rounded rectangle tool again and keep the radius at 10px. Set your foreground color to #f5a0a0, just as before, and draw out a rectangle that is 175px by 100px.

Alright, time to add our bottom piece. To do this grab your Custom Shapes tool and make sure you have them set to symbols. Choose the rounded triangle tool (Sign 3). Keep your foreground color the same and draw out a triangle that is 30px by 15px. Set up your rectangle to come just at the bottom of your rounded rectangle, and horizantally centered.

Alright, now rasterize both layers. We are doing this because we need just one shape for our Layer Styles. To make one shape you can right click your triangle shape and choose Merge Down, or you can select both shapes and choose Merge Layers.

Now, go back to your first alert box and copy the layer styles. To do this right click your box background layer and choose copy layer styles. Now go to the rectangle we just designed and choose Paste Layer Styles.

Please note that this may not work with your version of Photoshop. If it does not you will have to manually apply the layer styles.

Alright, now grab your type tool again and make a text selection that is 155px by 55px. Use the same font, change the size to 23pt, and type out whatever text you want to use. center it horizantally and vertically on your rounded rectangle.

Now, grab the same icon you used for the first alert box, or a different one if you want to, and re-size it to 30px tall. Drag over the icon and place is on the bottom right corner 10px from the bottom and 10px from the right side.

Alright, now we are done with that box as well. You can create the other two boxes using the same layer styles from the other two boxes. Just copy and paste the layer styles.

Conclusion

Our document is finished! You can add a nice input box to see how it will look as well if you wanted to. These input boxes are pretty simple to design, good looking, and easy to turn into CSS3 and HTML5 forms *hint hint*.

Be sure to check it out on Dribbble!

Mobile Toolbox for WordPress (Tutorials, Plugins and Themes)

Mobile browsing clearly does have its limitations, mainly from its smaller physical design, but it also limited by web sites not having a mobile version tailored for the smaller screen. Current mobile web browsing stats stands at 4.5% of total world-wide internet usage and, with the prediction for the next five years being that more users will connect to the internet over mobile devices than desktop computers, it is now time to act and make your website mobile friendly.

Of course, it does depend on the size and complexity of your site, but creating a mobile version of your site does neither have to be over-expensive nor very time-consuming, especially if your site has been built using WordPress. As everybody knows, WordPress is by far and away the most popular CMS, and with it comes a thriving community of designers and developers that constantly push its boundaries further and ever-more improving its functionality. Its community has realized for some time that the mobile phenomenon has been coming, and as such does have a multitude of themes, plugins and resources available that will help you create a mobile version of your site with the minimum of fuss.

In this article, Mobile Toolbox for WordPress, we highlight themes (free and premium), plugins and easy-to-follow tutorials that will help you create a mobile version of your site.

iPhonsta 1.1

iPhonsta 1.1iPhonsta 1.1
Despite its name iPhonsta does not exclusively only work on the iPhone, it works on most mobile devices, like Android, Palm Pre and Blackberry. The theme has a fluid layout, configures the font size automatically and is WordPress 3 compatible.
iPhonsta Home →View the Demo →

Smooci 2

Smooci 2Smooci 2
This basic free theme works in conjunction with the Smooci (WordPress on Mobiles) plugin which is used to display the mobile optimised theme when your WordPress site is visited via a mobile device.
Smooci 2 Home →View the Demo →

WordPress Mobile Theme

WordPress Mobile ThemeWordPress Mobile Theme
This is a minimalistic and lightweight theme that will fit perfectly with all the mobile phones resolutions. The three key features of this theme are: You can choose your own theme color from the theme options; The theme can have 100% width if you want the theme to fit on every mobile phone, or you can define a fixed width in pixels to target special users; The front page will dynamically create thumbnails for your posts.
WordPress Mobile Theme Home →View the Demo →

jQuery Mobile

jQuery Mobile
Built with the incredible jQuery Mobile plugin, this theme is perfect for those who want to make a good looking and easy to read version of their blog. It uses most of jQuery Mobile features to guarantee an optimal ease of reading on mobile devices such as the iPhone, Blackberry or Android.
jQuery Mobile Home →View the Demo →

Mobius

MobiusMobius
Mobius is a feature rich free theme that is compatible with all touchscreen mobile phones (iPhone & iPod Touch, Android, BlackBerry, Windows Phone, Palm Pre, Symbian…). It comes packaged with three variations (Sky Blue, Amethyst & Rain Forest), its widget ready, native support of non-web fonts (@font-face) and also has optional Twitter and Facebook icons.
Mobius Home →

The dotMobi WordPress Mobile Pack

The dotMobi WordPress Mobile PackThe dotMobi WordPress Mobile Pack
The dotMobi WordPress Mobile Pack is a complete toolkit from dotMobi to help mobilize your WordPress site and blog.
It includes a mobile switcher to select themes based on the type of user that is visiting the site, a selection of mobile themes, extra widgets, device adaptation and a mobile administration panel to allow users to edit the site or write new posts when out and about.
The dotMobi WordPress Mobile Pack →

Carrington Mobile

Carrington MobileCarrington Mobile
Carrington Mobile is an elegant mobile theme with that supports advanced touch browsers (iPhone, Android, BlackBerry, Pre) and is also backward compatible with older mobile devices.
Carrington Mobile Home →View the Demo →

touchPress

touchPress
A beautiful 4 in 1 theme (Blackboard, Wood, Leather, Nature), with 2 widget ready areas, gestures based navigation and auto-resizes images. Automatic detection if a user visits your website from an iPhone and iPod touch, thanks to its built-in plugin that comes packed with the theme.
Price: $22
touchPress Home →

1ST Giant Leap

1ST Giant Leap
1stGiantLeap Mobile is a HTML5 /CSS3 template tuned to look perfect in mobile browsers. The markup is device orientation (landscape/portrait) sensitive, so when you change device orientation by rotating it 90 degrees CW or CCW this template will look nice.
Price: $15
1ST Giant Leap →

WPtouch 2.0 Pro

WPtouch 2.0 Pro
WPtouch 2.0 Pro allows you to setup a feature-rich and fast version of your website for touch-mobile devices with just a few clicks. It does come packaged with a wide variety of pre-built themes, or you could build your own custom theme with WPtouch’s Skeleton theme template. It scales post images, captions and videos automatically and breaks up content with ‘Load More’ links that use ajax to make browsing easier for visitors.
Price: Its FREE for the basic version, $39 for Pro, $69 for the Pro 5 pack and $199 for the full developer pack.
WPtouch 2.0 Pro Home →

Mobility WordPress Theme for Web and iPad

Mobility WordPress Theme for Web and iPad
Mobility is an iPad-ready WordPress theme with finger sliding capabilities and a custom drag-and-drop gallery admin. Both the regular and iPad versions have seven color options and the choice between a single or three-way JavaScript slider on the homepage. The iPad version can switch between portrait and landscape mode upon rotation.
Price: $30.
Mobility WordPress Theme for Web and iPad Home →View the Demo →

WordPress Mobile Theme Framework from Obox

WordPress Mobile Theme Framework from Obox
Obox Mobile is a WordPress Mobile Theme Framework that gives your site a unique and beautiful layout which is compatible for mobile devices. Obox Mobile comes packaged with two Obox Themes (MobiLight & MobiDark) as well as WooMobile from WooThemes.
We currently use Obox Mobile for Speckyboy.
Price: $50.
WordPress Mobile Theme Framework Home →View the Demo →

Simple Mobile

Simple Mobile
Simple Mobile is feature-rich theme that works parallel with another theme and presented to mobile users only. It comes with 8 color schemes, collapsible multi-level menu, WP 3.0 custom menus support, 43 social media icons, a slick Twitter implementation (optimized for speed) and much more.
Price: $20.
Simple Mobile Home →View the Demo →

PadPressed

PadPressed functions as a WordPress plugin and allows publishers to take their content and make it perfectly formatted for the iPad. The most important aspect of PadPressed is its 100% design for the tablet touch experience. Each skin plays to a specific touch dynamic. SwipePad focuses on swiping to advance and a swipe featured slider. It notices the orientation (portrait or landscape) of a reader’s iPad.
Price: $49 for a single license and $149 for a developer license.
VIDEO
PadPressed Home →View the Demo →

My Mobile Page

My Mobile Page
The My Mobile Page WordPress Theme is a minimal mobile WordPress theme with a modern look and a lot of cool features. This theme can be used for personal mobile pages, web designers mobile pages, artists mobile pages and many other. The theme use automatic resolution detection so you can use for small screen resolutions and bigger resolutions.
Price: $20
My Mobile Page Home →View the Demo →

On Demand Mobile

On Demand Mobile
This is a joint collaboration between WPtap (plugin developers) and Press75 (theme developers) to release a mobile version of the video theme On Demand, providing a fully featured video solution for mobile platforms.
Price: On Demand Mobile for $49, or with On Demand iPad for $90.00
On Demand Mobile Home →View the Demo →

Tap News – iPhone App Style Mobile Theme

Tap News - iPhone App Style Mobile Theme
Tap News is an iphone-app style mobile plugin/theme package that instantly converts your wordpress site into a mobile web-application experience. It is specially designed for iPhone/iPod touch, Android, and Blackberry touch mobile device. The theme features elegant iPhone-style sliding layout, and it will truly turn your site into a mobile application. Other features include thumbnail pictures, full support for twitter, social bookmarking, and email.
Price: $49
Tap News Home →View the Demo →

iBusiness iPhone-iPod Template

iBusiness iPhone-iPod Template
iBusiness is a website template designed especially for the iPhone/iPod. It comes with 9 different themes, 3 page templates, 3 widget areas, PSD source files, Twitter stream, and much more.
Price: $15.
iBusiness Home →View the Demo →

Video Theme for iPhone & Android

Video Theme for iPhone & Android
The Video Tube theme is specifically designed for video blogging and content sharing on your mobile site. It fully supportsthe iPhone/iPod Touch, Android, and touch-based Blackberry devices.
With all WordPress features and customized insertion functions, it makes adding Youtube and MP4 videos to your mobile site exetremely easy.
Price: $49.
Video Theme Home →View the Demo →

SOFA iBloggr

SOFA iBloggr
Sofa iBloggr perfectly fits to the iPhones 320px wide screen without the need for screen orientation switch. You can easily turn this theme into Blog + Flickr + Twitter mashup. iBloggr supports widgets, it has a built-in Plugger system, almost everything can be controlled from theme options page – including quick translation table, image size, Post excerpt length…
Price: $15.
SOFA iBloggr Home →View the Demo →

News Press Mobile Theme

News Press Mobile Theme
The News Gallery theme is designed with the photography blogger in mind featuring frontpage slideshow, thumbnail picture and gallery style layout options. It is the perfect choice for image-centric and magazine style WordPress websites. It comes with six stylish colors designed to fit your sites’ unique profile and style.
Price: $49
News Press Mobile Theme Home →View the Demo →

iWorld

iWorld
iWorld is a jQuery powered feature-rich mobile theme. It comes with 10 color schemes, built-in slider & contact form (including validation plugin), Twitter & Flickr widget, a selection of social icons and comes with PSD source.
Price: $25.
iWorld Home →View the Demo →

Video Elements Mobile

Video Elements Mobile
Video Elements Mobile Home →View the Demo →

WordPress Mobile Plugins

MobilePress – Enable The Mobile Web →
MobilePress is a free open source plugin that is flexible in that it allows you to customize your mobile presence by creating your own themes, creating themes for specific mobile browsers (iPhone and generic devices) and also allowing you to decide when to display your mobile blog.

WPmob Lite →
WPmob automatically transforms your WordPress blog into an iPhone application-style theme, complete with ajax loading articles and effects, when viewed from an iPhone, iPod touch, Android, Opera Mini, Palm Pre, Samsung touch and BlackBerry Storm/Torch mobile devices. The admin panel allows you to customize many aspects of its appearance, and deliver a fast, user-friendly and stylish version of your site

WP Mobile Detector →
WP Mobile Detector is a simple plugin that automatically detects standard and advanced mobile devices and displays a compatible WordPress mobile theme.

Mobile Kit →
MobileKit is a small WordPress plugin created to make the development of WP mobile themes and apps simple, allowing theme designers to create more immersive user experiences across platforms and devices.

BAAP Mobile Version →
The BAAP Mobile Version is a complete toolkit to help mobilize your WordPress site and blog.
It includes a mobile switcher to select themes based on the type of user that is visiting the site, a selection of mobile themes, extra widgets, device adaptation and a mobile administration panel to allow users to edit the site or write new posts when out and about.

BuddyPress Mobile →
This is a Mobile BuddyPress theme that has been optimized for viewing onthe iPhone and iPod Touch, and will also work on Android and some Blackberry devices.

WordPress Mobile Tutorials

Mobile WordPress Theming →
In this four part tutorial series, from Mobile Tuts+, you will learn how to create a powerful mobile WordPress theme that can be applied to your blog making the site easily accessible to mobile users.
Mobile WordPress Theming: Day 1 →
Mobile WordPress Theming: Day 2 →
Mobile WordPress Theming: Day 3 →
Mobile WordPress Theming: Day 4 →

Making your WordPress Blog Android and iPhone Friendly →
This article is intended for those who already have a web or WordPress background. If you don’t quite understand how to put together your own templates, this detailed tutorial may not for you.

Mobile Browser Detection →
This tutorial covers everything you will need to know about mobile browser detection covering a spectrum of various options, including a WP solution and a PHP solution.

Redirect Mobile Users to a Mobile WordPress Theme →

Detect Mobile Browsers – Mobile User Agent Detection →
This PHP function lets you choose how to manage your mobile visitors, they can be redirected to a page built for mobiles or you can use it to decide which markup language and stylesheet to show that user.

Add a Mobile Landing Page to Your Site →
This tutorial isn’t about creating an entire mobile version of your site, instead it is a means of offering a quick introduction to visitors from the mobile world before passing them through through to your main site.

You might also like…

WordPress Shopping/Ecommerce Toolbox (Plugins and Themes) →
30 Grid-Based WordPress Themes →
40 More Stylish, Minimal and Clean Free WordPress Themes →
20+ Free and Stylish Typography WordPress Themes →
30 Brand New Quality WordPress Themes →
10 Blank/Naked WordPress Themes Perfect for Development →
25 Fresh, Clean and Unique WordPress Themes →
40 Awesome and Fresh WordPress Themes →
Essential WordPress Plugin Development Resources, Tutorials and Guides →
20+ Powerful WordPress Security Plugins and Some Tips and Tricks →


Design An iPod Shuffle Icon


For this tutorial we will be dipping into a little bit of icon design for iOS applications. The example icon for the tutorial’s sake will be an iPod Shuffle icon that would be used for a music related app or something of that sort. The tutorial should give some exampled of how to shade elements in an icon as well as bases that typical iOS icons would use.

The final product should look something like this:

Getting Started

The first thing to do is create a new document in photoshop that is 512px by 512px.

Base

Go to Layer>New Fill Layer>New Gradient Fill to create a new gradient fill layer. Set the settings to a 0 degree angle and a reflected style. At 0% make the color #cccccc and at 50% make a color with #e8e8e8. Then make a color at 75% with #a2a2a2 and at 90% make one with #e6e6e6. The last color will be at 100% with the color #7c7c7c. The final will look like this:

After this is complete, right click and duplicate the layer and then make a 512px by 512px rounded rectangle with a 90px border radius. Move the vector mask onto the duplicated Gradient Fill Layer. On this new layer, go into Blending Options and activate the Inner Shadow and Inner Glow options. In Inner Shadow, make the color white and the blending mode screen. Set the Opacity to 25% and the Distance to 4, Choke to 100, and Size to 0. In the Inner Glow option, set the color to white with the blending mode Overlay. Make the Opacity to around 40% with the Size at three and Choke at 100. Confused? Look at the image below to make sure you have everything right.

The Clickwheel

The ClickWheel shape can be created by making one large circle. A good way to do this is to set the shape mode to rounded rectangle and set the border radius to something high (like 300px). After this, set the shape mode to subtract and create a smaller circle inside that.

Go into blending options for our clickwheel shapes and set the drop shadow to a Multiply Black with 5px distance and 7px size

The next style is an White Screen Inner Shadow with 22px Distance and 35px Size.

Next is a 25% Opacity, Black Multiply Outer Glow. This style should have a 5px Size.

Next is a White Screen Inner Glow. The Opacity should be set to 10% with 100% Choke and 1px Size.

Next we will add a Bevel. Set it to a smooth Inner Bevel at 100% depth. The Size should be 0px and the White screen setting should be at 50% Opacity. The Multiply black setting should be at 0%.

Next is a subtle Gradient Overlay. All the settings should be the default except the colors. Set the colors to #141414 to #1e1e1e.

Now add a 1px Sized Stroke to add depth to the ClickWheel. Make sure the Fill type is Color with the color set to #191919.

White Controls

To add the next white control glyphs, some experience with the pen tool is required. The pen tool is one of the harder Photoshop tools to master which is why I suggest you use mine.

When the glyph vectors are complete, add the following layer styles.

Final Play/Pause Glyph

Again, the vector shape is supplied in the .PSD included with the tutorial. To give the glyphs an imprinted looks, the Inner Shadows and Drop Shadows can be used.

Now apply the following layer styles to the shape.

Adding Shading

To increase depth in the base, a simple gradient can be applied. The Opacity toggles in the Gradient Overlay blending option should be set to 25% (left) and 50% (right). The make the left color black and the right color white. At 50% location, add another white color fill.

Conclusion

This tutorial should hopefully give you some insight as to how to go about starting icons, as well as some easy layer styles that can give imprint or bulging 3d feels to parts of icons. The tutorial should have also helped you see how many iOS application icon bases are made. Hope you learned something or brought something away from this tutorial!

Toggle Switch Photoshop Tutorial


Hey, guys. Today, we’re going to learn how to create a toggle (on/off) switch, and we’re gonna do it using vector shapes and layer styles. That’s right. For now, say goodbye to working in raster and open your eyes to the bright future of resolution independence. Kinda warm and glowy, isn’t it? Good stuff.

In order to create those switches in the image above, you’re gonna need to familiarize yourself with the Pen (P) and the Rectangle and Rounded Rectangle (U) tools. Plus, get ready to wield the Path Selection and Direct Selection (A) tools. Those will be your weapons in the steps ahead. Alright, to the Photoshops!

Step 1: Create the Background

We’ll start with a new canvas of, say, 200 x 200px. Right away, let’s create a new shape layer for the background by using the Rectangle tool. Press the keyboard shortcut U or select this icon from the toolbar:

In the Options bar, make sure the Rectangle is selected. Unfortunately, most of those tools (Rectangle, Rounded Rectangle, Ellipse, Polygon, Line, and Custom Shape) share that same keyboard shortcut: U.

If you enable Preferences > General > Options > Use Shift Key for Tool Switch, you can cycle through all those tools by holding Shift and pressing U. Nifty!

So make sure you’re using Rectangle, and drag a shape from the upper left corner of the canvas to the bottom right, covering the entire canvas. This is our background.

On that new layer in the Layers panel, double-click the colored square on the far left. Use the picker to choose a color for the background; I chose a dark grey (HSB: 0, 0, 15).

Let’s make a hole for the button to rest in. First, add a vertical and horizontal guide at the center of each axis. Since our switch is going to end up being 70 x 44px, set a vertical guide 35 pixels to the right and left of center, and two more guides 22 pixels above and below the horizontal center guide. Go to View > Rulers (Cmd+R) for help with lining everything up exactly.

Tip: Click and drag from the Ruler on either side to pull out a Guide. Hold Shift to force it to snap to the tickmarks along the ruler. If the increments between tickmarks are too big, zoom in for finer detail.

Draw a rounded rectangle with 1px radius inside these new guides. If you have View > Snap enabled as well as View > Snap To > Guides, the shape you draw should snap nicely into the corners of the guides you just set up. Handy!

Change this shape layer’s color (like you did above) to black and double-click an empty area on that layer in the Layers panel to open the Layer Styles dialog box. Click on Stroke at the bottom, and set it to 1px of black on the Outside. This will be the hole in which our switch toggles, and since we’ll building a lot of layers above it and the Backgound, let’s lock those layers so we don’t accidentally mess anything up.

Step 2: Make the Basic Switch Shapes

Using the guides, draw another 1px-radius rounded rectangle in the left half of the hole, but this time, let’s make it white, so it’s easier to see.

Now let’s zoom in for a bit, say, 300%. Switch to the Direct Selection tool (the white arrow cursor), and select the two rightmost points in the shape layer.

Delete those two points, then use the Pen tool to close the shape between the remaining two points. Hold down the Option key while you click on the two endpoints so they stay sharp corners without bezier handles.

Once the shape is closed again, move those points 1px right back to the center.

Tip: If you’re zoomed in, pressing the right arrow key to nudge the points won’t snap them to the next pixel. It will only move them a fraction of a pixel, depending on how far you’re zoomed in. For example, if you’re at 200%, each nudge will be one-half of a pixel. If you’re at 500%, one nudge equals one-fifth of a pixel. So check your zoom level and make sure to nudge the correct number of times. Otherwise, you’ll end up with shape perimeters lying between pixels, and that makes for fuzzy, anything-but-sharp lines. Bad bad bad.

So essentially, what we just did was create a rounded rectangle on the left half with sharp corners on the right. This is the flat, pushed down side of our toggle switch.

Copy that layer, flip it horizontally, then move it over to the right to mirror the first half. Try giving it a slightly darker grey color so you can tell it apart from the left side. This will be the angled, raised side of our toggle switch.

Select the two points in the top right of our angled side, and move them up 1 pixel. Same thing with the bottom two, but move them down.

Now move all four of those points left 3 pixels. This will give the illusion that the right side is flipped up in perspective. Also, let’s change the shape color to a light grey so we can tell it apart from the left side.

Next, we’ll use the pen tool (and some extra guides) to add a rhombus shape, which will imply depth on the side of our switch. Make sure this new shape layer is below the angled side and overlaps it. Also, let’s make its color darker than the right side to be more depth-y.

Alright, we’ve got our basic switch shape! Time to apply some layer styles.

Step 3: Light the Switch

We’ll start with the left side of the switch. Double-click its layer to bring up the Layer Styles dialog. Set the Gradient Overlay to a subtle dark grey ramp. I used (HSB: 0, 0, 40) to (HSB: 0, 0, 30).

Then set a similar style on the right side, but start slightly darker on top. I went from (HSB: 0, 0, 35) to (HSB: 0, 0, 30) for this.

In order to imply a rounded corner, we’ll try to create the illusion of a highlight on the top edge of the Depth shape. Set a Gradient Overlay with a light grey at the top (HSB: 0, 0, 40) that quickly fades to a darker grey (HSB: 0, 0, 25) and ends at an even darker grey (HSB: 0, 0, 18) at the bottom.

Use the Angle setting to tilt the gradient to 87 degrees so that it lines up with the angle at the top of the depth shape.

Step 4: Bevel the Edges

We want this switch to look three-dimensional, so let’s spice it up a bit and add a bevel around the edge. Start by duplicating the Flat Side layer.

Next, use the Rectangle tool in Subtraction mode to cut a hole out of the middle, leaving just a pixel width around the edge.

Change the existing Gradient Overlay to something more like this:

The HSB values for each of those points in the gradient from right to left (top to bottom) are: (0, 0, 50), (0, 0, 35), (0, 0, 30), (0, 0, 25), (0, 0, 20).

Next let’s do a similar thing to the right side, but this time, let’s cut out the hole from the middle using the Pen tool. Set up some guides for help snapping to the pixels.

Again, let’s change the gradient to some more like this:

Those HSB values are: (0, 0, 50), (0, 0, 44), (0, 0, 30), (0, 0, 20). Note the difference in their positions along the gradient compared to the bevel on the other side.

Alright, now we’ve got some beveled edges. Starting to look a little more like a physical object, eh? Let’s continue along this road and add a little more depth.

Step 5: Imply Depth

First, we’ll add another layer to the angled, right side of the switch to give it more dimension. Duplicate your Angled Side layer and drag it in the Layers panel to be above the Angled Side Bevel. I’m gonna rename this new layer “Angled Side Shadow”, clear its Layer Style, and lower its Fill to 0%.

Now double-click the layer and give it a new Gradient Overlay. This time, we’ll make both ends black and make our adjustment on the Opacity points above. Keep the left one at 100% and change the right one to 0%. Also, make sure to rotate the gradient’s Angle setting to 0 degrees. This will set the gradient to run horizontally instead of vertically (the default).

Back in the Layers panel, step down the Opacity of the layer until it looks more angle-y and dimension-y. 25% seemed to be the magic number for me.

Looking good! Let’s repeat this method to give the Depth shape some more dimension as well. Duplicate the Depth layer, clear the Layer Style, set Fill to 0%, and start a new Gradient Overlay from scratch. This time, we’ll want the darkness to run from right to left, so change the Angle setting to 180 degrees. You’ll also want to pull the transparent side of the gradient toward the middle, since the Depth shape is partially hidden under the Angled side shape.

Alright, almost there!

Step 6: Create the Glyphs

We’ve got a switch now, but it’s totally unlabeled. What are we switching back and forth? Let’s add a checkmark glyph to the left side and an X glyph to the right side.

I laid out some guides to help me draw this shape. Unlike before, however, I’ve intentionally positioned my guides on half-pixels. Usually, this would be bad, but if you want pointy corners on an angled shape like a checkmark, the best way to achieve it is by making sure the corners are dead center on a pixel. Sounds counter-intuitive, but you can see that it works.

Checkmark created! Let’s give this guy some glowiness. Add a Gradient Overlay, but make it a Radial one this time.

The green gradient I’m using is light in the center and slightly darker on the outside. I used the HSB values (120, 100, 100) and (120, 100, 75). That gives us this:

I used a similar method to create an X shape on the right side of the switch like so:

Okay, time to mess with its Layer Style. Since the X is recessed into the face of the switch, let’s give it a dark grey Color Overlay of (HSB: 0, 0, 25). And to sell that recessed look, add an Inner Shadow with the following parameters:

To further imply dimensionality, we’ll add a green Drop Shadow. This gives the impression that the edges of the X shape are beveled and reflecting some of the light cast by the glowing green checkmark. (If this looks kinda weird, don’t worry; we’ll do other things to sell this effect in a moment).

Step 7: Glows and Bounce Light

Our green checkmark is glowy-ish, but I’m not convinced. Let’s really sell the idea that there’s a light behind the button by adding a circle glow over the checkmark.

Use the Ellipse tool to create a circle shape centered over the checkmark, like this:

Lower the layer’s Fill percent to zero and add a Gradient Overlay that looks like this:

Reduce the layer’s Master Opacity to 25%, and you should end up with a nice glow over your checkmark.

Finally, let’s add a layer of bounce light to the right side of the switch. Bounce light is when a light source reflects (or bounces) off a nearby surface, changing the look of the surfaces around it. For example, on a bright, sunny day, someone standing on grass will have a slight green bounce light under their chin, which happens because the sunlight reflects off the green grass, picks up some of that color, and illuminates the person’s face from below.

Duplicate the Angled Side Shadow layer, move the duplicate above the original layer, and change the Gradient Overlay to green instead of black. I had to reduce the layer’s Master Opacity to 7% to keep it from being too strong.

Step 8: Add a Cast Shadow

This whole time, we’ve been rendering the switch under the assumption that there’s a global light directly above. In that case, the raise side of the would cast a shadow below it, so let’s create that shape now.

Use the Pen tool to draw a black triangular shape under the right side like this:

That shape is too sharp to be properly shadowy, so let’s fuzz out the edges by giving it a 3px black Outer Glow with a Normal blend mode.

Reduce the layer’s Master Opacity to 50% so it’s not so harsh. Let’s see what we’ve got now.

Tada!

That’s it! You’ve got a nice, dimensional toggle switch. Congrats :)

If you’ve been learning along the way, you should be able to create the opposite “Off” version of the switch. (Try duplicating all your layers and flip everything horizontally to get started.)

Thanks for reading this tutorial. I hope you’ve learned a little bit about shape layers and layer styles in the process of following along. Feel free to give the switch your own personal flair and send me your results. You can find me on twitter @marshallbock. Enjoy : )

Huge UI Collection Roundup


Today we are continuing our new series of User Interface Design. With the vastly rising popularity of mobile apps and mobile web design User Interface Design is now a huge area for Designers to become proficient in. In this quick article we will be going over some resources that I have found out there, both free and paid, on various sites.

View on Custom Power Designs