MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / colorNameToColorHex

Function colorNameToColorHex

apps/client/src/code/pages/colors.ts:72–77  ·  view source on GitHub ↗
(
  type: 'ui' | 'arrows' | 'notes',
  colorName: any,
)

Source from the content-addressed store, hash-verified

70);
71
72export function colorNameToColorHex(
73 type: 'ui' | 'arrows' | 'notes',
74 colorName: any,
75): string {
76 return (colorMap()[type] as any)[colorName] ?? colorMap()[type].grey;
77}
78
79export function colorHexToColorName(
80 type: 'ui' | 'arrows' | 'notes',

Callers 2

constructorMethod · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected