Skip to content

netbek/chrys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

501 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.13 and up

pip install chrys

Usage

For instructions, refer to the docs.

Development: Installation

  1. Install Nix:

    sh <(curl -L https://nixos.org/nix/install) --daemon
  2. Configure Nix. Edit /etc/nix/nix.conf (for a multi-user installation) or ~/.config/nix/nix.conf (for a single-user installation) to include the following lines:

    experimental-features = nix-command flakes
    trusted-users = root <USER>

    Replace <USER> with your username on your computer.

  3. Install direnv:

    sudo apt install direnv
  4. Enable direnv in your shell by adding a line to your shell configuration file.

    For Bash, edit ~/.bashrc:

    eval "$(direnv hook bash)"
  5. Allow .envrc:

    direnv allow
  6. Create .pypirc:

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

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:

make build-data

Build and publish the JavaScript and Python distribution packages:

make bump-version [major|minor|patch]
git push
make build-dist-and-commit
git push
make create-release
make publish

Credit

Palettes from:

License

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors