Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@spectrum-css/vars

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-css/vars

The Spectrum CSS vars package

  • 9.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

@spectrum-css/vars

The vars component contains all the variables that drive the presentation of a component.

CSS Usage

The files within the css/ folder are unprocessed Spectrum DNA output. These contain ALL variables with raw data for each. These should be used if variables are required at build time.

The files within the dist/css/ folder contain processed DNA output, with references to only the DNA variables that change between color stops and scales. These should be if CSS custom properties are being used in-browser.

Updating DNA tokens / variables from Spectrum DNA

Update the DNA version in package.json

"@spectrum/spectrum-dna": "^x.y.z",

In root directory:

yarn install
yarn add -W -O @spectrum/spectrum-dna

Run the DNA update script:

cd components/vars
npm run update

Commit the new files with git add .; git commit -m "feat: update DNA to x.y.z" with x.y.z being the DNA version number matching the update in package.json.

Potential error resolving solutions

Clean Lerna, remove node_modules and reinstall Yarn dependencies.

npx lerna clean
rm -rf node_modules/
rm .yarnrc
yarn install

FAQs

Package last updated on 12 Jun 2023

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