1.1.0 • Published 3 years ago

@spectrum-css/dietvars v1.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

@spectrum-css/dietvars

The vars component contains all the variables that drive the presentation of a component. This is the diet version.

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 
1.1.0

3 years ago

1.0.0-beta.11

3 years ago

1.0.0-beta.10

3 years ago

1.0.0-beta.8

3 years ago

1.0.0-beta.9

3 years ago

1.0.0-beta.6

3 years ago

1.0.0-beta.7

3 years ago

1.0.0-beta.5

3 years ago

1.0.0-beta.2

3 years ago

1.0.0-beta.3

3 years ago

1.0.0-beta.4

3 years ago

1.0.0-beta.1

3 years ago

1.0.0

3 years ago