@vaadin/themable-element
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

@vaadin/themable-element

This package provides ThemableElement, a version of Vaadin.ThemableMixin re-implemented using LitElement.

Usage

The API provided by @vaadin/vaadin-themable-mixin should be used to register styles:

import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';

registerStyles(
  'my-lit-element',
  css`
    /* Styles which will be included in my-element local scope */
  `
);

The registerStyles helper uses DomModule from Polymer 3 internally. This is needed in order to provide a common theming mechanism for both Polymer and LitElement versions of Vaadin components.

/@vaadin/themable-element/

    Package Sidebar

    Install

    npm i @vaadin/themable-element

    Weekly Downloads

    588

    Version

    0.3.0

    License

    Apache-2.0

    Unpacked Size

    18.7 kB

    Total Files

    7

    Last publish

    Collaborators

    • web-padawan
    • diegocardoso
    • alvarezguille
    • platosha
    • jouni
    • manolo
    • yuriyyev
    • vaadin-owner
    • tomivirkki
    • artur-
    • sunzhewyq
    • sosa-vaadin
    • sissbruecker