Market
Pricing
Sign inStart
Field GuideType and text
Type and text

3D text effect: extruded lettering done tastefully

Extruded type can look like a vintage sign or like a 2004 web banner. The difference is depth, direction and colour, and all three are easy to get right once you know the rules.

GradientlyVerified Gradiently account·October 1, 2026·5 min read
Cover: Chiffon Postcard · GR·H6FX·3G

The short version

  • A 3D text effect, or extrusion, gives flat letters depth by adding solid sides that run in one direction.
  • Extruded lettering looks tasteful when the depth is short, around 5 to 10 percent of the letter height, and the sides are a darker shade of the background.
  • Heavy, simple faces extrude well; thin, detailed or script faces turn into clutter.
  • In CSS, a 3D text effect is built by stacking many text-shadow layers, each offset one step further, with no blur.
  • Use extruded type for a few large words, such as a headline or a sign, never for sentences.
On this page
What makes extruded text look good or cheapChoosing depth, direction and colourHow to make a 3D text effect in CSSMaking extruded lettering step by stepExtruded type in Gradiently

A 3D text effect makes flat letters look solid by adding sides, as if each letter were cut from a block and seen slightly from an angle. Done tastefully, it uses a heavy face, a short depth of about 5 to 10 percent of the letter height, one consistent direction, and side colours taken from a darker tone of the background. Done badly, it uses gradients, glossy highlights, long depths and several directions at once. Keep it simple and extruded type looks like a confident sign rather than clip art.

What makes extruded text look good or cheap

Looks cheap

  • Depth longer than the letters are thick
  • Shiny highlights and bevels
  • Sides in a colour unrelated to the design
  • Perspective that makes letters lean away
  • Extrusion on a thin or script face
  • Several effects stacked on one word

Looks considered

  • Short depth, around 5 to 10 percent of the height
  • Flat, solid sides with no gloss
  • Side colour from a darker tone of the ground
  • One direction, usually down and right
  • A heavy, simple face with open shapes
  • Extrusion as the only effect

Extrusion has a long history in hand painted signs, circus posters and 1970s record sleeves. That history is why it reads as warm and a little nostalgic. Lean into that for cafés, ice cream, kids' brands, music and events. For a calm, minimal brand, it's usually the wrong voice; text effects helps choose one that fits.

Choosing depth, direction and colour

Depth

The sides should be shorter than the letter strokes are wide. On a 160 px headline, a depth of 8 to 16 px reads as solid; 40 px starts to look like a long shadow, which is a different style. Small text can't carry depth at all, so keep extrusion to headline sizes.

100 px5 to 8 px

Feels like

A subtle lift off the page
160 px8 to 16 px

Feels like

A painted sign
240 px14 to 24 px

Feels like

A bold poster or packaging line
Any size, depth over 20%

Depth

Long

Feels like

A long shadow: a separate, graphic style
Headline sizeDepthFeels like
100 px5 to 8 pxA subtle lift off the page
160 px8 to 16 pxA painted sign
240 px14 to 24 pxA bold poster or packaging line
Any size, depth over 20%LongA long shadow: a separate, graphic style
Depth as a share of the letter height decides whether extruded text reads as solid or as a shadow.

Direction

Pick one direction and keep it across every design. Down and to the right is the most natural, because we tend to read light as coming from above and to the left. Straight down feels like stacked blocks. Up and to the left feels unusual, which can work for a single statement but tires quickly.

Colour

Three tones do all the work: the letter face, the side and the ground. The face should contrast strongly with the ground. The side sits between them, usually a deep shade of the ground or of the face. Taking it from the background makes the extrusion feel lit by the same light.

Two sets. Cream letters with rust sides on orange; or cream letters with deep blue sides on sky. In each, the side is a darker tone of the ground.
Scoops.
Twelve flavours, made here every morning

One fat word and a warm ground: the kind of headline extruded lettering suits.

Saturday 2pm
Block party
Food trucks, DJs and a bouncy castle
Gradiently · @gradiently

Two short words on a square post. Any more and the depth starts to crowd the layout.

How to make a 3D text effect in CSS

CSS has no extrude property, but stacked shadows do the job. Each layer of text-shadow is a solid copy of the letters, offset one pixel further, with no blur. Stack enough of them and the copies merge into solid sides. A final, softer shadow underneath grounds the letters on the page.

css
.extruded {
  font-family: "Archivo Black", system-ui, sans-serif; /* load it from Google Fonts */
  font-size: 10rem;
  line-height: 1;
  color: #fff1d6;
  text-shadow:
    1px 1px 0 #c2410c,
    2px 2px 0 #c2410c,
    3px 3px 0 #c2410c,
    4px 4px 0 #c2410c,
    5px 5px 0 #c2410c,
    6px 6px 0 #c2410c,
    7px 7px 0 #c2410c,
    8px 8px 0 #c2410c,
    10px 12px 10px rgb(67 20 7 / 0.35);
}
Eight solid layers make an 8 px extrusion down and to the right, and a soft final shadow sets it on the ground.

Writing dozens of layers by hand is tedious. A few lines of JavaScript produce the list for any depth, direction and colour, which you can paste into your stylesheet.

js
// Build a text-shadow value for an extrusion
function extrude(depth, color, dx = 1, dy = 1) {
  const layers = [];
  for (let i = 1; i <= depth; i++) {
    layers.push(`${i * dx}px ${i * dy}px 0 ${color}`);
  }
  return layers.join(", ");
}

console.log(extrude(12, "#1e3a8a"));        // down and right
console.log(extrude(10, "#1e3a8a", 0, 1));  // straight down
Paste the output into text-shadow. Use pixel steps of one so the sides stay solid.

Keep extruded headings as real text on a website, so they stay searchable, selectable and readable by screen readers. The shadows don't change the measured contrast between letter and background, so make sure the face colour passes on its own. If you prefer a lighter, graphic version, a single hard shadow with no layers is covered in text shadows; for true 3D with lighting and rotation, you are into WebGL territory, which shader gradients introduces.

Making extruded lettering step by step

  1. 1

    Choose two to four words

    A shop name, a single offer, an event title. Extrusion needs space around it.

  2. 2

    Set them in a heavy face

    A black weight sans or slab, or a soft retro serif. Retro fonts suggests a few with the right warmth.

  3. 3

    Pick face, side and ground colours

    Strong contrast between face and ground; the side a darker tone of the ground.

  4. 4

    Add depth in one direction

    Start around 6 percent of the letter height, down and right. Increase only if it still looks flat.

  5. 5

    Keep everything else flat

    Details, dates and prices in a plain, solid sans with no effect.

Extruded type in Gradiently

Extrude is one of Gradiently's Lettering treatments: it gives any text in the Studio solid depth down and to the right, with sides drawn in the Mark's own colours and a dial for depth, so there are no layers to stack. The Mark behind the design moves its calmest area behind the words, so extruded lettering stays legible however the background shifts across the frame. The outline text effect and other treatments are in the same menu if extrusion turns out to be too loud for the message.

Design with a living gradient

Posts, stories, slides and banners in every size, with text that always reads.

Start designing, free

Questions people ask

How do I make 3D text in CSS?

Stack several text-shadow layers, each offset one pixel further in the same direction with no blur, in a darker colour than the letters.

What font works best for a 3D text effect?

Heavy, simple faces such as a black weight sans, a slab or a soft retro serif. Thin and script faces turn messy when extruded.

How deep should extruded text be?

Around 5 to 10 percent of the letter height. Much deeper and it reads as a long shadow instead.

Why does my 3D text look cheap?

Usually too much depth, glossy highlights or side colours unrelated to the design. Use short, flat sides in a darker tone of the background.

Share this guide

Written by GradientlyVerified Gradiently account

The team behind Gradiently, a design tool built around Marks: living gradients that make everything you design look like yours.

See our profile

On this page

What makes extruded text look good or cheapChoosing depth, direction and colourHow to make a 3D text effect in CSSMaking extruded lettering step by stepExtruded type in Gradiently

Share this guide

Next in Type and text

Retro text effects: riso, double and trail lettering

Keep reading

All Type and text guides
Type and text

Text effects that don’t look dated: outline, extrude, echo

5 min read

Most text effects look dated because they are applied to everything, at full strength, with no reason. Used on one word, in the right weight and colour, they are some of the most expressive tools in type.

Type and text

Outline text effect: hollow lettering that still reads

6 min read

Hollow letters look sharp on a poster and vanish on a phone more often than any other effect. Here is how to choose the face, the stroke and the layout so they hold, with CSS that works in every browser.

Type and text

Retro text effects: riso, double and trail lettering

5 min read

You don't need a filter pack to make type feel vintage. Three treatments, borrowed from cheap printing, offset posters and old title sequences, do almost all of the work.

Find the look that’s only yours.

Every Mark is a living background with one owner. Try an unclaimed Mark, and claim yours when it feels right.

Start designing

Check a certificate

Type a certificate number or a Mark’s code to see who owns it.

Works with ChatGPT and Claude

Ask your AI for a design. It makes it in your Mark, ready to edit.

ChatGPTClaude
How to connect

Product

  • Market
  • Explore
  • Pricing
  • Certificates

Learn

  • Field Guide
  • Help centre
  • What’s new

Developers

  • Overview
  • ChatGPT and Claude
  • API reference
  • API keys

Company

  • About
  • Contact us
  • Sign in

Legal

  • Terms
  • Privacy
  • Refunds
  • Mark protection
  • Cookies
  • All policies
Move through the letters. Each one wears a real Mark.Touch a letter to see its Mark.One name. Ten Marks inside it.
© 2026 Gradiently