Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Update the repository with the latest base16 colorschemes
on:
schedule:
- cron: "0 0 * * 0" # https://crontab.guru/every-week
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install pybase16
run: pip install pybase16-builder
- name: Fetch the repository code
uses: actions/checkout@v2
- name: Run make
run: make
- name: Commit the changes, if any
uses: stefanzweifel/git-auto-commit-action@v4.1.1
with:
commit_message: Update repository with the latest base16 colorschemes
branch: ${{ github.head_ref }}
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sources
schemes
sources.yaml

templates/*

!/templates/config.yaml
!/templates/default.mustache
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Ref: https://github.com/theova/base16-qutebrowser
.PHONY: all clean update build

BUILD=pybase16
REPO=$(shell pwd)
TEMPLATE=$(shell basename ${REPO})
THEME_DIR=colors
TEMPLATE_DIR=templates
OUTPUT=output

all: update build

update:
$(BUILD) update

build:
$(BUILD) build -t ${REPO} -o ${OUTPUT}
rm -rf ${THEME_DIR}
mv ${OUTPUT}/${TEMPLATE}/${THEME_DIR}/ ${THEME_DIR}/

clean:
rm -rf ${OUTPUT} ${TEMPLATE_DIR}/*/
26 changes: 21 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Base16 Vim
See the [Base16 repository](https://github.com/chriskempson/base16) for more information.
This theme was built with [Base16 Builder PHP](https://github.com/chriskempson/base16-builder-php).
See the [Base16 repository](https://github.com/chriskempson/base16) for more information.
This theme was built with [base16-builder-python](https://github.com/InspectorMustache/base16-builder-python).

Supports graphical Vim and console Vim.

Expand Down Expand Up @@ -35,13 +35,13 @@ Add the following to your `~/.vimrc` file and run `PlugInstall` in Vim.
cd ~/.vim/colors
git clone git://github.com/chriskempson/base16-vim.git base16
cp base16/colors/*.vim .
## 256 colorspace

## 256 colorspace
If using a Base16 terminal theme designed to keep the 16 ANSI colors intact (a "256" variation) **and** have sucessfully modified your 256 colorspace with [base16-shell](https://github.com/chriskempson/base16-shell) you'll need to add the following to your `~/.vimrc` **before** the colorsheme declaration.

let base16colorspace=256 " Access colors present in 256 colorspace

This will cause vim to access the colours in the modified 256 colorspace. Please **do not** enable this simply because you have a 256 color terminal as this will cause colors to be displayed incorrectly.
This will cause vim to access the colours in the modified 256 colorspace. Please **do not** enable this simply because you have a 256 color terminal as this will cause colors to be displayed incorrectly.

## Troubleshooting
There is a script to help troubleshoot colour issues called `colortest` available in the [Base16 Shell](https://github.com/chriskempson/base16-shell) repository.
Expand Down Expand Up @@ -78,3 +78,19 @@ augroup on_change_colorschema
autocmd ColorScheme * call s:base16_customize()
augroup END
```

## Building
Dependencies:

- Python, at least version 3.5
- The `pybase16` command from [base16-builder-python](https://github.com/InspectorMustache/base16-builder-python)
- The `make` command

```
# Install dependencies (you probably already have pip/pip3 and make)
apt install build-essential # for make
pip3 install pybase16-builder

# Build the packages
make
```
Loading