Book Image

jQuery UI Themes Beginner's Guide

By : Adam Boduch
Book Image

jQuery UI Themes Beginner's Guide

By: Adam Boduch

Overview of this book

<p>Web applications today generally use at least some JavaScript to enhance the look and feel of the user interface. The jQuery UI toolkit gives web developers a set of widgets as well as a framework for developing and applying themes.</p> <p><em>jQuery UI Themes: Beginner's Guide</em> is for web developers who want to design professional-looking applications that are resilient to change. It is a step-by-step guide that goes beyond showing how to switch themes in a user interface built with jQuery UI and offers developers a practical guide to designing their own themes and gives them insight as to how themes work.</p> <p><em>jQuery UI Themes Beginner's Guide</em> starts with themes in general and why they're important in web applications today. We gradually move forward, covering jQuery UI basics, eventually aiming for a full understanding of the theme framework. The ThemeRoller application is a powerful tool – allowing developers to easily adjust theme settings. In addition to seeing how the ThemeRoller works, we take a more in-depth look at the CSS framework internals allowing readers to develop the ability to adjust themes in ways the ThemeRoller cannot. This includes everything from special effects to theming custom widgets. There is no limit to what your theme can change.</p> <p>Once you've read this book, you'll no only be well-versed in theming jargon, you'll also be able to take one look at any jQuery UI application and understand why and how it looks the way it does.</p>
Table of Contents (17 chapters)
jQuery UI Themes Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we learned a lot about widgets, themes, and styles in general. These are essential ingredients for creating themeable user interfaces. Widgets are the structural components that user interfaces are made of. Styles change the look and feel of widgets in addition to the layout of the widget elements.

Adding styles to widgets presents problems with consistency and portability. We've seen different ways we can improve our CSS so that we can avoid duplicate property definitions by grouping selectors. We can further increase style reuse by moving CSS properties to a base class and nesting more specific properties within it.

Layout also plays a role in designing themes. The individual HTML elements that make up a widget need to be positioned properly and given appropriate space. These are all things that should be controlled by the theme styles. The HTML structure says what the widget has, while the theme says where it goes.

The jQuery UI framework helps us with all concepts learned in this chapter. The two sub-frameworks provided by jQuery UI give us widgets as well as a CSS framework we can use to create our own themes.

In the next chapter, we'll dig a little deeper into how jQuery UI theming works and get hands-on examples and experience with the framework.