Embed styles in gold library

This commit is contained in:
Christian Muehlhaeuser
2019-12-06 01:34:27 +01:00
parent 6f31dbf5ec
commit 6fe32ed145
10 changed files with 200 additions and 5 deletions
+17
View File
@@ -13,6 +13,23 @@ color and terminal codes instead of CSS properties and hex colors.
See [cmd/gold](cmd/gold/).
## Example Output
![Gold Dark Style](https://github.com/charmbracelet/gold/raw/master/styles/dark.png)
Check out the [Gold Style Gallery](https://github.com/charmbracelet/gold/blob/master/styles/README.md)!
## Colors
Currently `gold` uses the [Aurora ANSI colors](https://godoc.org/github.com/logrusorgru/aurora#Index).
## Development
Style definitions located in `styles/` can be embedded into the binary by
running [statik](https://github.com/rakyll/statik):
```
statik -f -src styles -include "*.json"
```
You can re-generate screenshots of all available styles by running `gallery.sh`.
This requires `termshot` and `pngcrush` installed on your system!