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 hashes)

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Python 3

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