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

@ui-js/chromatic

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ui-js/chromatic - npm Package Compare versions

Comparing version 0.8.3 to 0.8.4

bin/chromatic

221

bin/package.json
{
"name": "@ui-js/chromatic",
"version": "0.8.2",
"description": "A build system for managing cross-platform design systems using design tokens.",
"publishConfig": {
"access": "public"
},
"keywords": [
"design tokens",
"design system",
"ui",
"theo",
"build system",
"css",
"sass",
"less",
"stylus",
"iOS",
"Android",
"style guide"
"name": "@ui-js/chromatic",
"version": "0.8.3",
"description": "A build system for managing cross-platform design systems using design tokens.",
"publishConfig": {
"access": "public"
},
"keywords": [
"design tokens",
"design system",
"ui",
"theo",
"build system",
"css",
"sass",
"less",
"stylus",
"iOS",
"Android",
"style guide"
],
"license": "MIT",
"files": [
"bin/**"
],
"engines": {
"node": ">=16.14.2"
},
"devDependencies": {
"@cortex-js/prettier-config": "^1.1.1",
"@rollup/plugin-node-resolve": "^13.1.3",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"eslint": "^8.12.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"lint-staged": "^12.3.7",
"prettier": "^2.6.2",
"rollup": "^2.70.1",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.2",
"typescript": "^4.6.3"
},
"dependencies": {
"chalk": "4.1.2",
"chokidar": "^3.5.3",
"chroma-js": "^2.4.2",
"ci-info": "^3.3.0",
"color": "^4.2.1",
"color-name": "^1.1.4",
"cosmiconfig": "^7.0.1",
"fs-extra": "^10.0.1",
"glob": "^7.2.0",
"handlebars": "^4.7.7",
"highlight.js": "^11.5.0",
"json5": "^2.2.1",
"marked": "^4.0.12",
"please-upgrade-node": "^3.2.0",
"resolve-from": "^5.0.0",
"string-similarity": "^4.0.4",
"update-notifier": "^5.1.0",
"yaml": "^1.10.2",
"yargs": "^17.4.0"
},
"repository": {
"type": "git",
"url": "https://github.com/ui-js/chromatic.git"
},
"bin": {
"chromatic": "./bin/chromatic"
},
"scripts": {
"build": "bash ./scripts/build.sh dev",
"build:prod": "bash ./scripts/build.sh production",
"chromatic": "node ./bin/chromatic",
"clean": "bash ./scripts/clean.sh",
"coverage": "bash ./scripts/test.sh coverage",
"lint": "prettier --ignore-path ./.prettierignore --write \"**/*.{ts,js,css,md,yml,json}\" \"!vendor/**\"",
"snapshot": "bash ./scripts/test.sh snapshot",
"test": "bash ./scripts/test.sh",
"watch": "rollup --config ./config/rollup.config.js --watch"
},
"prettier": "@cortex-js/prettier-config",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.ts": [
"eslint --fix",
"git add"
],
"license": "MIT",
"files": [
"bin/**"
"*.{js,css,json,md}": [
"prettier --write",
"git add"
]
},
"jest": {
"roots": [
"<rootDir>/test",
"<rootDir>/bin"
],
"engines": {
"npm": ">=6.14.8",
"node": ">=12.0.0"
},
"devDependencies": {
"@cortex-js/prettier-config": "^1.1.0",
"@rollup/plugin-node-resolve": "^11.1.0",
"@typescript-eslint/eslint-plugin": "^4.14.0",
"@typescript-eslint/parser": "^4.14.0",
"eslint": "^7.18.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-prettier": "^3.3.1",
"husky": "^4.3.8",
"jest": "^26.6.3",
"lint-staged": "^10.5.3",
"prettier": "^2.2.1",
"rollup": "^2.38.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-copy": "^3.3.0",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.29.0",
"typescript": "^4.1.3"
},
"dependencies": {
"chalk": "^4.1.0",
"chokidar": "^3.5.1",
"chroma-js": "^2.1.0",
"ci-info": "^2.0.0",
"color": "^3.1.3",
"color-name": "^1.1.4",
"cosmiconfig": "^7.0.0",
"fs-extra": "^9.1.0",
"glob": "^7.1.6",
"handlebars": "^4.7.6",
"highlight.js": "^10.5.0",
"json5": "^2.1.3",
"marked": "^1.2.7",
"please-upgrade-node": "^3.2.0",
"resolve-from": "^5.0.0",
"string-similarity": "^4.0.4",
"update-notifier": "^5.0.1",
"yaml": "^1.10.0",
"yargs": "^16.2.0"
},
"repository": {
"type": "git",
"url": "https://github.com/ui-js/chromatic.git"
},
"bin": {
"chromatic": "./bin/chromatic"
},
"scripts": {
"build": "bash ./scripts/build.sh dev",
"build:prod": "bash ./scripts/build.sh production",
"chromatic": "node ./bin/chromatic",
"clean": "bash ./scripts/clean.sh",
"coverage": "bash ./scripts/test.sh coverage",
"lint": "prettier --ignore-path ./.prettierignore --write \"**/*.{ts,js,css,md,yml,json}\" \"!vendor/**\"",
"snapshot": "bash ./scripts/test.sh snapshot",
"test": "bash ./scripts/test.sh",
"watch": "rollup --config ./config/rollup.config.js --watch"
},
"prettier": "@cortex-js/prettier-config",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.ts": [
"eslint --fix",
"git add"
],
"*.{js,css,json,md}": [
"prettier --write",
"git add"
]
},
"jest": {
"roots": [
"<rootDir>/test",
"<rootDir>/bin"
],
"coverageReporters": [
"lcov"
],
"coverageDirectory": "./coverage"
}
"coverageReporters": [
"lcov"
],
"coverageDirectory": "./coverage"
}
}
{
"name": "@ui-js/chromatic",
"version": "0.8.3",
"description": "A build system for managing cross-platform design systems using design tokens.",
"publishConfig": {
"access": "public"
},
"keywords": [
"design tokens",
"design system",
"ui",
"theo",
"build system",
"css",
"sass",
"less",
"stylus",
"iOS",
"Android",
"style guide"
"name": "@ui-js/chromatic",
"version": "0.8.4",
"description": "A build system for managing cross-platform design systems using design tokens.",
"publishConfig": {
"access": "public"
},
"keywords": [
"design tokens",
"design system",
"ui",
"theo",
"build system",
"css",
"sass",
"less",
"stylus",
"iOS",
"Android",
"style guide"
],
"license": "MIT",
"files": [
"bin/**"
],
"engines": {
"node": ">=16.14.2"
},
"devDependencies": {
"@cortex-js/prettier-config": "^1.1.1",
"@rollup/plugin-node-resolve": "^13.1.3",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"eslint": "^8.12.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"lint-staged": "^12.3.7",
"prettier": "^2.6.2",
"rollup": "^2.70.1",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.2",
"typescript": "^4.6.3"
},
"dependencies": {
"chalk": "4.1.2",
"chokidar": "^3.5.3",
"chroma-js": "^2.4.2",
"ci-info": "^3.3.0",
"color": "^4.2.1",
"color-name": "^1.1.4",
"cosmiconfig": "^7.0.1",
"fs-extra": "^10.0.1",
"glob": "^7.2.0",
"handlebars": "^4.7.7",
"highlight.js": "^11.5.0",
"json5": "^2.2.1",
"marked": "^4.0.12",
"please-upgrade-node": "^3.2.0",
"resolve-from": "^5.0.0",
"string-similarity": "^4.0.4",
"update-notifier": "^5.1.0",
"yaml": "^1.10.2",
"yargs": "^17.4.0"
},
"repository": {
"type": "git",
"url": "https://github.com/ui-js/chromatic.git"
},
"bin": {
"chromatic": "./bin/chromatic"
},
"scripts": {
"build": "bash ./scripts/build.sh dev",
"build:prod": "bash ./scripts/build.sh production",
"chromatic": "node ./bin/chromatic",
"clean": "bash ./scripts/clean.sh",
"coverage": "bash ./scripts/test.sh coverage",
"lint": "prettier --ignore-path ./.prettierignore --write \"**/*.{ts,js,css,md,yml,json}\" \"!vendor/**\"",
"snapshot": "bash ./scripts/test.sh snapshot",
"test": "bash ./scripts/test.sh",
"watch": "rollup --config ./config/rollup.config.js --watch"
},
"prettier": "@cortex-js/prettier-config",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.ts": [
"eslint --fix",
"git add"
],
"license": "MIT",
"files": [
"bin/**"
"*.{js,css,json,md}": [
"prettier --write",
"git add"
]
},
"jest": {
"roots": [
"<rootDir>/test",
"<rootDir>/bin"
],
"engines": {
"npm": ">=6.14.8",
"node": ">=12.0.0"
},
"devDependencies": {
"@cortex-js/prettier-config": "^1.1.0",
"@rollup/plugin-node-resolve": "^11.1.0",
"@typescript-eslint/eslint-plugin": "^4.14.0",
"@typescript-eslint/parser": "^4.14.0",
"eslint": "^7.18.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-prettier": "^3.3.1",
"husky": "^4.3.8",
"jest": "^26.6.3",
"lint-staged": "^10.5.3",
"prettier": "^2.2.1",
"rollup": "^2.38.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-copy": "^3.3.0",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.29.0",
"typescript": "^4.1.3"
},
"dependencies": {
"chalk": "^4.1.0",
"chokidar": "^3.5.1",
"chroma-js": "^2.1.0",
"ci-info": "^2.0.0",
"color": "^3.1.3",
"color-name": "^1.1.4",
"cosmiconfig": "^7.0.0",
"fs-extra": "^9.1.0",
"glob": "^7.1.6",
"handlebars": "^4.7.6",
"highlight.js": "^10.5.0",
"json5": "^2.1.3",
"marked": "^1.2.7",
"please-upgrade-node": "^3.2.0",
"resolve-from": "^5.0.0",
"string-similarity": "^4.0.4",
"update-notifier": "^5.0.1",
"yaml": "^1.10.0",
"yargs": "^16.2.0"
},
"repository": {
"type": "git",
"url": "https://github.com/ui-js/chromatic.git"
},
"bin": {
"chromatic": "./bin/chromatic"
},
"scripts": {
"build": "bash ./scripts/build.sh dev",
"build:prod": "bash ./scripts/build.sh production",
"chromatic": "node ./bin/chromatic",
"clean": "bash ./scripts/clean.sh",
"coverage": "bash ./scripts/test.sh coverage",
"lint": "prettier --ignore-path ./.prettierignore --write \"**/*.{ts,js,css,md,yml,json}\" \"!vendor/**\"",
"snapshot": "bash ./scripts/test.sh snapshot",
"test": "bash ./scripts/test.sh",
"watch": "rollup --config ./config/rollup.config.js --watch"
},
"prettier": "@cortex-js/prettier-config",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.ts": [
"eslint --fix",
"git add"
],
"*.{js,css,json,md}": [
"prettier --write",
"git add"
]
},
"jest": {
"roots": [
"<rootDir>/test",
"<rootDir>/bin"
],
"coverageReporters": [
"lcov"
],
"coverageDirectory": "./coverage"
}
"coverageReporters": [
"lcov"
],
"coverageDirectory": "./coverage"
}
}
# Chromatic
A tool to help manage design systems by generating platform-specific files from a source file describing design tokens.
A tool to help manage design systems by generating platform-specific files from
a source file describing design tokens.
### Expressive Design Tokens
Tokens can contain rich expressions in a natural syntax, including arithmetic operations, units (`12px`), function (`rgb()`, `mix()`, `saturate()`...) and references to other tokens.
Tokens can contain rich expressions in a natural syntax, including arithmetic
operations, units (`12px`), function (`rgb()`, `mix()`, `saturate()`...) and
references to other tokens.
```yaml
tokens:
primary-hue: '210deg'
primary: 'hsl({primary-hue}, 100%, 40%)'
primary-dark: 'darken({primary}, 20%)'
primary-hue: '210deg'
primary: 'hsl({primary-hue}, 100%, 40%)'
primary-dark: 'darken({primary}, 20%)'
line-height: '18pt + 5px'
line-height: '18pt + 5px'
```

@@ -20,10 +23,11 @@

Each token can have a theme variant, such as dark/light, or compact/cozy layouts. The necessary output artifacts are generated automatically.
Each token can have a theme variant, such as dark/light, or compact/cozy
layouts. The necessary output artifacts are generated automatically.
```yaml
tokens:
cta-button-background:
value:
dark: '#004082'
light: '#0066ce'
cta-button-background:
value:
dark: '#004082'
light: '#0066ce'
```

@@ -33,5 +37,7 @@

Get going quickly. A simple **token file** written YAML or JSON file is all you need.
Get going quickly. A simple **token file** written YAML or JSON file is all you
need.
But Chromatic is also customizable when you need to. You can write or modify the format of the output files to suit your needs.
But Chromatic is also customizable when you need to. You can write or modify the
format of the output files to suit your needs.

@@ -44,5 +50,5 @@ Chromatic is also available as an API that can be invoked from a build system.

- for the web (Sass, CSS)
- for iOS (JSON, plist)
- for Android (XML)
- for the web (Sass, CSS)
- for iOS (JSON, plist)
- for Android (XML)

@@ -70,4 +76,4 @@ Chromatic can also generate a style guide as a HTML file.

tokens:
background: '#f1f1f1'
body-color: '#333'
background: '#f1f1f1'
body-color: '#333'
```

@@ -90,4 +96,4 @@

tokens:
background: '#222'
body-color: '#a0a0a0'
background: '#222'
body-color: '#a0a0a0'
```

@@ -99,4 +105,4 @@

tokens:
background: '#f1f1f1'
body-color: '#333'
background: '#f1f1f1'
body-color: '#333'
```

@@ -110,9 +116,9 @@

:root {
--background: #f1f1f1;
--body-color: #333;
--background: #f1f1f1;
--body-color: #333;
}
body[data-theme='dark'] {
--background: #222;
--body-color: #a0a0a0;
--background: #222;
--body-color: #a0a0a0;
}
```
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