@stratakit/foundations
Version:
Foundational pieces of StrataKit
14 lines (13 loc) • 699 B
TypeScript
/**
* Loads all the foundations CSS into the specified root node or document. This includes:
* - A basic CSS reset.
* - Some opinionated global styles.
* - CSS variables for light and dark color schemes.
*
* To specify a color scheme, use the `data-color-scheme` on the `<html>` element or the shadow-root host element.
*
* @param rootNode The root node (i.e. document or shadowRoot) where the styles should be loaded. Defaults to `document`.
* @returns a cleanup function that can be used to remove the styles when they are no longer needed.
*/
declare function loadFoundationsStyles(rootNode?: Document | ShadowRoot): () => void;
export { loadFoundationsStyles as unstable_loadStyles };