Socket
Book a DemoInstallSign in
Socket

@vaadin/themable-element

Package Overview
Dependencies
Maintainers
16
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/themable-element

This package provides `ThemableElement`, a version of [Vaadin.ThemableMixin](https://github.com/vaadin/vaadin-themable-mixin) re-implemented using [LitElement](https://github.com/Polymer/lit-element).

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
16
Created
Source

@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.

FAQs

Package last updated on 24 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts