Skip to main content

A collection of color palettes for mapping and visualisation

Project description

chrys

A collection of color palettes for visualisation in JavaScript, Python and Sass.

Demo

netbek.github.io/chrys

Installation

Node.js and Sass

npm install chrys

Python 3.10 and up

pip install chrys

Usage

For instructions, refer to the docs.

Development: Installation

  1. 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 22
    
  2. Install uv:

    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  3. Create .pypirc:

    cp example.pypirc .pypirc
    
  4. Enter a PyPI API token as the password in .pypirc.

  5. 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-dist

Publish the JavaScript and Python distribution packages:

npm run publish-dist

Credit

Palettes from:

License

Copyright (c) 2017 Hein Bekker. Licensed under the BSD 3-Clause License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chrys-4.2.0.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chrys-4.2.0-py3-none-any.whl (42.8 kB view details)

Uploaded Python 3

File details

Details for the file chrys-4.2.0.tar.gz.

File metadata

  • Download URL: chrys-4.2.0.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for chrys-4.2.0.tar.gz
Algorithm Hash digest
SHA256 cad2ce165f296645f6f12c3b6720a5a56b07b58d6bf79d199c1b4e0876909fac
MD5 4e5b4fc0be6c5aa4bdd789b6343406ac
BLAKE2b-256 e83214aa4661d7a716a2c2fc0b925e16c018dec873d140b5dd98837d88c24f3f

See more details on using hashes here.

File details

Details for the file chrys-4.2.0-py3-none-any.whl.

File metadata

  • Download URL: chrys-4.2.0-py3-none-any.whl
  • Upload date:
  • Size: 42.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for chrys-4.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f505dbfd07f3d7234fae8c0c57d041d17bdfbe8dbebb442462273431362619d
MD5 d6b95dcb57be497b3cd87c7d5cd63473
BLAKE2b-256 c97bf776b23a90e53209d4f539b308d0eef22639c25e7fa89adcf7f9ce7bb643

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page