---
title: CTA banner
description: Use the CTA banner component to highlight and create urgency around user actions.
keywords: ['call to action', 'banner', 'conversion', 'highlight', 'urgent']
---

## Anatomy

![An image showing the CTA banner anatomy with a heading, a description and a button group.](https://github.com/primer/brand/assets/6951037/a33f3b89-1a4d-4bd3-8533-99b0cd2275e8)

- Heading: The main title of the CTA banner. It should be short and concise.
- Description: Short text that extends the information provided by the heading.
- Button group: The call to actions available to users

## Usage

Use the CTA banner to draw attention around the main user actions. The CTA banner should be used sparingly and is typically placed at the bottom of the page to close the user journey,
make a short summary of the page, and to persist the main actions. The CTA banner can also be used between other sections on lengthy pages.

The CTA banner can include primary and secondary actions. These actions are rendered as a [button group](../ButtonGroup/index.md) and follow the same guidelines as the button group component.

The actions used in a CTA banner are normally the same as the ones used on the [hero](../Hero/index.md) component on the top of the page. This repetition provides consistency and helps the user to remember what the main actions are.

**✅ Do**

![](https://github.com/primer/brand/assets/6951037/89acfdad-c39f-4613-9555-6a9661c53845)

_Use the CTA banner on the bottom of the page to close the user journey and reinforce the main actions._

**❌ Don't**

![](https://github.com/primer/brand/assets/6951037/f1bec42f-dad0-4eb2-80f9-83ef0a1310ad)

_Don't use the CTA early on in the user journey, use a hero or a section intro component instead._

## Options

### Align

The CTA banner elements can be aligned to the start or center of the page. By default, the CTA banner is aligned to the start of the page. Use the center alignment if context calls for it. E.g. Use the left alignment if there's a background image on the right side of the page or center align if the CTA banner is placed between two sections that are centered aligned to not break the visual flow.

### Styles

#### Background

The CTA banner uses a solid background color by default. This is the recommended style for most cases. However, the background can be removed to allow the content to blend with the background of the page.

**✅ Do**

![](https://github.com/primer/brand/assets/6951037/036f540a-b8f6-4ccb-8a1a-b3a27c265308)

_Use the background by default to ensure that the content is legible._

**❌ Don't**

![](https://github.com/primer/brand/assets/6951037/8bcc95cc-4d3b-49f5-a74d-f46062f690b5)

_Don't remove the background and keep the shadow, it will make the content hard to read._

Avoid using noisy or textured images that will make the content hard to read. Make sure that the combination of background and foreground guarantees compliance with WCAG contrast guidelines. Use an [online contrast checker](https://webaim.org/resources/contrastchecker/) or a [Figma plugin](https://primer.style/accessibility/tools-and-resources/#contrast-plugin) to test your contrast.

**✅ Do**

![](https://github.com/primer/brand/assets/912236/db46a0b4-5bf9-4024-8788-6227762510a9)

_Use background images or colors that guarantee optimal contrast between the background and the foreground._

**❌ Don't**

![](https://github.com/primer/brand/assets/912236/dfc50baa-9b2a-4dc5-8412-20548cf2e7ed)

_Don't use images that interfere with the legibility of the content._

#### Shadow

The CTA banner has a shadow around the component to give it a sense of depth and separation from the background.

**✅ Do**

![](https://github.com/primer/brand/assets/912236/798a3355-252c-4745-8692-267c9a16d45f)

_Remove the shadow and the background to diminish the sense of depth and separation from the background or to allow
the content to blend with the background of the page._

**❌ Don't**

![](https://github.com/primer/brand/assets/912236/336f8e27-44e9-48a5-b308-a9686aa03484)

_Don't use the shadow and the background together if you want the content to blend with the background and the
sections that surround the CTA banner._

#### Border

The CTA banner can render a border around the component giving further separation between the foreground and background. This is especially useful when there is no shadow present on the background.

**✅ Do**

![](https://github.com/primer/brand/assets/912236/583528ad-e3ab-4bf1-a34a-e0f9bf17d0a1)

_Use the border only when there is no shadow present on the background._

**❌ Don't**

![](https://github.com/primer/brand/assets/912236/845ee118-3575-4db8-b7ea-1ac248678005)

_Don't use the border when there is a shadow present on the background. The shadow will provide enough separation
between the foreground and background._

## Related components

- [BreakoutBanner](../BreakoutBanner/index.md): To break up content on longer pages and highlight important information.
- [Hero](../Hero/index.md): To display a large heading and a description with a button group.
- [Section intro](../SectionIntro/index.md): To provide a title, description and a link to a new section in the page.
- [River](../River/index.md): To display a list of content items with a visual asset.
