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

Uploaded Python 3

File details

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

File metadata

  • Download URL: chrys-4.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 7fe467647db629a1083c1678dcc31e1fb6a3ca5b97718264041b6ee9c27fdbd7
MD5 673d0a13579f823400f718079171cb20
BLAKE2b-256 6694810b9322851ac82fc9076fc334559fee015fa19d8dd25bde64a7464c4261

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chrys-4.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 777f28cd2ba92681811db3142e3183c671335af31ad660501fe9a703524942fc
MD5 a5c276564e3260b1bdae68f0005d6fbb
BLAKE2b-256 aed6e3bb29d92445dd1a2a669916b32df21595cc3f006da2f1a9869350626160

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