MCPcopy Create free account
hub / github.com/csskit/csskit / getChartOptions

Function getChartOptions

website/script/benchmarks.js:103–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103function getChartOptions() {
104 const isDarkMode = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
105 return {
106 animations: {
107 enabled: false,
108 },
109 background: isDarkMode ? "#0f0f0f" : "#ffffff",
110 };
111}
112
113function getGridBorderColor() {
114 const isDarkMode = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;

Callers 4

getBaseChartConfigFunction · 0.85
setupThemeObserverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected