My CSS themes for terminals, UIs, and programs.
This repo contains my source files and the dev environment I use to hack them into usable themes!
I'm using the following tools in this repo:
As long as those two tools have their latest stable versions installed, the below steps should go smoothly!
-
Clone down this repo
-
Run
npm i
in the repo root to install dependencies -
Add a script in
package.json
that exports variables you need/want:TARGET
: Required. Name of your target program/thing. will choose a folder from the project root to start in.SRC
: Optional. Sets the filename of your source file without extension.gulpfile.js
assumestheme
if this isn't provided.
For example, to start working on the
so3.css
Obsidian theme in this repo, this script works:"dev:obs:so3": "TARGET=obsidian SRC=so3 gulp"
-
Set up an
.env
file that has your destination paths with target included after an underscore, likeDEST_someTarget
. If not using the default source filetheme.css
, tack on the filename without extension.Some example keys to demonstrate:
For a
new-theme.css
file in asomeTarget
folder:DEST_someTarget_new-theme=/path/to/destination
For just the default
theme.css
file in this repo'sobsidian
folder:DEST_obsidian=path/to/destination
-
Edit the
expectedFilenames
object ingulpfile.js
to reflect what filename your target expects to use. If someTarget expectsuser.theme.css
,expectedFilenames
would include:someTarget: 'user.theme.css'
-
Finally, run your script to start Gulp and get your CSS compiling!