MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / fontColor

Function fontColor

apps/web/ui/Autocomplete/index.tsx:201–206  ·  view source on GitHub ↗
(brandColor: string)

Source from the content-addressed store, hash-verified

199 //when it is not focused and the brand color is dark the font color should be white
200
201 const fontColor = (brandColor: string) => {
202 if (isFocused) return 'black';
203 //gray-100
204 //gray-900
205 return pickTextColorBasedOnBgColor(brandColor, '#f3f4f6', '#111827');
206 };
207
208 return (
209 <div

Callers 1

AutocompleteFunction · 0.85

Calls 1

Tested by

no test coverage detected