@patternfly/react-code-editor
Version:
This package provides a PatternFly wrapper for the Monaco code editor
84 lines • 4.57 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.colors = void 0;
const tslib_1 = require("tslib");
const t_color_gray_90_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_gray_90'));
const t_color_white_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_white'));
const t_color_gray_30_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_gray_30'));
const t_color_red_30_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_red_30'));
const t_color_red_orange_30_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_red_orange_30'));
const t_color_orange_30_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_orange_30'));
const t_color_yellow_30_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_yellow_30'));
const t_color_green_30_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_green_30'));
const t_color_teal_30_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_teal_30'));
const t_color_blue_30_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_blue_30'));
const t_color_purple_30_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_purple_30'));
const t_color_gray_30_2 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_gray_30'));
const t_color_white_2 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_white'));
const t_global_text_color_100_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_global_text_color_100'));
const t_global_text_color_200_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_global_text_color_200'));
const t_color_red_50_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_red_50'));
const t_color_red_orange_50_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_red_orange_50'));
const t_color_orange_50_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_orange_50'));
const t_color_yellow_50_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_yellow_50'));
const t_color_green_50_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_green_50'));
const t_color_teal_50_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_teal_50'));
const t_color_blue_50_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_blue_50'));
const t_color_purple_50_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_purple_50'));
const t_color_gray_50_1 = tslib_1.__importDefault(require('/react-tokens/dist/js/t_color_gray_50'));
/**
* This file maps the theme tokens from PatternFly to a format that can be used in the Monaco editor.
*
* @see https://github.com/microsoft/monaco-editor/issues/2427
*/
exports.colors = {
background: {
dark: t_color_gray_90_1.default.value,
light: t_color_white_2.default.value
},
foreground: {
dark: t_color_white_1.default.value,
light: t_global_text_color_100_1.default.value
},
secondaryForeground: {
dark: t_color_gray_30_1.default.value,
light: t_global_text_color_200_1.default.value
},
red: {
dark: t_color_red_30_1.default.value,
light: t_color_red_50_1.default.value
},
orangered: {
dark: t_color_red_orange_50_1.default.value,
light: t_color_red_orange_30_1.default.value
},
orange: {
dark: t_color_orange_30_1.default.value,
light: t_color_orange_50_1.default.value
},
yellow: {
dark: t_color_yellow_30_1.default.value,
light: t_color_yellow_50_1.default.value
},
green: {
dark: t_color_green_30_1.default.value,
light: t_color_green_50_1.default.value
},
teal: {
dark: t_color_teal_30_1.default.value,
light: t_color_teal_50_1.default.value
},
blue: {
dark: t_color_blue_30_1.default.value,
light: t_color_blue_50_1.default.value
},
purple: {
dark: t_color_purple_30_1.default.value,
light: t_color_purple_50_1.default.value
},
gray: {
dark: t_color_gray_30_2.default.value,
light: t_color_gray_50_1.default.value
}
};
//# sourceMappingURL=themeTokenMapping.js.map