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) or column counts of 9 or more may break the output layout, force horizontal scrolling, and yield undesirable results.

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

Uploaded Source

Built Distributions

palpageproducer-1.3.0-py3.9.egg (17.0 kB view details)

Uploaded Source

palpageproducer-1.3.0-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: palpageproducer-1.3.0.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/56.2.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.5

File hashes

Hashes for palpageproducer-1.3.0.tar.gz
Algorithm Hash digest
SHA256 192b48cc3de1ba6e09e4c241a5c7c5524dde741831894f1f5bd370e8c284c279
MD5 cbfad598e1c5d459457b98f48cf9f32c
BLAKE2b-256 2330ee0079d36c08f452797add74f3a998f89b9674cc65d87df698cd162610a5

See more details on using hashes here.

File details

Details for the file palpageproducer-1.3.0-py3.9.egg.

File metadata

  • Download URL: palpageproducer-1.3.0-py3.9.egg
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/56.2.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.5

File hashes

Hashes for palpageproducer-1.3.0-py3.9.egg
Algorithm Hash digest
SHA256 2f6ac49624c4e61bd2ee478d072be30551928010a8e7c9d9c2206c99a142dd47
MD5 f83df35c1a3215e90b66e0cc500c96c1
BLAKE2b-256 322f3197564fe3c4e47487364527cc9db4336360f9df789cdcb90d98b3d2908e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: palpageproducer-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 21.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/56.2.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.5

File hashes

Hashes for palpageproducer-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25929204b8d3c2376512ad5364b124d924bb988940c0b8c7615225e171968f9f
MD5 9c1b18cb534b0c545705dfb0053f1cd0
BLAKE2b-256 0cde32e652d639b06d7a5ad5165c9be287eaa7350ab8daed0e0a2309678eead3

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