I haven't written any Photoshop tutorials for a while. Today I'm going to share a simple tutorial on how to create reusable background patterns with Photoshop and CSS. I learned this trick from designing WordPress themes. The trick is to create one reusable transparent PNG background and use CSS background-color property to create various color skins. It is particularly useful for creating customizable and dynamic templates (see demos).
What is so cool about this?
With transparent pattern image, users can easily customize the background color by altering the hex color.

Photoshop Trick: Extracting Pattern
This Photoshop trick works on most pattern images. For this demonstration, I'm going to use a tiled pattern image below. Follow the steps below to extract the pattern from the image. You will learn how to use Photoshop Channels to create selection.

Step 1
First you have to turn the image layer to black & white (go to Image > Adjustments > Destaturate). Then go to Image > Adjustments > Levels. Slide the: shadow, midtone, and highlight stopper to adjust the level. The goal here is to make the transparent area completely white.

Step 2
Now you should have a black & white pattern. Go to Image > Adjustments > Invert (or press Cmd + I for shortcut). Select all and copy the pattern. Go to the Channels palette, add a new Channel and then paste the pattern into the Channel layer. Remember: the white pixel in the Channel layer will be the selection.

Step 3
Go back to the Layers palette. Create a new layer. Go to Selection > Load Selection and select the Channel that you've just created in the previous step. Then fill the selection with a solid color (eg. black).

Shortcut tip for loading the Channel selection: hold down the Cmd key and click on the Channel layer thumbnail. Learn more Photoshop shortcuts here.
Opacity
To control the instensity or the darkness of the pattern, adjust the layer's opacity.

Final (see demos)
Save the final pattern as a transparent PNG file. Now you may use CSS to easily change the background color to any hex code.
.pattern {
background-image: url(pattern.png);
background-color: #666;
}
Qutehue web design & development Studio
Really nice demos..
Web Design company India
Nice tutorial. That pattern reminds me of my grandparents wallpaper. ;)
Very nice collection for web design.
Awesome! Very cool, thanks for posting!
a really nice trick in using transparent background. Never thought about it…
I love this tutorial but I was wondering what would be the best way to make this a background pattern that would keep repeating itself as you scroll down a website? I’d be afraid the lines wouldn’t match and you’d see a difference between each repeat.
I don’t think you’d want that all over your website, though : / That would be really overkill, unless you’re going for the “grandma’s kitchen wall” effect! But if you look at the picture, there are only two symbols repeated and all of their respective bits and pieces are present in the selection, so it’s just a matter of putting the puzzle back together, then cropping carefully and setting the background to repeat.
Very nice. i love simple stuff to work with.
where can i find other pattern in photoshop?
wow, this is such a nice trick! very impressive!
I am a newbie in photoshop and your tutorial helped me in becoming close to pro at creating beautiful templates.Thanks a lot.
Although still a struggle, I finally might get this one to work properly!! Thanks for link to shortcuts as well that’s a nice bonus.
kwel!!! thanks for sharing!!! :D nice work
nice one thanks for sharing it
Photoshop looks always very difficult to me. I am little confused how to start.
This is really cool. This is something that we can be used for website owners who like to make color changes to their site but still maintain their companies branding.
Awesome! thank you for sharing
Great read. thanks for this!
Realy impressive design
The second demo pattern is great, a good background makes a website more appealing and attractive.