Sub topic 8
Decorating text with layer styles
This chapter covers how Photoshop's layer styles work on type layers, which ones you will use most often, and what goes wrong. It assumes you can create and format a type layer, work in the Layers panel, and know the difference between point text and paragraph text from earlier chapters.
What a layer style is
A layer style is a set of non-destructive effects attached to a layer. The effects render live from the layer's content. The text is not changed. If you edit the words, change the font, or alter the tracking, the effects follow.
Layer styles are the main way to add outlines, shadows, gradients and glows to text without leaving it editable-unfriendly. The type layer stays a type layer. A small fx badge appears on it in the Layers panel, and the effects are listed beneath the layer name.
You can open the Layer Style dialog in several ways:
- Click the fx button at the bottom of the Layers panel and choose an effect.
- Choose Layer > Layer Style and pick an effect.
- Double-click the layer's thumbnail area, away from the name. Double-clicking the "T" thumbnail selects the text instead.
The dialog lists effects on the left. A checkbox turns each effect on or off. Clicking the effect's name, not the checkbox, shows its settings on the right.
Effects used most often on text
| Effect | What it does | Typical text use |
|---|---|---|
| Stroke | Draws an outline around the letter shapes | Make text readable on a busy photo |
| Drop Shadow | Adds a soft shadow behind the text | Lift text off the background |
| Inner Shadow | Adds a shadow inside the letter edges | Make text look pressed into a surface |
| Outer Glow | Adds a halo around the letters | Neon looks, or separation on dark backgrounds |
| Bevel & Emboss | Simulates raised or recessed edges | Metal, plastic or stone effects |
| Color Overlay | Fills the text with a flat color | Recolor without changing the Character panel color |
| Gradient Overlay | Fills the text with a gradient | Colorful headlines, metallic fills |
| Pattern Overlay | Fills the text with a pattern | Textured fills |
Stroke
Stroke draws a line along the letter edges. The key settings are:
- Size: the width in pixels.
- Position: Outside, Inside or Center. Outside grows the letters. Inside keeps the original letter size but eats into the fill. Center splits the width across the edge.
- Fill Type: Color, Gradient or Pattern.
On thin or small text, Inside with a large size can swallow the whole letter. Use Outside for a clean outline. Sharp corners can produce spikes on a Center or Outside stroke, because the default join is mitered. Set Fill Type and Position first, then check the corners at 100% zoom.
Drop Shadow
The settings you will change most are:
- Opacity: how dark the shadow is. Values from 30% to 60% usually look natural.
- Angle: the light direction. Use Global Light keeps all effects on the document at the same angle. Turn it off for a single effect that needs its own direction.
- Distance: how far the shadow sits from the text.
- Spread and Size: Spread hardens the shadow edge. Size softens it. A large Size with zero Spread gives a diffuse shadow.
Gradient Overlay
Gradient Overlay replaces the visible fill. Click the gradient swatch to edit its stops. Set Style to Linear for most headlines and Angle to control the direction. Leave Align with Layer checked so the gradient spans the layer's bounds, and not the whole canvas. Check Reverse to flip the colors.
Overlay effects sit on top of the fill from the Character panel. If the overlay is at 100% opacity, the Character color is hidden, which confuses people who change the color and see nothing happen.
How effects stack
Photoshop renders effects in a fixed order. You cannot reorder them in the dialog. From top to bottom, the order is roughly:
- The layer's own fill (the Character color)
- Satin, Color Overlay, Gradient Overlay, Pattern Overlay
- Inner Shadow, Inner Glow, Bevel & Emboss
- Stroke
- Outer Glow and Drop Shadow, behind the layer
So a Stroke draws over overlays, and shadows always fall behind. If you need a different order, you have to convert the effects to layers or use a second type layer. Both are covered below.
Fill versus Opacity
The Layers panel has two sliders that look alike: Opacity and Fill.
- Opacity fades the whole layer, including its effects.
- Fill fades only the layer's own content. Effects stay at full strength.
Setting Fill to 0% on a type layer hides the letters but keeps a stroke, shadow or glow. This is the standard technique for outlined text, ghost text, and glass or etched looks. Note that some effects, such as Color Overlay and Gradient Overlay, are treated as part of the fill. Reducing Fill reduces them, too, in some blending cases. Test the result and do not assume.
Copying, reusing and managing styles
Once you have a look you like, there are several ways to reuse it:
- Copy and paste: right-click the layer and choose Copy Layer Style, then right-click another layer and choose Paste Layer Style. Pasting replaces any styles on the target.
- Drag: hold Alt (Windows) or Option (macOS) and drag the fx entry to another layer to copy it.
- Styles panel: with the layer selected, click the new-style button in the Styles panel (Window > Styles) to save the effects as a preset.
- Scale Effects: if you paste a style from a large layer onto small text, effect sizes do not shrink on their own. Use Layer > Layer Style > Scale Effects and enter a percentage.
Scaling matters when you resize a document. Effects are set in pixels. A 6 px stroke that looks right on a 1000 px wide image looks very heavy on a 300 px wide image.
Layer styles and text editing
Because the text remains live, you can:
- Retype the words and see the effects update.
- Change the font, size and tracking, with the effects tracking the new shapes.
- Warp the text. Effects follow the warped shape.
Transforming a type layer with Free Transform (Ctrl/Cmd + T) scales the text but not always the effects. Scale Effects is the reliable fix.
Common problems
- The shadow looks like a rectangle. The layer was rasterized or placed on a shape, or Fill and Opacity are interacting with a clipping mask. Check that the layer is still a type layer.
- The effect appears clipped at the edges. For paragraph text, effects such as glows are limited only by the canvas. Clipping usually means the glow extends past the document edge, or past a layer mask.
- Color changes in the Character panel do nothing. A Color Overlay or Gradient Overlay is active. Turn it off or lower its opacity.
- The outline looks too thick or too thin after resizing. Use Scale Effects.
- A style disappears after rasterizing. Rasterizing a type layer keeps the layer style, but you can no longer edit the text. Layer styles are not lost, but the text is now pixels.
- Text looks blurry with a shadow. Anti-aliasing and a soft shadow stack. Zoom to 100% before judging.
A worked example: outlined headline on a photo
Follow these steps to make a white headline with a dark outline and a soft shadow. They work on any image.
- Create a point text layer with the Type tool and enter a short headline. Set a bold font at about 120 px and a white color.
- Click the fx button and choose Stroke.
- Set Size to 6 px, Position to Outside, and the color to a dark navy.
- Click Drop Shadow in the left list. Set Opacity to 45%, Angle to 120 degrees, Distance to 8 px, Spread to 0% and Size to 12 px.
- Click OK.
- Retype the headline. Notice that both effects update.
- Open the Styles panel and save the look as a preset named "Headline outline".
Setting the same look by script
The Layer Style dialog is not covered by the basic text scripting properties. For a layer style, the usual approach is to record an Action while you apply the effect, then play the Action on other layers. This is simpler and safer than writing Action Manager code by hand.
Decision criteria
- Use layer styles when you want effects that stay live, remain editable, and follow text changes.
- Use a second duplicated text layer when you need an effect order Photoshop does not allow, such as a shadow over a stroke.
- Use Convert to Shape or a Smart Object only when you need to edit the effects as geometry, or apply filters. Those options are covered in a later chapter.
Exercise
A type layer has a white Character color and a Stroke effect. You set the layer's Fill to 0% and keep Opacity at 100%. What do you see, and what happens if you set Opacity to 0% instead?
Show answer
With Fill at 0%, the white letter fill disappears, but the Stroke remains fully visible, so you see an outline of the text. With Opacity at 0%, the whole layer is transparent, including the Stroke, so nothing is visible.
Exercise
You paste a layer style with a 10 px Stroke from a 4000 px wide poster onto a text layer in a 800 px wide banner. The outline looks far too heavy. Which command fixes this without opening each effect, and why does the problem occur?
Show answer
Use Layer > Layer Style > Scale Effects and enter a lower percentage, such as 20%. Effects are measured in pixels, so a style made for a large document stays at the same pixel size when pasted onto a smaller one.