Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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).

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc