MCPcopy Create free account
hub / github.com/ShipSecAI/studio / useCategoryColors

Function useCategoryColors

frontend/src/utils/categoryColors.ts:27–36  ·  view source on GitHub ↗
(category: string)

Source from the content-addressed store, hash-verified

25}
26
27export function useCategoryColors(category: string) {
28 const theme = useThemeStore((state) => state.theme);
29 const isDarkMode = theme === 'dark';
30
31 return {
32 separatorColor: getCategorySeparatorColor(category, isDarkMode),
33 headerBackgroundColor: getCategoryHeaderBackgroundColor(category, isDarkMode),
34 textColorClass: getCategoryTextColorClass(category),
35 };
36}

Callers

nothing calls this directly

Calls 3

Tested by

no test coverage detected