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.1.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.1-py3-none-any.whl (42.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chrys-4.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 0cb6b6bb78340495cc1e98c70637eadd78637b96d6776c8d95fa9dc95a1f9469
MD5 36041f4704e9433112a19f4516f756d2
BLAKE2b-256 4e74a8791d0b48b11c12a283892cf5e9df409dee786f20fba004a9f5cd9d1786

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chrys-4.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9e7bf2e2267be68b9ded1a3d73d78d5cf5148491983e2b9fee665d187971ad29
MD5 79beb0a5d30970b674b326ff614f3a2d
BLAKE2b-256 eb3f45e2bc102cd676f76170c04c156df04bf418b0ad98f67c397683fe1a2e91

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