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
- In Datatables, start value resets to 0, when column sorting
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- window.location.href redirects but is causing problems on the webpage
- Using JQuery Date Slider
- Storing selected language in localStorage
- How to stop other divs from still showing when i click a different button?
- Check multiple values with jQuery
- Bootstrap component does not want to render in Datatables function
- put white spaces when entering an amount moneytype symfony
- Trouble accessing custom header in AJAX response using jQuery in Fiware Keyrock
- I just cant make it work, HTML, JS and Firebase error
- Didn't declared variable still not getting any error in JavaScript
- Move element horizontally while scrolling vertically in pure JavaScript
- allow multi carousel in same page
- Embedded TikTok posts / thumbnail styling issue
Related Questions in JQUERY-MOBILE
- Jquery mobile nav bar items not properly placed
- jQuery Mobile Autocomplete freeze all the page
- How can i fix the error i get when i run cordova build android on windows cmd
- want to make a swipe menu common for all page of my html,
- JQueryMobile not keeping default style for dynamically appended html
- class added to div prints extra pages confusion
- Discord time stamp bug
- Show different element if the the class has the class active
- jQuery-Mobile fancy popup box works with jQuery 2.1.3 but breaks with jQuery 2.2.4
- ASP.NET MVC 5 : model not binding to HttpPostedFileBase from Razor form w/jQuery Mobile
- Filtering an unordered list with jQuery Mobile 1.5
- i want to show footer navbar on different situation in JQUERY MOBILE
- Getting the information of a mobile device by connecting to it
- Checkbox styles not applying when loading data asynchronously
- How do I get the content to display in the other menu options?
Related Questions in MARKUP
- Yolo makes one box for intersecting objects
- How to access the Styles.xaml file and use it in the c# markup code
- I'm having issues linking to a header in the same document with CommonMark, Markdig, MAUI, and Visual Studio 2022?
- Error: while importing 'app', an ImportError was raised: ImportError: cannot import name 'Markup' from 'flask'
- Running Jemdoc on Windows
- Schema Markup Warnings (Teaches, warninghasCourseInstance, warningoffers)
- How do I make my images not go away in HTML after I restart the server
- Google FAQ schema not showing (multiple schema in same page)
- QLPreviewController identify markup mode
- YAML read filenames stored across multiple variables
- How do I set a checkmark in markup?
- How can my XML look like with existing XSD
- Hide specific headings from (python) sphinx toctree while still showing other headings of same depth/level (or deeper)
- Preventing Overwrite of Existing Google Calendar Events with Schema.org Email Markup
- How to mark part of a text as quoted in Telegram sendMessage Bot API?
Related Questions in JQUERY-MOBILE-THEMEROLLER
- How to eliminate space between radio buttons in Jquery Mobile?
- Resizing Icons for mobile view with Jquery theme roller for mobile
- ThemeRoller doesn't work on device
- Phonegap Android app displays only themeroller
- JQuery Mobile themeroller checkbox in List
- Apply Jquery Mobile ThemeRoller's theme to MVC4 Mobile Application
- can you override Jquery mobile stock icons in both white and black without html changes?
- set transparency using theme roller
- How to remove the shadow effect after button clicked in theme roller
- Possible to use multiple JQuery Mobile swatches in the same page?
- Jquery Mobile button looks weird
- Themeroller for Jquery is messing up my images
- jquerymobile uses old theme
- jQuery data-theme not changing
- ThemeRoller for jQuery messes up the UI
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 # Hahtags
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