# Design overlays (/docs/organisers/overlays/designs)

Turn your own Photoshop design into a live, animated browser source for OBS and vMix.

Design overlays let you bring your own graphics to the broadcast. You import a
Photoshop file, put live match data on its layers, give it an entrance and an
exit, and add the result to OBS or vMix as a browser source. Strave keeps the
team names, scores, and logos current while you're on air.

<Callout type="info">
Design overlays are in preview. Animation and live data get new features
often, so check this page again when something looks new.
</Callout>

## Before you start [#before-you-start]

Your organisation's plan sets how many designs you can keep. All events of the
organisation share the same designs.

| Plan                        | Designs   |
| --------------------------- | --------- |
| Free                        | 1         |
| Standard                    | 5         |
| Professional and Enterprise | Unlimited |

Prepare the Photoshop file with these limits in mind:

- The canvas can be up to 3840 × 2160 pixels and have up to 400 layers.
- Keep each piece of live data on its own text or image layer.
- Name your layers. The editor shows the Photoshop names.
- Type `{team.a.name}` or another live data token into a text layer in
  Photoshop, and the layer starts with live data after the import.

## Import a Photoshop file [#import-a-photoshop-file]

Your browser reads the file. The original file never leaves your computer;
Strave stores only the layer images and the layer data.

1. Open your event and go to **Overlays**.
2. In **Your designs**, select **Import Photoshop file**.
3. Pick a `.psd` file.

The editor opens when the import finishes. It has three parts: **Layers** on
the left, the canvas in the middle, and **Properties** on the right. You can
drag the dividers. With no layer selected, **Properties** shows the facts of
the import: size, layer count, fonts, and warnings.

Layers that depend on their neighbours, such as clipping masks, adjustment
layers, and groups with effects, are merged into one fixed image. They show a
stack icon in the **Layers** panel and can still be animated as one piece.

## Design in the editor [#design-in-the-editor]

You can also design without Photoshop, or add to an imported file:

- In **Your designs**, select **New blank design** and pick a canvas size
  (Full HD, QHD, 4K, or vertical).
- Select **+** in the **Layers** panel, or use the toolbar at the bottom of the
  canvas, to add text, a code layer, a rectangle, an ellipse, or an image from
  a file. You can also drop image files on the canvas. PNG, JPG, WebP, GIF, and
  SVG files are stored as PNG, at most 3840 pixels on the long side.
- **Properties** sets the font, colours, fill and stroke, corner radius, and in
  **Effects** a drop shadow (for any layer) and an outline (for text).
  **Align** lines up the selected layers, or one layer with the canvas.
- The eyedropper in the toolbar takes a colour from the canvas for the
  selected text or shape.

Uploaded images count toward the storage of your organisation and are
deleted with the design.

## Live data [#live-data]

Live data replaces the content of a layer with match data while you're on air.
The canvas previews the event's live match, or the test match when no match is
on air.

You can add live data in three ways:

- Select a layer and select **Connect live data** in **Properties → Live
  data**. The list shows the value of the preview match next to each entry.
  This keeps the layer's place and style.
- Select **Live data** in the toolbar at the bottom of the canvas. Drag an
  entry onto a layer to connect that layer, or onto an empty place to add a
  new layer.
- Accept a suggestion. When the name of a layer says what it shows, for
  example `team_a_score` or `Home Logo`, **Properties** shows it under
  **Suggested live data** while no layer is selected. Select **Connect all**
  to connect all of them at once.

Live layers have a violet mark in the **Layers** panel. To see the data of
every live layer on the canvas at once, select the eye button in the toolbar.

A live text layer has a field for the text to show when there is no data, for
example `TBD` before a match has teams.

Text layers can mix plain text and tokens, for example `Map {map.name}`.

| Token                 | Shows                           |
| --------------------- | ------------------------------- |
| `{team.a.name}`       | Name of team A                  |
| `{team.b.name}`       | Name of team B                  |
| `{team.a.score}`      | Maps won by team A              |
| `{team.b.score}`      | Maps won by team B              |
| `{match.score}`       | Series score, for example `1-0` |
| `{match.bestOf}`      | Number of maps in the series    |
| `{map.name}`          | Current map                     |
| `{round.name}`        | Round of the match              |
| `{stage.name}`        | Stage of the match              |
| `{event.name}`        | Event display name              |
| `{organisation.name}` | Organisation name               |

Image layers can show the logo of team A, team B, or your organisation. A
logo keeps the size of its box and fits inside it.

### Stats, code layers, and rules [#stats-code-layers-and-rules]

The live data list also has stats: team kills, K/D and rating in the live
match, the best player of each team, and the best players and teams of the
stage and the whole tournament, plus the standings.

For more, use expressions:

- Select `</>` in the canvas toolbar to add a **code layer**, a text layer with
  an expression such as `{match.teams.a.name | upper}`. Every text layer
  accepts expressions in **Properties → Text**.
- In **Properties → Rules from data**, set **Visible when** to show a layer
  only in some cases, for example `match.bestOf >= 3`. Text colours, shape
  fills, and images can also come from data.
- Select a group and use **Properties → Repeat** to draw it once per list item,
  for example once per map of the veto or once per player of a leaderboard.

Read [Design overlay expressions](/docs/organisers/overlays/expressions) for
the language and every data path.

## Animation [#animation]

Animation decides how the graphic comes on air, how it goes off air, and how a
layer reacts when its data changes. Each of these is a phase:

- **In** plays when the graphic goes on air and ends in your layout.
- **Out** starts from your layout and plays when the graphic goes off air.
- **On data change** plays on a live layer when its text or image changes, for
  example when a score goes up.

### Animate the whole overlay [#animate-the-whole-overlay]

With no layer selected, **Properties** shows **Animate the whole overlay**.
Point at a look to see it on the canvas, then select it. Every layer gets an
entrance: backgrounds first, then images, then text. Every layer goes out in
reverse, and live layers react when their data changes.

### Animate selected layers [#animate-selected-layers]

1. Select one or more layers.
2. In **Properties → Animation**, select the button next to **In**.
3. Point at a tile to see the animation on your own layers, then select it.
4. Set the direction, the motion feel, the length, and the delay.

**Out** is **Reverse of In** by default: the layers leave the way they came,
and the last layer in goes out first. Pick another tile to give **Out** its
own animation. When you select several layers, they start one after the
other; **Stagger** sets the time between them.

The **Animation** section also has **Copy animation** and **Paste animation**
to give other layers the same motion.

### Test the graphic [#test-the-graphic]

The bar over the canvas plays the graphic as it plays on air:

- **Play In** and **Play Out** play one phase.
- **Full run** plays **In**, adds a point to team A, and plays **Out**.
- **+ Team A** and **+ Team B** change the score, so you see **On data
  change**.
- The test data list shows long team names, missing logos, overtime, and a
  match without teams.
- The buttons on the right change the canvas background.

Nothing in this bar changes your design.

### Fine-tune in the timeline [#fine-tune-in-the-timeline]

The timeline bar under the canvas shows the phases and **Play preview**. Open
it with the arrow on the right, or with **Edit keyframes** in **Properties**.

- Each animated layer has a bar. Drag the bar to change the delay, and drag
  its right edge to change the length.
- Open a layer with its arrow to see a line per property: opacity, position X
  and Y, scale, rotation, wipe, and blur.
- Drag a keyframe to change its time. Keyframes snap to 10 milliseconds.
- Select a keyframe to set its exact time, value, and easing in
  **Properties**. Press Backspace to delete it.
- Right-click a bar, a property, or a keyframe for more actions.

A change to a keyframe makes the animation of that layer **Custom
keyframes**. A new tile replaces it.

Values are offsets from your layout. If you move a layer after you animate it,
the animation moves with it.

### On air [#on-air]

The browser source waits until its images and fonts are loaded, then plays
**In**. A browser source that reconnects shows the graphic without
playing the entrance again.

<Callout type="info">
Triggering **Out** from Stream Manager is in development. Until then, hide the
browser source in your broadcast software to take a graphic off air.
</Callout>

## Publish and add to your broadcast [#publish-and-add-to-your-broadcast]

The editor saves every change as a draft. Your browser sources keep showing
the published version until you select **Publish**, so you can work on a
design during a show.

1. Select **Publish** in the editor.
2. Select **OBS browser source** and then **Copy URL**. The popover also
   shows the canvas size, and a warning when you have changes that are not
   published.
3. In OBS or vMix, add a browser source with that URL and that size.

## Next steps [#next-steps]

- [Design overlay expressions](/docs/organisers/overlays/expressions)
- [Stream Manager](/docs/organisers/overlays/stream-manager)