UNPKG

vanjs-reactive-element

Version:

A reactive custom element base class for VanJS with any reactivity system

29 lines (28 loc) 632 B
/** * Tagged template literal for CSS strings with syntax highlighting support * @param template - Template strings array * @param values - Interpolated values * @returns CSS string * @example * const styles = css` * :host { * display: block; * padding: ${spacing}px; * } * * .button { * background: ${theme.primary}; * border-radius: 4px; * } * ` * * @example * // Usage in component * static get styles() { * return css` * :host { display: flex; } * .container { gap: 1rem; } * ` * } */ export declare const css: (...args: [TemplateStringsArray, ...any[]]) => string;