Utilities aimed at producing homogeneous color themes
Python Shell
Permalink
Failed to load latest commit information.
examples
extra
logo
.gitignore
LICENSE
README.md
trtpl

README.md

logo

Usage

trtpl [OPTIONS] TEMPLATES_DIR

Description

trtpl renders templates via YAML color schemes and Jinja filters.

The directory structure present in the template directory is reproduced in the output directory.

The JINJA_FILTERS_DIR environment variable shall point to the directory holding your custom filters (trtpl will try to import $JINJA_FILTERS_DIR/trtpl_filters.py).

Options

  • -h, --help — Show the synopsis on standard output and exit.

  • -c, --color-scheme COLOR_SCHEME — Read colors from the given file.

  • -i, --color-space LCH|Lab|CMYK — Set the input color space.

  • -o, --output-directory OUTPUT_DIR — Define where the rendered templates will be stored.

  • -s, --filename-suffix SUFFIX — Add the given suffix to the output file names.

  • -p, --preserve-extensions — Preserve templates file name extensions in outputs.

Example Invocation

JINJA_FILTERS_DIR=./examples/filters ./trtpl -o output -c examples/color_schemes/ivory-dark.yaml -i LCH examples/templates
./output/redef

Required Libraries

  • python-colormath
  • python-jinja
  • python-yaml