Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Sep 1, 2026

ADF mark: backgroundColor

Mark

Usage

Description

The backgroundColor mark sets background color styling for text.

Example

Java

1
2
3
4
5
6
    p(
        text("Hello "),
        text("world").backgroundColor("#006600"),
        text("!")
    )

ADF

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
{
    "type": "paragraph",
    "content": [
        {
            "type": "text",
            "text": "Hello "
        },
        {
            "type": "text",
            "text": "world",
            "marks": [
                {
                    "type": "backgroundColor",
                    "attrs": {
                        "color": "#00FF00"
                    }
                }
            ]
        },
        {
            "type": "text",
            "text": "!"
        }
    ]
}

Compatibility

Products

ConfluenceJira

Nodes

Marks

code

Structure

  • type - backgroundColor
  • attrs
    • color - string matching /^#[0-9a-fA-F]{6}$/

Rate this page: