/we-love-colors

PANTONE®, RAL®, Dulux®, Copic® and Prismacolor® color palettes for Scribus, GIMP & Inkscape, the Python way.

Primary LanguagePythonMIT LicenseMIT

We love colors!

This library provides an easy way to generate color palettes:

In computer graphics, a palette is a finite set of colors. — Wikipedia article 'Palette (Computing)'

.. often referred to as Swatches (as branded by Adobe Inc.):

Swatches are named colors, tints, gradients, and patterns. — Adobe Illustrator

.. featuring the following (proprietary) color spaces:

For now, we-love-colors creates master palettes for use in

Getting started

Depending on your setup you might prefer a ..

Local installation via virtualenv

Running setup.sh will install all dependencies inside a virtual environment, ready for action.

Global installation via requirements.txt

It's as easy as pip install -r requirements.txt, but you might want to make sure that Python v3 is installed on your system.

Usage

Fetching color sets and processing them is really straightforward - for everything else, there's --help:

$ python main.py
Usage: main.py [OPTIONS] COMMAND [ARGS]...

Options:
  -v, --version  Show the version and exit.
  -h, --help     Show this message and exit.

Commands:
  fetch    ARGS: pantone | ral | dulux | copic | prismacolor
  process  ARGS: pantone | ral | dulux | copic | prismacolor

Using its commands fetch and process is fairly easy, like that:

# Example 1 - Gotta fetch 'em `--all`:
$ python main.py fetch --all && python main.py process

# Example 2 - Fetching specific sets & processing them:
$ python main.py fetch copic dulux && python main.py process copic dulux

FAQ

Q: But where do all those files go? A: That depends, ..

  • .. .xml files may be loaded individually with Edit - Colours & Fills - Solid Colours - Import (Scribus)
  • .. .soc files belong here:
    • ~\AppData\Roaming\libreoffice\3\user (Windows + PowerShell, otherwise %userprofile%)
    • ~/Library/Application Support/libreoffice/4/user/config (Mac)
    • ~/.config/libreoffice/4/user/config (Linux)
  • .. installing .gpl files boils down to:
    • moving them to any path specified in Edit - Preferences - Folders - Palettes (GIMP)
    • moving them to palettes under directory specified in Edit - Preferences - System - User Config (Inkscape)
  • .. installing .acb files is pretty straightforward

Color samples

If you are looking for a quick way to browse PANTONE® colors, check out the Pantone Finder package or visit their website to get started.

For all included colors, there are preview files, to be found in the examples folder: Open up index.html, generated with examples.py (for its PHP version, just php -S localhost:8000).

When clicking a color tile, its hex value is copied to your clipboard - brought to you by clipboard.js.

Copyright

Whenever mentioned throughout this project, PANTONE® and related trademarks are the property of Pantone LLC, a division of X-Rite, a Danaher company.

The same applies to ..

We assume neither ownership nor intellectual property of any kind - color codes (and names), sRGB and/or hexadecimal values are publically available on (one of) their respective websites.

Similar projects

  • For Scribus, there's also the (currently unmaintained) package SwatchBooker

Happy coding!

©️ Fundevogel Kinder- und Jugendbuchhandlung