diff options
| author | 2024-10-12 20:51:26 +0000 | |
|---|---|---|
| committer | 2024-10-12 20:51:26 +0000 | |
| commit | 07c6bf1645d6d172a5f752a2dcbdeb5921ac1fce (patch) | |
| tree | b3fb786b1eea8a40d4ecb49a90afd07dc4d5bcd4 /README.md | |
add project
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..f267fe4 --- /dev/null +++ b/README.md @@ -0,0 +1,84 @@ +# base16-builder + +<!-- markdownlint-disable MD013 --> + +This repo provides a `builder.sh` to create your base16 colorschemes. + +## Dependecies + +- [lustache](https://luarocks.org/modules/olivine-labs/lustache); +- [lustache-cli](https://github.com/djmattyg007/lustache-cli); +- [tinty](https://github.com/tinted-theming/tinty). + +## Preparation + +Make sure you have the following structure for your project: + +```bash +├── colors +└── templates +``` + +Folder `templates` must contain the following files: + +```bash +├── body.mustache +├── config.yaml +└── head.mustache +``` + +with the following content: + +```mustache +# config.yaml + +default: + supported-systems: [base16] + filename: "colors/{{scheme-system}}-{{scheme-slug}}.theme" +``` + +The file `body.mustache` must contain a template for the program for which the color scheme is made, for example, for the program [wlr-which-key](https://github.com/MaxVerevkin/wlr-which-key) it will be as follows: + +```yaml +background: "#{{base00-hex}}" +color: "#{{base06-hex}}" +border: "#{{base0D-hex}}" +``` + +The file `head.mustache` contains metadata about the colorscheme: + +```yaml +# +# +# name: {{scheme-name}} +# author: {{{scheme-author}}} +# slug: {{scheme-slug}} +# slug-underscored: {{scheme-slug-underscored}} +# system: {{scheme-system}} +# variant: {{scheme-variant}} +# is-{{scheme-variant}}-variant: {{hasVariant}} +# +# +``` + +> If you will use this file, change the comment symbols to match the extensions of the final colorscheme file, if for example the colorscheme will be `base16-google-light.css`, then replace the symbol `#` with `/* */`, etc. + +Put `builder.sh` in your project directory, make it executable and launch it: + +## Usage + +```bash +cp base16-builder /path/to/your/project + +chmod +x builder.sh + +./builder.sh +``` + +## Summary + +I tried to make this build according to the [official spec](https://github.com/tinted-theming/home/blob/main/builder.md), i may have missed something, if so - create a ticket in [todo](https://todo.sr.ht/~blueingreen/base16-builder). + +## License + +MIT |
