import * as plugins from './domtools.plugins'; import { DomTools } from './domtools.classes.domtools'; import { scrollBarStyles, globalBaseStyles } from './domtools.css.basestyles'; import { html, LitElement, css, unsafeCSS } from 'lit'; export const staticStyles = css` * { transition: background 0.1s, color 0.1s; box-sizing: border-box; } :host { font-family: 'Roboto', sans-serif; } ${unsafeCSS(scrollBarStyles)} `; /** * styles to be included in every webcomponent */ export const styles = html` `; /** * a basic setup for elements * makes sure everything is in check */ export const setup = async (elementArg?: LitElement): Promise => { const domTools = await DomTools.setupDomTools(); if (elementArg) { // lets do something with the element // not used right now } domTools.runOnce('elementBasicSetup', async () => { // bodyStyles domTools.setGlobalStyles(globalBaseStyles); }); return domTools; };