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

Preface

Welcome to jQuery UI Themes: Beginner's Guide. This introductory text will get you started with developing your own themes for jQuery UI applications. Starting with the general concepts of user interface themes, this book walks the reader through everything from the most basic ideas in jQuery UI to more advanced topics such as icons and themes for custom widgets.

What this book covers

Chapter 1, Themeable User Interfaces, talks about themes in general and why they're important for user interfaces. We'll also address some introductory jQuery UI theme concepts.

Chapter 2, Using Themes, explains how to apply jQuery UI themes by example. Here, we'll walk through some introductory examples that use jQuery UI themes.

Chapter 3, Using the ThemeRoller, introduces the ThemeRoller application. This chapter walks the reader through all available ThemeRoller settings and shows how to download and use your theme.

Chapter 4, Working with Widget Containers, explains how to theme widget containers. Containers are the basic building block for themes and this chapter explains a little theory and gives plenty of examples.

Chapter 5, Transforming Interaction States, talks about the different states jQuery UI widgets go through. These states have different visual appearances and you'll find numerous examples on how to customize them.

Chapter 6, Customizing Interaction Cues, gives examples of using interaction cues with jQuery UI. There is a little theory on what they are, as well as examples on how to theme them.

Chapter 7, Creating Theme Icons, talks about icon sets in jQuery UI themes. We cover how these icons are stored in the image files and how to add your own icons to a theme.

Chapter 8, Special Effects, talks about special effects in the jQuery UI theme framework – rounded corners, and shadows. You'll see several examples of how to apply these classes to widgets and how to customize them.

Chapter 9, Theming Custom Widgets, walks you through the process of constructing a custom widget. We then cover making the widget theme-ready.

What you need for this book

All you need to run the examples in this book are the following:

  • An Internet connection (for downloading jQuery UI)

  • A web browser

  • A text editor

  • GIMP image editor (free) or PhotoShop (this is required only for chapter 7)

Who this book is for

This book is intended for anyone interested in learning about jQuery UI themes.

Conventions

In this book, you will find several headings appearing frequently.

To give clear instructions of how to complete a procedure or task, we use:

Time for action – heading

  • Action 1

  • Action 2

  • Action 3

Instructions often need some extra explanation so that they make sense, so they are followed with:

What just happened?

This heading explains the working of tasks or instructions that you have just completed.

You will also find some other learning aids in the book, including:

Pop quiz – heading

These are short multiple choice questions intended to help you test your own understanding.

Have a go hero – heading

These set practical challenges and give you ideas for experimenting with what you have learned.

You will also find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "In index.html and index.js, we create three jQuery UI button widgets to show off our new icon."

A block of code is set as follows:

$(document).ready(function(){

  $("#my_button").button();

});

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

#todo-title {

    color: #222222;
    padding-left: 5%;

}

#todo-list {

    font-size: 0.8em;
    color: #362b36;
    list-style-type: square;

}
h3, ul {

    font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;

}

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "If the Layers dialog isn't open already, open it by selecting Windows | Dockable Dialogs | Layers as illustrated ".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or e-mail .

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code for this book

You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.