The main content area of a page (container with the data-role="content"
attribute) should be themed by adding the data-theme
attribute to the data-role="page"
container to ensure that the background colors are applied to the full page, regardless of the content length. (If you add to the data-theme
to the content container, the background color will stop after the content so there may be a gap in color between the content and fixed footer.)
<div data-role="page" data-theme="a">
To set the color of the collapsible header, add the data-theme
attribute to the collapsible container. The icon and body are not currently themable through data attributes, but can be styled directly with custom css.
<div data-role="collapsible" data-collapsed="true" data-theme="a">
A theme swatch on content & collapsible
This is a paragraph that contains strong, emphasized and linked text. Here is more text so you can see how HTML markup works in content. Here is more text so you can see how HTML markup works in content.
I have data-theme
attribute set manually on my container to set the color to match the content block I'm in.
B theme swatch on content & collapsible
This is a paragraph that contains strong, emphasized and linked text. Here is more text so you can see how HTML markup works in content. Here is more text so you can see how HTML markup works in content.
I have data-theme
attribute set manually on my container to set the color to match the content block I'm in.
C theme swatch on content & collapsible
This is a paragraph that contains strong, emphasized and linked text. Here is more text so you can see how HTML markup works in content. Here is more text so you can see how HTML markup works in content.
I have data-theme
attribute set manually on my container to set the color to match the content block I'm in.
D theme swatch on content & collapsible
This is a paragraph that contains strong, emphasized and linked text. Here is more text so you can see how HTML markup works in content. Here is more text so you can see how HTML markup works in content.
I have data-theme
attribute set manually on my container to set the color to match the content block I'm in.
E theme swatch on content & collapsible
This is a paragraph that contains strong, emphasized and linked text. Here is more text so you can see how HTML markup works in content. Here is more text so you can see how HTML markup works in content.
I have data-theme
attribute set manually on my container to set the color to match the content block I'm in.