Skip to content

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 ​

ParameterType
docDocument | undefined

Returns ​

HTMLStyleElement | null

Released under the MIT License.