UNPKG

highcharts

Version:
75 lines (74 loc) 1.5 kB
/* * * * (c) 2010-2024 Highsoft AS * * Author: Øystein Moseng * * License: www.highcharts.com/license * * Accessible high-contrast theme for Highcharts. Specifically tailored * towards 3:1 contrast against white/off-white backgrounds. Neighboring * colors are tested for color blindness. * * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!! * * */ 'use strict'; import D from '../../Core/Defaults.js'; const { setOptions } = D; /* * * * Theme * * */ var HighContrastLightTheme; (function (HighContrastLightTheme) { /* * * * Constants * * */ HighContrastLightTheme.options = { colors: [ '#265FB5', '#222', '#698F01', '#F4693E', '#4C0684', '#0FA388', '#B7104A', '#AF9023', '#1A704C', '#B02FDD' ], credits: { style: { color: '#767676' } }, navigator: { series: { color: '#5f98cf', lineColor: '#5f98cf' } } }; /* * * * Functions * * */ /** * Apply the theme. */ function apply() { setOptions(HighContrastLightTheme.options); } HighContrastLightTheme.apply = apply; })(HighContrastLightTheme || (HighContrastLightTheme = {})); /* * * * Default Export * * */ export default HighContrastLightTheme;