Skip to content

Latest commit

 

History

History
108 lines (89 loc) · 3.39 KB

howto.md

File metadata and controls

108 lines (89 loc) · 3.39 KB

How to use the USPTO UI Design Library

Prerequisites

Before proceeding with the UI Design Library, we are assuming that you are already aware about the basics of HTML, CSS and Twitter Bootstrap. If you are not well aware of these concepts then we suggest that you go through an overview of Bootstrap.

Usage

Download UI Design Library

Download the latest version of UI Design Library here.

download-usptostrap

Resources:
  • Download CSS/LESS: Download the precompiled and minified versions of UI Design Library CSS, SVG image, and less. No documentation or original source code files are included.
  • View on Github: Get the latest UI Design Library and JavaScript source code directly from GitHub.

File Structure

If you have downloaded the UI Design Library source code then the file structure would be as follows:

file-structure


What's included?

CSS: Global CSS settings and enhanced with extensible classes with an advanced grid system.

Images: Fundamental SVG images for icons.

Less: The usptostrap.less file uses @import to merge all the LESS files at compilation time.


How to use?

A basic HTML template using UI Design Library would look like this:

<!doctype html>
<html>
<head>
<title>UI Design Library </title>
<!-- USPTO Pattern Library CSS -->
<link rel="stylesheet" type="text/css" href="css/usptostrap.min.css">
</head>
<body>
<h1>Welcome to USPTO</h1>
</body>
</html>

Plugins: jQuery.js and Bootstrap.min.js

<!doctype html>
<html>
<head>
<title>UI Design Library </title>
<!-- USPTO Pattern Library CSS -->
<link rel="stylesheet" type="text/css" href="css/usptostrap.min.css">
</head>
<body>
<h1>Welcome to USPTO</h1>
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</body>
</html>

Third party style sheets

All third party style sheets should be included after the UI Design Library CSS files.

<!doctype html>
<html>
<head>
<title>UI Design Library </title>
<!-- USPTO Pattern Library CSS -->
<link rel="stylesheet" type="text/css" href="css/usptostrap.min.css">
<!-- USPTO Global Header CSS -->
<link rel="stylesheet" type="text/css" href="css/uspto-header-styles.min.css">
</head>
<body>
<h1>Welcome to USPTO</h1>
</body>
</html>

Custom style sheets

To apply additional styling to your web application, simply add the proper code to your custom-styles.css file and include that file after all style sheets. There is no need to edit any of the original UI Design Library files directly.

<!doctype html>
<html>
<head>
<title>UI Design Library </title>
<!-- USPTO Pattern Library CSS -->
<link rel="stylesheet" type="text/css" href="css/usptostrap.min.css">
<!-- USPTO Global Header CSS -->
<link rel="stylesheet" type="text/css" href="css/uspto-header-styles.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" type="text/css" href="css/custom-styles.css">
</head>
<body>
<h1>Welcome to USPTO</h1>
</body>
</html>