Skip to content

jquery/jquery-ui-themeroller

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

Why jquery-ui-themeroller?

Use jquery-ui-themeroller to generate the CSS of your jQuery UI theme.

Usage

npm install jquery-ui-themeroller

var fs = require( "js" );
var ThemeRoller = require( "jquery-ui-themeroller" );

var baseThemeCss = fs.readFileSync( "./jquery-ui/base/theme.css" );

var themeroller = new ThemeRoller( baseThemeCss, myThemeVars );
var myThemeCss = themeroller.css();

API

  • ThemeRoller( baseThemeCss, vars )

baseThemeCss String/Buffer containing jQuery UI's ./base/theme.css.

vars Object containing (theme property, value) key-value pairs. See https://github.com/jquery/download.jqueryui.com/blob/master/lib/themeroller-themegallery.js for more details.

Test

npm test