Skip to content

CosmosAtlas/base16-color-palette-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Base 16 Color Palette Creator

A tool to generate a pretty image show casing a color palette from a base16 color scheme.

Example output for the DanQing theme. DanQing color palette

Features

  • Automatically generate a palette figure from base16 scheme yaml files
  • Automatically determine whether the light or dark text color should be used for each color block

Run

The script depends on pillow and pyyaml. You'll also need to supply your own font. If you're on Linux, you can find your system fonts at /usr/share/fonts/.

At the moment, everything is pretty hardcoded inside the script, so you'll need to modify the script to get the output. Right now, if everything is supplied correct, the output will be stored as palette.png in the same directory.

TODO

Probably won't happen, but here are some possible things to improve on.

  • Refactor the drawing for each color block
  • Make the script self-contained (e.g., do not require editing to produce results)
  • More styles of color palette output

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages