devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
173 lines (172 loc) • 4.12 kB
JavaScript
/**
* DevExtreme (esm/viz/core/themes/generic.darkviolet.js)
* Version: 21.1.4
* Build date: Mon Jun 21 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import {
registerTheme
} from "../../themes";
var ACCENT_COLOR = "#9c63ff";
var BACKGROUND_COLOR = "#17171f";
var TITLE_COLOR = "#f5f6f7";
var SUBTITLE_COLOR = "#fff";
var TEXT_COLOR = "#b2b2b6";
var BORDER_COLOR = "#343840";
registerTheme({
name: "generic.darkviolet",
defaultPalette: "Dark Violet",
backgroundColor: BACKGROUND_COLOR,
primaryTitleColor: TITLE_COLOR,
secondaryTitleColor: SUBTITLE_COLOR,
gridColor: BORDER_COLOR,
axisColor: TEXT_COLOR,
export: {
backgroundColor: BACKGROUND_COLOR,
font: {
color: TITLE_COLOR
},
button: {
default: {
color: TITLE_COLOR,
borderColor: "#414152",
backgroundColor: BACKGROUND_COLOR
},
hover: {
color: TITLE_COLOR,
borderColor: "#5c5c74",
backgroundColor: "#2d2d3c"
},
focus: {
color: TITLE_COLOR,
borderColor: "#7c7c97",
backgroundColor: "#2d2d3c"
},
active: {
color: TITLE_COLOR,
borderColor: "#7c7c97",
backgroundColor: "#3c3c51"
}
}
},
legend: {
font: {
color: TEXT_COLOR
}
},
tooltip: {
color: BACKGROUND_COLOR,
border: {
color: "#414152"
},
font: {
color: TITLE_COLOR
}
},
"chart:common": {
commonSeriesSettings: {
label: {
border: {
color: BORDER_COLOR
}
}
}
},
"chart:common:annotation": {
font: {
color: TITLE_COLOR
},
border: {
color: "#414152"
},
color: BACKGROUND_COLOR
},
chart: {
commonPaneSettings: {
border: {
color: BORDER_COLOR
}
},
commonAxisSettings: {
breakStyle: {
color: "#575e6b"
}
}
},
funnel: {
item: {
border: {
color: BACKGROUND_COLOR
}
}
},
sparkline: {
pointColor: BACKGROUND_COLOR,
minColor: "#f0ad4e",
maxColor: "#d9534f"
},
treeMap: {
group: {
color: BORDER_COLOR,
label: {
font: {
color: SUBTITLE_COLOR
}
}
}
},
rangeSelector: {
shutter: {
color: BACKGROUND_COLOR
},
scale: {
breakStyle: {
color: "#575e6b"
},
tick: {
opacity: .2
}
},
selectedRangeColor: ACCENT_COLOR,
sliderMarker: {
color: ACCENT_COLOR,
font: {
color: "#fff"
}
},
sliderHandle: {
color: ACCENT_COLOR,
opacity: .5
}
},
bullet: {
color: ACCENT_COLOR
},
gauge: {
valueIndicators: {
rangebar: {
color: ACCENT_COLOR
},
textcloud: {
color: ACCENT_COLOR
}
}
},
sankey: {
link: {
border: {
color: BACKGROUND_COLOR
}
},
node: {
border: {
color: BACKGROUND_COLOR
}
}
}
}, "generic.dark");
registerTheme({
name: "generic.darkviolet.compact"
}, "generic.darkviolet");