Skip to main content

Palette page producer

Project description

Palette Page Producer

Input: a SASS stylesheet (.scss), a LESS stylesheet (.less), a GIMP 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 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.2.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distributions

palpageproducer-1.2.0-py3.8.egg (11.8 kB view details)

Uploaded Source

palpageproducer-1.2.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: palpageproducer-1.2.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for palpageproducer-1.2.0.tar.gz
Algorithm Hash digest
SHA256 e8c243bee79efed43a46173f508d288d1646fe89e06f383f7caf05ec176c4f2a
MD5 719a7cd3291b2f847549c4ae854cb12f
BLAKE2b-256 48b0780f4cb9e606fc226e916b91a199a2b45ce38628824c5104d3ab92588fde

See more details on using hashes here.

File details

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

File metadata

  • Download URL: palpageproducer-1.2.0-py3.8.egg
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for palpageproducer-1.2.0-py3.8.egg
Algorithm Hash digest
SHA256 e64752071ea17d4d69bbba0489dd45bd896168f1c9fb9d020fe7bd1a98f559b1
MD5 be004229bc5fda9b00a3067b6064a950
BLAKE2b-256 169963e187477f823bdfa9fa22c3c5e56ec95b8c276cbee0eea1cf36dd95c77b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: palpageproducer-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1

File hashes

Hashes for palpageproducer-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5b0e2b3ddeaabe319feb49281c38da70c22b4baca9065b405e3400af84a9815
MD5 a69237274304ee60a3f8ae6e561ed305
BLAKE2b-256 8b8adb0204d810f9e213d4d787727ae64eb2baca793fc2ea08a056fc7c14b907

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