chrys
v4.2.2
Published
A collection of color palettes for visualisation in JavaScript, Python and Sass
Readme
chrys
A collection of color palettes for visualisation in JavaScript, Python and Sass.
Demo
Installation
Node.js and Sass
npm install chrysPython 3.10 and up
pip install chrysUsage
For instructions, refer to the docs.
Development: Installation
Install Node 22.x:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash source ~/.bashrc nvm install 22 nvm use 22Install uv:
curl -LsSf https://astral.sh/uv/install.sh | shCreate
.pypirc:cp example.pypirc .pypircEnter a PyPI API token as the password in
.pypirc.Install Node and Python dependencies:
npm ci uv sync
Development: Usage
Patch Node dependencies to fix ESM imports:
npx patch-package @bokeh/bokehjs --exclude 'nothing'
npx patch-package vega-scale --exclude 'nothing'Build the palette data, JavaScript and Python distribution packages, Sass, CSS, Illustrator scripts:
npm run build-data
npm run build-distPublish the JavaScript and Python distribution packages:
npm run publish-distCredit
Palettes from:
License
Copyright (c) 2017 Hein Bekker. Licensed under the BSD 3-Clause License.
