In jQuery Mobile, there are themes and swatches. Both sounds the same. What is the difference between these two?
Difference between Theme and Swatch
3.7k Views Asked by System.Data At
2
There are 2 best solutions below
0
Phill Pafford
On
This should help:
The theme system separates color and texture from structural styles that define things like padding and dimensions. This allows theme colors and textures to be defined once in the stylesheet and to be mixed, matched, and combined to achieve a wide range of visual effects.
and
Themes include multiple color "swatches"
Related Questions in JQUERY
- How to sort these using Javascript or Jquery Most effectively
- Ajax jQuery firing multiple time display event for the same result
- .hover() seems to overwrite .click()
- Check for numeric value with optional commas javascript
- Extending Highmaps Side Effect
- Array appending after each onclick and loop in javascript
- how can i append part of a table based on how many tr it has?
- Play multiple audio files in a slider
- Remove added set of rows
- Access property of an object of type [Model] in JQuery
- AJAX PHP - Reload div after submit
- proengsoft/laravel-jsvalidation ReferenceError: jQuery is not defined
- when a checkbox is checked how to display a different hidden element using javascript
- Get jquery error Uncaught RangeError: Maximum call stack size exceeded
- Removing only the closest thead on table filtering
Related Questions in JQUERY-MOBILE
- Get selected columns for a columntoggle table
- jQuery mobile - generating html dynamically not working with iframe
- jQuery mobile Multiselect doesn't update selected attribute
- Exit windows app confirmation button not working
- jquery mobile swipe stops if i swipe right on the first page and and left on the last page
- Jquery Mobile: Horizontal Buttons, fill container
- Cordova camera plugin not working in Android mobile but working in emulator
- how to parse a xml file using jquery and phonegap?
- pass input value with jquery does not work
- Photoswipe Custom Button
- why the input box is not disable while checking the check box?
- Display Mobile Compatible when it's on mobile
- Xml audio list player not working on the mobile and autoplay is not working
- Dygraph not shown on collapsed jQuery mobile collapsible widget
- Jquery slideToggle and hover issues
Related Questions in MARKUP
- Rich snippets preview tool is removed?
- Confluence keyboard shortcut markup
- How to make a horizontal scroll when minifying window?
- Filling remaining space in row by last element
- Copy grid lines when user copies the grid from webpage and paste it into notepad
- Copy text only from web page without html into Gmail body email
- Unexpected html anchor redirection
- Which markup language is this?
- How do you indent a bulleted list in a README file using GitHub flavored markdown?
- Append markup string to a tag in BeautifulSoup
- How can I represent a space at the end of a span of code in markdown?
- How to create Kendo controls with security markup
- extending html5 microdata event schema
- Fixing Markup Errors due to Shortcodes in Wordpress
- Mailchimp repeatable blocks issue
Related Questions in JQUERY-MOBILE-THEMEROLLER
- Apply Jquery Mobile ThemeRoller's theme to MVC4 Mobile Application
- ThemeRoller for jQuery messes up the UI
- jQuery data-theme not changing
- Resizing Icons for mobile view with Jquery theme roller for mobile
- How to make jquery mobile custom theme generated with themeroller work?
- JQuery Mobile theme roller theme won't apply on iPhone or iPAD
- JQuery Mobile themeroller checkbox in List
- JQuery Mobile and Phonegap - not getting any JQuery Mobile css effects
- set transparency using theme roller
- Jquery Mobile button looks weird
- jquerymobile uses old theme
- Phonegap Android app displays only themeroller
- How to eliminate space between radio buttons in Jquery Mobile?
- Difference between Theme and Swatch
- jquery mobile themeroller issue
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Theme definition
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.
Swatch definition
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 defaults to swatch c in most cases, but it is easy to specify a different swatch using the data-theme attribute. The data-theme attribute can be applied to any enhanced element and will cascade down through child elements.
Example
You can see the differences in this working example: http://jsfiddle.net/Gajotres/VbPRx/
Source example