Skip to content

Create an in-app message template

Use Templates > In-App Message Templates to build a reusable library of in-app and in-browser message layouts. You can save designs from the drag-and-drop editor or create Color Profile and CSS Template assets for the traditional editor.

Step 1: Open In-App Message Templates

In the Braze dashboard, go to Templates > In-App Message Templates.

Step 2: Choose how to create a template

How you add a template depends on your goal:

Step 3: Manage your templates

On Templates > In-App Message Templates, filter, search, or open a template to edit. You can duplicate and archive templates like other template types. For an overview of template and media workflows, see Templates.

You need permission to access templates. For example, grant “Access Campaigns, Canvases, Cards, Content Blocks, Feature Flags, Segments, Media Library, Locations, Promotion Codes, and Preference Centers” or the equivalent granular permission to view or edit in-app message templates. For details, see User permissions.

Create color profiles and CSS templates

You can edit existing templates or select + Create and choose Color Profile or CSS Template to create new templates for your in-app messages.

Color profile

You can customize the color scheme of your message template by either entering a HEX color code or by selecting the colored box and choosing a color with the color picker. If you want this profile applied by default when you create new in-app messages in the traditional editor, select Use as default profile.

Select Save Color Profile when you’re finished.

The in-app message color profile template editor.

CSS template

You can customize a complete CSS template for your web modal in-app message.

Name and tag your CSS template, then choose whether it will be your default template. You can write your own CSS in the provided space. This space is already pre-filled with the CSS shown in your message preview, and you can adjust it to meet your needs.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.ab-message-header, .ab-message-text {
  color: #333333;
  text-align: center;
}

.ab-message-header {
  font-size: 20px;
  font-weight: bold;
}

.ab-message-text {
  font-size: 14px;
  font-weight: normal;
}

.ab-close-button svg {
  fill: #9b9b9b;
}

.ab-message-button {
  border: 1px solid #1b78cf;
  font-size: 14px;
  font-weight: bold;
}
.ab-message-button:first-of-type {
  background-color: white;
  color: #1b78cf;
}
.ab-message-button:last-of-type, .ab-message-button:first-of-type:last-of-type {
  background-color: #1b78cf;
  color: white;
}

.ab-background {
  background-color: white;
}

.ab-icon {
  background-color: #0073d5;
  color: white;
}

.ab-page-blocker {
  background-color: rgba(51, 51, 51, .75);
}

You can edit everything from the background color to font size and weight, and more.

Modal with CSS (web only)

If you choose to use a web-only Web Modal with CSS message, you can apply your own template or write your own CSS in the provided space. This space is already pre-filled with the CSS shown in your message preview, but you can adjust it to meet your needs.

If you choose to apply your own template, select Apply Template and choose from the in-app message template gallery. If you don’t have any options, you can add a CSS template using the CSS template builder on Templates > In-App Message Templates.

New Stuff!