MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / chartCssColorValue

Function chartCssColorValue

packages/react/src/components/chart.tsx:35–38  ·  view source on GitHub ↗
(color: string)

Source from the content-addressed store, hash-verified

33 cssIdentifierPattern.test(key) ? `--color-${key}` : null;
34
35export const chartCssColorValue = (color: string): string | null => {
36 const trimmed = color.trim();
37 return cssColorPattern.test(trimmed) ? trimmed : null;
38};
39
40const ChartContext = React.createContext<ChartContextProps | null>(null);
41

Callers 2

chart.test.tsFile · 0.90
ChartStyleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected