How to Use GIMP Long Shadow Filter for Flat Design

This guide provides a straightforward walkthrough on using GIMP's built-in GEGL Long Shadow filter to create clean, modern flat design graphics. You will learn how to prepare your visual assets, access the filter, configure crucial shadow parameters like angle, length, and style, and integrate the final result into typical flat design containers like badges and app icons.

Preparing Your Subject Layer

  1. Open GIMP and create a new project with your desired canvas dimensions and background color.
  2. Place the subject icon, text, or vector graphic on its own transparent layer above the background.
  3. Ensure the layer boundaries fit the subject snugly by selecting the layer and navigating to Layer > Crop to Content.

Accessing the Long Shadow Filter

  1. Select your graphic or text layer in the Layers panel.
  2. Go to the top menu and select Filters > Light and Shadow > Long Shadow.
  3. Ensure the Preview checkbox is enabled in the dialog window to see adjustments in real time.

Configuring Long Shadow Settings for Flat Design

Flat design relies on clean angles, uniform lighting, and specific color tones. Adjust the following settings within the Long Shadow dialog:

  • Style: Choose Finite for a classic, contained flat shadow, or Fading for a softer gradient falloff. Infinite extends the shadow to the canvas edge.
  • Angle: Set the angle to 45.00° or -45.00° (135.00°). The 45-degree downward angle is the universal standard for flat design aesthetics.
  • Length: Adjust the shadow length based on your asset size. For contained icons, a length of 50 to 200 pixels usually maintains clean proportions.
  • Color: Click the color box to set the shadow color. Instead of pure black, use a darker, saturated shade of your background color, or use black (#000000) and lower the opacity in the color picker for a natural blend.
  • Composition: Set this to Shadow only if you want the shadow generated on a separate layer, or keep it on Shadow plus image to cast directly behind your existing graphic.

Click OK once you are satisfied with the preview.

Confining Shadows to Badges or Containers

Flat design assets often feature icons enclosed in circular or rounded-rectangle badges where the shadow does not spill outside the container:

  1. Create your container shape (e.g., a circle) on a layer beneath your icon.
  2. Right-click the container layer in the Layers panel and choose Alpha to Selection.
  3. Select the layer containing your icon and generated long shadow.
  4. Go to Select > Invert and press Delete on your keyboard to clip away any excess shadow extending past the container edges.
  5. Clear the selection by pressing Shift + Ctrl + A.