JSPM

@spectrum-web-components/styles

0.15.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 39733
  • Score
    100M100P100Q164297F
  • License Apache-2.0

Package Exports

  • @spectrum-web-components/styles
  • @spectrum-web-components/styles/all-large-dark.css
  • @spectrum-web-components/styles/all-large-darkest.css
  • @spectrum-web-components/styles/all-large-light.css
  • @spectrum-web-components/styles/all-large-lightest.css
  • @spectrum-web-components/styles/all-medium-dark.css
  • @spectrum-web-components/styles/all-medium-darkest.css
  • @spectrum-web-components/styles/all-medium-light.css
  • @spectrum-web-components/styles/all-medium-lightest.css
  • @spectrum-web-components/styles/body
  • @spectrum-web-components/styles/body.js
  • @spectrum-web-components/styles/code
  • @spectrum-web-components/styles/code.js
  • @spectrum-web-components/styles/core-global.css
  • @spectrum-web-components/styles/detail
  • @spectrum-web-components/styles/detail.js
  • @spectrum-web-components/styles/fonts.css
  • @spectrum-web-components/styles/heading
  • @spectrum-web-components/styles/heading.js
  • @spectrum-web-components/styles/scale-large.css
  • @spectrum-web-components/styles/scale-medium.css
  • @spectrum-web-components/styles/src/spectrum-base.css
  • @spectrum-web-components/styles/src/spectrum-base.css.d.ts
  • @spectrum-web-components/styles/src/spectrum-base.css.js
  • @spectrum-web-components/styles/src/spectrum-base.css.js.map
  • @spectrum-web-components/styles/src/spectrum-body.css
  • @spectrum-web-components/styles/src/spectrum-body.css.d.ts
  • @spectrum-web-components/styles/src/spectrum-body.css.js
  • @spectrum-web-components/styles/src/spectrum-body.css.js.map
  • @spectrum-web-components/styles/src/spectrum-code.css
  • @spectrum-web-components/styles/src/spectrum-code.css.d.ts
  • @spectrum-web-components/styles/src/spectrum-code.css.js
  • @spectrum-web-components/styles/src/spectrum-code.css.js.map
  • @spectrum-web-components/styles/src/spectrum-config.js
  • @spectrum-web-components/styles/src/spectrum-detail.css
  • @spectrum-web-components/styles/src/spectrum-detail.css.d.ts
  • @spectrum-web-components/styles/src/spectrum-detail.css.js
  • @spectrum-web-components/styles/src/spectrum-detail.css.js.map
  • @spectrum-web-components/styles/src/spectrum-heading.css
  • @spectrum-web-components/styles/src/spectrum-heading.css.d.ts
  • @spectrum-web-components/styles/src/spectrum-heading.css.js
  • @spectrum-web-components/styles/src/spectrum-heading.css.js.map
  • @spectrum-web-components/styles/src/spectrum-lang.css
  • @spectrum-web-components/styles/src/spectrum-lang.css.d.ts
  • @spectrum-web-components/styles/src/spectrum-lang.css.js
  • @spectrum-web-components/styles/src/spectrum-lang.css.js.map
  • @spectrum-web-components/styles/src/spectrum-typography.css
  • @spectrum-web-components/styles/src/spectrum-typography.css.d.ts
  • @spectrum-web-components/styles/src/spectrum-typography.css.js
  • @spectrum-web-components/styles/src/spectrum-typography.css.js.map
  • @spectrum-web-components/styles/theme-dark.css
  • @spectrum-web-components/styles/theme-darkest.css
  • @spectrum-web-components/styles/theme-light.css
  • @spectrum-web-components/styles/theme-lightest.css
  • @spectrum-web-components/styles/tokens/dark-vars.css
  • @spectrum-web-components/styles/tokens/darkest-vars.css
  • @spectrum-web-components/styles/tokens/express/custom-large-vars.css
  • @spectrum-web-components/styles/tokens/express/custom-medium-vars.css
  • @spectrum-web-components/styles/tokens/express/custom-vars.css
  • @spectrum-web-components/styles/tokens/express/global-vars.css
  • @spectrum-web-components/styles/tokens/express/large-vars.css
  • @spectrum-web-components/styles/tokens/express/medium-vars.css
  • @spectrum-web-components/styles/tokens/global-vars.css
  • @spectrum-web-components/styles/tokens/large-vars.css
  • @spectrum-web-components/styles/tokens/light-vars.css
  • @spectrum-web-components/styles/tokens/medium-vars.css
  • @spectrum-web-components/styles/tokens/spectrum/custom-large-vars.css
  • @spectrum-web-components/styles/tokens/spectrum/custom-medium-vars.css
  • @spectrum-web-components/styles/tokens/spectrum/custom-vars.css
  • @spectrum-web-components/styles/tokens/spectrum/global-vars.css
  • @spectrum-web-components/styles/tokens/spectrum/large-vars.css
  • @spectrum-web-components/styles/tokens/spectrum/medium-vars.css
  • @spectrum-web-components/styles/typography
  • @spectrum-web-components/styles/typography.css
  • @spectrum-web-components/styles/typography.js

Readme

Description

Spectrum Web Components are a LitElement powered web component library of patterns built ontop of the Spectrum CSS specification. Styles for these components are made available (and in some cases customizable) via CSS Custom Properties, e.g. var(--spectrum-global-color-static-black). In this package you will find the various CSS Custom Properties that power the various color and size themese defined by Spectrum CSS.

The easiest way to consume these values is via the <sp-theme> element, however in some case it can be useful to have direct access to the files outlining the CSS Custom Properties ontop of which the rest of the component system is built.

Usage

See it on NPM! How big is this package in your project?

npm install @spectrum-web-components/styles

Theme packages

@import '@spectrum-web-components/styles/all-medium-darkest.css';

This file brings together the globals variables and font settings with the "Darkest" color set and "Medium" scale system specification.

@import '@spectrum-web-components/styles/all-medium-dark.css';

This file brings together the globals variables and font settings with the "Dark" color set and "Medium" scale system specification.

@import '@spectrum-web-components/styles/all-medium-light.css';

This file brings together the globals variables and font settings with the "Light" color set and "Medium" scale system specification.

@import '@spectrum-web-components/styles/all-medium-lightest.css';

This file brings together the globals variables and font settings with the "Lightest" color set and "Medium" scale system specification.

@import '@spectrum-web-components/styles/all-large-darkest.css';

This file brings together the globals variables and font settings with the "Darkest" color set and "Large" scale system specification.

@import '@spectrum-web-components/styles/all-large-dark.css';

This file brings together the globals variables and font settings with the "Dark" color set and "Large" scale system specification.

@import '@spectrum-web-components/styles/all-large-light.css';

This file brings together the globals variables and font settings with the "Light" color set and "Large" scale system specification.

@import '@spectrum-web-components/styles/all-large-lightest.css';

This file brings together the globals variables and font settings with the "Lightest" color set and "Large" scale system specification.

Color sets

Darkest

@import '@spectrum-web-components/styles/theme-darkest.css';

This file provides only the variables needed to power a color pallet featuring colors found in the "Darkest" theme.

Dark

@import '@spectrum-web-components/styles/theme-dark.css';

This file provides only the variables needed to power a color pallet featuring colors found in the "Dark" theme.

Light

@import '@spectrum-web-components/styles/theme-light.css';

This file provides only the variables needed to power a color pallet featuring colors found in the "Light" theme.

Lightest

@import '@spectrum-web-components/styles/theme-lightest.css';

This file provides only the variables needed to power a color pallet featuring colors found in the "Lightest" theme.

Scale

Medium

@import '@spectrum-web-components/styles/scale-medium.css';

This file provides only the variables needed to power the "Medium" scale system specification.

Large

@import '@spectrum-web-components/styles/scale-large.css';

This file provides only the variables needed to power the "Large" scale system specification.

Typography

@import '@spectrum-web-components/styles/typography.css';

This file provides a lit-html compliant version of the Spectrum Typography classes.