1681-engine / react / injectBaseCss
Function: injectBaseCss() ​
ts
function injectBaseCss(doc?): HTMLStyleElement | null;Defined in: src/react/baseCss.ts:239
Puts baseCss into the page once, first in <head> so the game's own rules (and its custom properties) win without needing more specific selectors. Returns the <style> element; nothing on a server.
Parameters ​
| Parameter | Type |
|---|---|
doc | Document | undefined |
Returns ​
HTMLStyleElement | null