You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
4 years ago | |
---|---|---|
images | 4 years ago | |
.gitignore | 4 years ago | |
AutoBase16Theme.py | 4 years ago | |
LICENSE | 4 years ago | |
Planning.org | 4 years ago | |
ReadMe.org | 4 years ago | |
base16-my-auto-theme.el | 4 years ago | |
emacs-base16-theme-template.el | 4 years ago |
ReadMe.org
Auto Base16 Theme
This script generates a base16 color theme intended for code syntax highlighting.
I'm primarily focusing on doing this for Emacs, but it should work for any editor which supports base16.
Setup
This script relies on schemer2 to choose colors from images. It then takes the output of schemer2 and selects colors which fit the base16 format. Install schemer2:
go get github.com/thefryscorer/schemer2
This script requires Python 3.
How to Use
Run the following command, replacing "your image" with the image you want the theme's colors to be pulled from:
schemer2 -format img::colors -in [your image] -out colors.txt && python3 AutoBase16Theme.py
Automating the execution of this so that it updates with your desktop background is left as an exercise for the reader :).
Example results