(variables: Record<string, string>)
| 38 | }; |
| 39 | |
| 40 | const setCSSVariables = (variables: Record<string, string>) => { |
| 41 | if (typeof document === "undefined") { |
| 42 | return; // Check for SSR |
| 43 | } |
| 44 | |
| 45 | const root = document.documentElement; |
| 46 | for (const [key, value] of Object.entries(variables)) { |
| 47 | root.style.setProperty(key, value); |
| 48 | } |
| 49 | }; |
| 50 | |
| 51 | // Global Monaco instance reference |
| 52 | let globalMonaco: Monaco | null = null; |
no outgoing calls
no test coverage detected