UNPKG

@jlalmes/goober

Version:

A less than 1KB css-in-js solution

26 lines (21 loc) 738 B
import { Properties as CSSProperties } from 'csstype'; import { Theme, DefaultTheme } from 'goober'; export = gooberGlobal; export as namespace gooberGlobal; declare namespace gooberGlobal { interface CSSAttribute extends CSSProperties { [key: string]: CSSAttribute | string | number | undefined; } function createGlobalStyles( tag: CSSAttribute | TemplateStringsArray | string, ...props: Array< | string | number | ((props: Theme<DefaultTheme>) => CSSAttribute | string | number | false | undefined) > ): Function; function glob( tag: CSSAttribute | TemplateStringsArray | string, ...props: Array<string | number> ): void; }