From 362cab5343f828d9b84fb69f660c6524098a4fdd Mon Sep 17 00:00:00 2001
From: Maurice Gottlieb jQuery Mobile has a rich theming system that gives you full control of how buttons are styled. When a link is added to a container, it is automatically assigned a theme swatch letter that matches it's parent bar or content box to visually integrate the button into the parent container, like a chameleon. So a button placed inside a content container with a theme of "a" (black in the default theme) will be automatically assigned the button theme of "a" (charcoal in the default theme). Here are examples of the button theme pairings in the default theme. All buttons have the same HTML markup: jQuery Mobile has a rich theming system that gives you full control of how buttons are styled. When a link is added to a container, it is automatically assigned a theme swatch letter that matches its parent bar or content box to visually integrate the button into the parent container, like a chameleon. So a button placed inside a content container with a theme of "a" (black in the default theme) will be automatically assigned the button theme of "a" (charcoal in the default theme). Here are examples of the button theme pairings in the default theme. All buttons have the same HTML markup: Button can be manually assigned any of the button color swatches from the theme to add visual contrast with the container they sit inside by adding the Buttons can be manually assigned any of the button color swatches from the theme to add visual contrast with the container they sit inside by adding the Here are 4 buttons with icons that have a different swatch letter assigned via the Here are 5 buttons with icons that have a different swatch letter assigned via the Theming buttons
Theming
+ Theming buttons
- A swatch
ButtonB swatch
ButtonTheming
E swatch
ButtonAssigning theme swatches
- data-theme attribute on the button markup and specifying a swatch letter. data-theme attribute on the button markup and specifying a swatch letter.
-
<a href="index.html" data-role="button" data-theme="a">Theme a</a>
data-theme attribute. data-theme attribute.