Skip to main content

Palette page producer

Project description

Palette Page Producer

Input: a SASS stylesheet (.scss), a LESS stylesheet (.less), a GNU Image Manipulation Program palette (.gpl), or an Oomox colors file (often found in ~/config/oomox/colors).

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 GNU IMP 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.
  • Very long color I.D.s (in excess of, say, 90 characters, although your definition of "very long" may vary) may break the output layout, force horizontal scrolling, and yield undesirable results.

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.2.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distributions

palpageproducer-1.2.1-py3.8.egg (12.0 kB view details)

Uploaded Source

palpageproducer-1.2.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: palpageproducer-1.2.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.3

File hashes

Hashes for palpageproducer-1.2.1.tar.gz
Algorithm Hash digest
SHA256 a1b0b0d9f3396b67d8b44ef0fe5624128f9ca4e6290835e44879a33bdebec204
MD5 c559ae391d0e88bd6d92e1f4a5dfeb69
BLAKE2b-256 5bc36af048f6cc31447946e0a21d3322d64411da3b54e3c5c088235f21673304

See more details on using hashes here.

File details

Details for the file palpageproducer-1.2.1-py3.8.egg.

File metadata

  • Download URL: palpageproducer-1.2.1-py3.8.egg
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.3

File hashes

Hashes for palpageproducer-1.2.1-py3.8.egg
Algorithm Hash digest
SHA256 2ca1d928fdd5cb266409c831ee3c0d248db35d77b76467ed1493fc18f68b275f
MD5 cc5e2b3b905436678a41c8eaaad4cda5
BLAKE2b-256 e2e03e6b4b9db1e037f3631b12303fd143e1b9e1458517e0edcd183220edc2eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: palpageproducer-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.3

File hashes

Hashes for palpageproducer-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67a69dfe249a0ff9071151caf0d303acb1a29ebd5595fef69cd70aab420d09e4
MD5 9c2ec4617f471f61bfd067ef0abbe161
BLAKE2b-256 5b56c85e6ca0d3d71087018c12726cb1565dd164c44754a7b76f339faf47a25f

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