Pages

Subscribe:

Ads 468x60px

Monday, March 12, 2012

how to use Themes and Swatches in Jquery mobile

In this jquery mobile web programming tutorial we will learn that how we can use different themse and swatches in jquery mobile application .


In jQuery Mobile, a “theme” is a unified visual design applied across the interface. In
practical terms, a theme specifies everything from fonts to drop shadows to colors.


In keeping with the idea of separating layout from color and texture, a jQuery Mobile
theme can have multiple “swatches.” A swatch is a unified color concept governing the
colors of background, text, shadows, iconography, etc.


The default jQuery Mobile theme includes five swatches (called a, b, c, d, and e). Each
swatch provides different visual emphasis, with swatch a being the most visually emphatic
(typically white text on a black background), and swatch d being much softer.
Swatch e is an “error” swatch.

jQuery Mobile

Default Swatch

Some sample form elements and buttons:

O'Reilly

jQuery Mobile

Swatch A

66 | Chapter 4: Theming jQuery Mobile

Some sample form elements and buttons:

O'Reilly

jQuery Mobile

Swatch B

Some sample form elements and buttons:

O'Reilly

jQuery Mobile

Swatch C

Some sample form elements and buttons:

Yes 68 | Chapter 4: Theming jQuery Mobile No Cancel

O'Reilly

jQuery Mobile

Swatch D

Some sample form elements and buttons:

O'Reilly

jQuery Mobile

Swatch E

Some sample form elements and buttons:

O'Reilly

No comments:

Post a Comment