highcharts
Version:
JavaScript charting framework
94 lines (93 loc) • 2.19 kB
JavaScript
/* *
*
* (c) 2010-2026 Highsoft AS
*
* Author: Øystein Moseng, Torstein Hønsi
*
* Integration of this software requires a license.
* - For commercial use, see www.highcharts.com/license
* - For non-commercial, see www.highcharts.com/license-eula
*
* Accessible high-contrast theme for Highcharts. Specifically tailored
* towards 3:1 contrast against white/off-white backgrounds. Neighboring
* colors are tested for color blindness.
*
*
* */
;
import D from '../../Core/Defaults.js';
const { setOptions } = D;
/* *
*
* Theme
*
* */
var HighContrastLightTheme;
(function (HighContrastLightTheme) {
/* *
*
* Constants
*
* */
HighContrastLightTheme.options = {
palette: {
light: {
colors: [
'#265FB5',
'#222',
'#698F01',
'#F4693E',
'#4C0684',
'#0FA388',
'#B7104A',
'#AF9023',
'#1A704C',
'#B02FDD'
]
},
dark: {
colors: [
'#67B9EE',
'#CEEDA5',
'#9F6AE1',
'#FEA26E',
'#6BA48F',
'#EA3535',
'#8D96B7',
'#ECCA15',
'#20AA09',
'#E0C3E4'
]
}
},
credits: {
style: {
color: 'light-dark(#767676, #F0F0F3)'
}
},
navigator: {
series: {
color: 'light-dark(#5f98cf, #7798BF)',
lineColor: 'light-dark(#5f98cf, #A6C7ED)'
}
}
};
/* *
*
* Functions
*
* */
/**
* Apply the theme.
*/
function apply() {
setOptions(HighContrastLightTheme.options);
}
HighContrastLightTheme.apply = apply;
})(HighContrastLightTheme || (HighContrastLightTheme = {}));
/* *
*
* Default Export
*
* */
export default HighContrastLightTheme;