/// ========================================================================
/// ZUI: colorset.js.less
/// http://zui.sexy
/// ========================================================================
/// Copyright 2014-2016 cnezsoft.com; Licensed MIT
/// ========================================================================


// JAVASCRIPT CODE TEMPLATE
// ========================
// This file used to generate javascript code with less syntax interpreter.
// Do not edit comment below this.

@import "colorset.less";

/**(function($) {
    'use strict';

    var nextColorIndex = 0;
    var presetColors = ['primary', 'red', 'yellow', 'green', 'blue', 'purple', 'brown', 'dark'];

    var colorset = {**/
.color-primary {color: @color-primary}
.color-secondary {color: @color-secondary}
.color-pale {color: @color-pale}
.color-fore {color: @color-fore}
.color-back {color: @color-back}
.color-grayDarker {color: @color-gray-darker}
.color-grayDark {color: @color-gray-dark}
.color-gray {color: @color-gray}
.color-grayLight {color: @color-gray-light}
.color-grayLighter {color: @color-gray-lighter}
.color-grayPale {color: @color-gray-pale}
.color-white {color: @color-white}
.color-black {color: @color-black}
.color-red {color: @color-red}
.color-yellow {color: @color-yellow}
.color-green {color: @color-green}
.color-blue {color: @color-blue}
.color-purple {color: @color-purple}
.color-brown {color: @color-brown}
.color-greenPale {color: @color-green-pale}
.color-yellowPale {color: @color-yellow-pale}
.color-redPale {color: @color-red-pale}
.color-bluePale {color: @color-blue-pale}
.color-brownPale {color: @color-brown-pale}
.color-purplePale {color: @color-purple-pale}
.color-light {color: @color-light}
.color-dark {color: @color-dark}
.color-success {color: @color-success}
.color-warning {color: @color-warning}
.color-danger {color: @color-danger}
.color-info {color: @color-info}
.color-important {color: @color-important}
.color-special {color: @color-special}
.color-successPale {color: @color-success-pale}
.color-warningPale {color: @color-warning-pale}
.color-dangerPale {color: @color-danger-pale}
.color-infoPale {color: @color-info-pale}
.color-importantPale {color: @color-important-pale}
.color-specialPale {color: @color-special-pale}
/**    };
    
    colorset.get = function(colorName) {
        if(typeof colorName === 'undefined' || colorName === 'random') {
            colorName = presetColors[(nextColorIndex++) % presetColors.length];
        }
        var color = colorset[colorName] ? colorset[colorName] : colorName;
        return $.zui.Color ? new $.zui.Color(color) : color;
    }

    $.zui({colorset: colorset});
    if($.zui.Color) $.extend($.zui.Color, colorset);
}(jQuery));**/
