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

Time for action - preparing the example


Here, we're going to set up an example that we can reuse throughout the chapter:

  1. If you haven't already, download and extract the jQuery UI package into a directory called jqueryui from http://jqueryui.com/download.

  2. At the same level as the jqueryui directory, create a new index.html file with the following content:

    <html xmlns="http://www.w3.org/1999/xhtml">
    
      <head>
    
        <title>Working With Widget Containers</title>
    
        <link href="jqueryui/development-bundle/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    
      </head>
    
      <body style="font-size: 10px;">
    
        <div class="ui-widget">My Widget Container</div>
    
      </body>
    
    </html>
  3. Open index.html in a web browser. You should see something similar to the following:

What just happened?

We've created a simple HTML file that we'll use throughout the rest of the chapter. The first thing you'll notice that is different about this...