{"version":3,"file":"HighlightColor.CDtaf7Fo.mjs","names":[],"sources":["https:/framerusercontent.com/modules/uCMa9AxtCot8lxaSz99X/6jksgB6B9Xp4utyH0lPq/HighlightColor.js"],"sourcesContent":["// Global highlight color component - changes text selection color across entire website\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Highlight Color\n * \n * Changes the text selection/highlight color across the entire website.\n * Place this component anywhere on your canvas to apply global highlight styles.\n *\n * @framerIntrinsicWidth 100\n * @framerIntrinsicHeight 40\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */function HighlightColor(props){const{highlightColor=\"#0099FF\",textColor=\"#FFFFFF\"}=props;useEffect(()=>{if(typeof document===\"undefined\")return;const styleId=\"framer-highlight-color-global\";// Remove existing style if present\nconst existingStyle=document.getElementById(styleId);if(existingStyle){existingStyle.remove();}// Create and inject new style element\nconst styleElement=document.createElement(\"style\");styleElement.id=styleId;styleElement.innerHTML=`\n            * ::selection {\n                background-color: ${highlightColor} !important;\n                color: ${textColor} !important;\n            }\n            * ::-moz-selection {\n                background-color: ${highlightColor} !important;\n                color: ${textColor} !important;\n            }\n        `;document.head.appendChild(styleElement);// Cleanup function\nreturn()=>{const style=document.getElementById(styleId);if(style){style.remove();}};},[highlightColor,textColor]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor:\"#F5F5F5\",borderRadius:8,padding:10,fontSize:12,color:\"#666\",textAlign:\"center\"},children:\"Highlight Color Active\"});}export default HighlightColor;addPropertyControls(HighlightColor,{highlightColor:{type:ControlType.Color,title:\"Highlight\",defaultValue:\"#0099FF\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HighlightColor\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"100\",\"framerIntrinsicHeight\":\"40\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HighlightColor.map"],"mappings":"0KAYG,SAAS,EAAe,EAAM,CAAC,GAAK,CAAC,iBAAe,UAAU,YAAU,WAAW,EAY4B,OAZtB,MAAc,CAAC,GAAG,OAAO,SAAW,IAAY,OAAO,IAAM,EAAQ,gCAC3J,EAAc,SAAS,eAAe,CAAO,EAAK,GAAe,EAAc,OAAO,EAC5F,IAAM,EAAa,SAAS,cAAc,OAAO,EAUjD,MAVmD,GAAa,GAAG,EAAQ,EAAa,UAAU;;oCAE9D,EAAe;yBAC1B,EAAU;;;oCAGC,EAAe;yBAC1B,EAAU;;UAEzB,SAAS,KAAK,YAAY,CAAY,MACtC,CAAC,IAAM,EAAM,SAAS,eAAe,CAAO,EAAK,GAAO,EAAM,OAAO,CAAG,CAAE,EAAE,CAAC,EAAe,CAAS,CAAC,EAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,gBAAgB,UAAU,aAAa,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,OAAO,UAAU,QAAQ,EAAE,SAAS,wBAAwB,CAAC,CAAE,iBAvB1U,IAA6B,IAAoD,EAuBwR,EAAoB,EAAe,CAAC,eAAe,CAAC,KAAK,EAAY,MAAM,MAAM,YAAY,aAAa,SAAS,EAAE,UAAU,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,SAAS,CAAC,CAAC"}