@maggioli-design-system/design-tokens
Version:
This is the Design Token library of Maggioli Design System, here you'll find all the visual data used around the libraries.
34 lines (32 loc) • 2.48 kB
JavaScript
;
/*
Copyright 2024 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertColorValue = exports.ratioName = exports.minPositive = exports.contrast = exports.luminance = exports.createScale = exports.Theme = exports.BackgroundColor = exports.Color = void 0;
const chroma_js_1 = __importDefault(require("chroma-js"));
const chroma_plus_js_1 = require("./lib/chroma-plus.js");
const utils_js_1 = require("./lib/utils.js");
Object.defineProperty(exports, "convertColorValue", { enumerable: true, get: function () { return utils_js_1.convertColorValue; } });
Object.defineProperty(exports, "createScale", { enumerable: true, get: function () { return utils_js_1.createScale; } });
Object.defineProperty(exports, "contrast", { enumerable: true, get: function () { return utils_js_1.getContrast; } });
Object.defineProperty(exports, "luminance", { enumerable: true, get: function () { return utils_js_1.luminance; } });
Object.defineProperty(exports, "minPositive", { enumerable: true, get: function () { return utils_js_1.minPositive; } });
Object.defineProperty(exports, "ratioName", { enumerable: true, get: function () { return utils_js_1.ratioName; } });
const color_js_1 = require("./lib/color.js");
Object.defineProperty(exports, "Color", { enumerable: true, get: function () { return color_js_1.Color; } });
const backgroundcolor_js_1 = require("./lib/backgroundcolor.js");
Object.defineProperty(exports, "BackgroundColor", { enumerable: true, get: function () { return backgroundcolor_js_1.BackgroundColor; } });
const theme_js_1 = require("./lib/theme.js");
Object.defineProperty(exports, "Theme", { enumerable: true, get: function () { return theme_js_1.Theme; } });
(0, chroma_plus_js_1.extendChroma)(chroma_js_1.default);