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: textColor

Mark

Usage

Description

The textColor mark sets foreground color styling for text.

Example

Java

1
2
3
4
5
6
    p(
        text("Hello "),
        text("world").textColor("#00FF00"),
        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": "textColor",
                    "attrs": {
                        "color": "#00FF00"
                    }
                }
            ]
        },
        {
            "type": "text",
            "text": "!"
        }
    ]
}

Compatibility

Products

ConfluenceJira

Nodes

Marks

code

Structure

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

Rate this page: