Skip to main content

Palette page producer

Project description

Palette Page Producer

Input: a SASS stylesheet (.scss), a LESS stylesheet (.less), or a GIMP palette (.gpl).

Output: an HTML document with boxes of the colors defined in the input file (in ~/.local/share/palpageproducer/output or the equivalent).

Dependencies:


I made this because I wanted an easy way to see what the colors in a webpage/game/etc. looked like together. Because Palette Page Producer also lists the variable names and hex codes of each color, it also makes it easy to copy a given value (e.g. to throw it into WebAIM's Color Contrast Checker).

Caveats:

  • PPP doesn't check if the output already exists before overwriting.
  • LESS files aren't as well-tested as the other formats yet and may have strange errors.
  • The output uses some fancy CSS features (like grid and vw) that not all browsers support.
  • RGB palette colors are converted to hex output. RGBA colors are ignored entirely.
  • If color I.D.s are duplicated (e.g. a GIMP palette with multiple colors named "Untitled"), PPP automatically appends a number to the I.D. to avoid overlap problems. This means that the I.D.s seen in the output may not match to the originals 100%.
  • The output uses a <style> element in the <head>, rather than creating two separate (.HTML and .CSS) files. Some linters don't like <style> tags under any circumstances, so you may get false "invalid" results, but the output is indeed valid HTML5.

I'd like to eventually add command line options to specify column count and output filename, but those aren't available yet.

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

palpageproducer-1.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distributions

palpageproducer-1.1.0-py3.7.egg (10.1 kB view details)

Uploaded Source

palpageproducer-1.1.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file palpageproducer-1.1.0.tar.gz.

File metadata

  • Download URL: palpageproducer-1.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for palpageproducer-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e14cf422c753e313ebfdbd53f13040c9c7bff2f4abdb8be6d471b0c24a88fc13
MD5 ac099a15eba713a52e00d4f049390763
BLAKE2b-256 df28156612930c384d330062aa4a338cf74841f29652cf28d2c21b3273a50061

See more details on using hashes here.

File details

Details for the file palpageproducer-1.1.0-py3.7.egg.

File metadata

  • Download URL: palpageproducer-1.1.0-py3.7.egg
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for palpageproducer-1.1.0-py3.7.egg
Algorithm Hash digest
SHA256 4abedd776a485d6638c1946472499fa49d69846c88756a89f7f5cf471387ccfd
MD5 91b437c98f1259a26f829480612b8a2f
BLAKE2b-256 6865fe097c333e1b70474299fa5a8a6adf10683db89f46068a5eedb0acc45751

See more details on using hashes here.

File details

Details for the file palpageproducer-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: palpageproducer-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for palpageproducer-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38d518e6b084350c89ed7a54e61510e9a5388b02902cf7460a11110ecfa5ffbe
MD5 0723c5e2fe1c02f8ac2f2239b0a73326
BLAKE2b-256 897b7e46f6b7ee778b8ed1ecfa9c1af8ab3270f6138f663c78c018449c1eb0fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page