- Newest
- Most votes
- Most comments
Yes, you can define the background color for text boxes in Amazon QuickSight using HTML-like markup embedded within your CloudFormation template.
As shown in your example, the background color is defined using the background-color attribute within the <inline> tag in the Content property of the SheetTextBox. The format follows this pattern:
<text-box>
<block align="center">
<inline background-color="#ff0000">
<b>Example Text Box</b>
</inline>
</block>
</text-box>
When creating a QuickSight Analysis or Template using CloudFormation, you can include this HTML-like markup in the Content property of the SheetTextBox. The Content property accepts a string with a maximum length of 150,000 characters, giving you plenty of room to define complex text formatting.
To implement this in your CloudFormation template, include the TextBoxes section with the properly formatted Content property. The SheetTextBoxId is required and must be unique within the context of your analysis or template.
This approach allows you to define text box styling, including background colors, as part of your Infrastructure as Code deployment.
Sources
AWS::QuickSight::Analysis SheetTextBox - AWS CloudFormation
AWS::QuickSight::Template SheetTextBox - AWS CloudFormation
Relevant content
- asked 2 months ago
- asked 5 years ago

This does not answer the initial question. This provides the 'red' background color for the text, but not the 'green' background color for the text-box.