Field note
What it does
Exports css, unsafeCSS, adoptStyles, getCompatibleStyle, CSSResult, supportsAdoptingStyleSheets and CSS result types from 'lit'.
Capabilities
Available capabilities
Tags
Tags
Ways to use it
Ways to use it
npm
javascript / lit
Lit's styling API: css, unsafeCSS, CSSResult, adoptStyles and related types.
Field note
Exports css, unsafeCSS, adoptStyles, getCompatibleStyle, CSSResult, supportsAdoptingStyleSheets and CSS result types from 'lit'.
Capabilities
Tags
Ways to use it
javascript / lit
Product features
Applies the given styles to a shadowRoot.
Template literal tag used with LitElement's styles property to set element styles.
Container for a string of CSS text that may be used to create a CSSStyleSheet.
Returns a compatible CSSResultOrNative for styling.
Boolean indicating whether the current browser supports adoptedStyleSheets.
Wraps a value for interpolation in a css tagged template literal.