UNPKG

highcharts

Version:
317 lines (306 loc) 9.07 kB
/** * @license Highcharts JS v12.3.0 (2025-06-21) * @module highcharts/themes/brand-light * @requires highcharts * * (c) 2009-2025 Torstein Honsi * * License: www.highcharts.com/license */ import * as __WEBPACK_EXTERNAL_MODULE__highcharts_src_js_8202131d__ from "../highcharts.src.js"; /******/ // The require scope /******/ var __webpack_require__ = {}; /******/ /************************************************************************/ /******/ /* webpack/runtime/compat get default export */ /******/ (() => { /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = (module) => { /******/ var getter = module && module.__esModule ? /******/ () => (module['default']) : /******/ () => (module); /******/ __webpack_require__.d(getter, { a: getter }); /******/ return getter; /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /************************************************************************/ ;// external ["../highcharts.src.js","default"] const external_highcharts_src_js_default_namespaceObject = __WEBPACK_EXTERNAL_MODULE__highcharts_src_js_8202131d__["default"]; var external_highcharts_src_js_default_default = /*#__PURE__*/__webpack_require__.n(external_highcharts_src_js_default_namespaceObject); ;// ./code/es-modules/Extensions/Themes/BrandLight.js /* * * * (c) 2010-2025 Highsoft AS * * Author: Nancy Dillon * * License: www.highcharts.com/license * * Light theme based on Highcharts brand system * * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!! * * */ const { setOptions } = (external_highcharts_src_js_default_default()); const { createElement } = (external_highcharts_src_js_default_default()); /* * * * Theme * * */ var BrandLightTheme; (function (BrandLightTheme) { /* * * * Constants * * */ BrandLightTheme.options = { colors: [ '#8087E8', '#A3EDBA', '#F19E53', '#6699A1', '#E1D369', '#87B4E7', '#DA6D85', '#BBBAC5' ], chart: { backgroundColor: '#f0f0f0', style: { fontFamily: 'IBM Plex Sans, sans-serif' } }, title: { style: { fontSize: '22px', fontWeight: '500', color: '#2F2B38' } }, subtitle: { style: { fontSize: '16px', fontWeight: '400', color: '#2F2B38' } }, tooltip: { borderWidth: 0, backgroundColor: '#46465C', style: { color: '#f0f0f0' }, shadow: true }, legend: { backgroundColor: '#f0f0f0', borderColor: '#BBBAC5', borderWidth: 1, borderRadius: 2, itemStyle: { fontWeight: '400', fontSize: '12px', color: '#2F2B38' }, itemHoverStyle: { fontWeight: '700', color: '#46465C' } }, navigation: { buttonOptions: { symbolStroke: '#2F2B38', theme: { fill: '#fff', states: { hover: { stroke: '#46465C', fill: '#fff' }, select: { stroke: '#46465C', fill: '#fff' } } } } }, credits: { style: { color: '#46465C' } }, drilldown: { activeAxisLabelStyle: { color: '#2F2B38' }, activeDataLabelStyle: { color: '#2F2B38' }, drillUpButton: { theme: { fill: '#2F2B38', style: { color: '#fff' } } } }, xAxis: { gridLineColor: '#ccc', labels: { style: { color: '#46465C', fontSize: '12px' } }, lineColor: '#ccc', minorGridLineColor: '#ebebeb', tickColor: '#ccc', title: { style: { color: '#2F2B38' } } }, yAxis: { gridLineColor: '#ccc', labels: { style: { color: '#46465C', fontSize: '12px' } }, lineColor: '#ccc', minorGridLineColor: '#ebebeb', tickColor: '#ccc', tickWidth: 1, title: { style: { color: '#2F2B38', fontWeight: '300' } } }, // Scroll charts rangeSelector: { buttonTheme: { fill: '#fff', style: { color: '#46465C', stroke: 'transparent' }, states: { hover: { fill: '#fff', style: { color: '#46465C' }, 'stroke-width': 1, stroke: '#46465C' }, select: { fill: '#fff', style: { color: '#46465C' }, 'stroke-width': 1, stroke: '#46465C' } } }, inputBoxBorderColor: '#BBBAC5', inputStyle: { backgroundColor: '#fff', color: '#46465C' }, labelStyle: { color: '#46465C' } }, scrollbar: { barBackgroundColor: '#BBBAC5', barBorderColor: '#808083', buttonArrowColor: '#fff', buttonBackgroundColor: '#BBBAC5', buttonBorderColor: '#46465C', rifleColor: '#FFF', trackBackgroundColor: '#dedede', trackBorderColor: '#BBBAC5' }, plotOptions: { series: { borderWidth: 1, borderColor: '#BBBAC5', dataLabels: { color: '#46465C', style: { fontSize: '13px' } }, marker: { lineColor: '#46465C' } }, boxplot: { fillColor: '#505053' }, candlestick: { lineColor: null, upColor: '#DA6D85', upLineColor: '#DA6D85' }, errorbar: { color: 'white' }, map: { borderColor: 'rgba(200, 200, 200, 0.3)', nullColor: 'rgba(200, 200, 200, 0.3)' } } }; /* * * * Functions * * */ /** * Apply the theme. */ function apply() { // Load the fonts createElement('link', { href: 'https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@200;300;400;600;700', rel: 'stylesheet', type: 'text/css' }, null, document.getElementsByTagName('head')[0]); // Apply the theme setOptions(BrandLightTheme.options); } BrandLightTheme.apply = apply; })(BrandLightTheme || (BrandLightTheme = {})); /* * * * Default Export * * */ /* harmony default export */ const BrandLight = (BrandLightTheme); ;// ./code/es-modules/masters/themes/brand-light.src.js (external_highcharts_src_js_default_default()).theme = BrandLight.options; BrandLight.apply(); /* harmony default export */ const brand_light_src = ((external_highcharts_src_js_default_default())); export { brand_light_src as default };