Skip to content
Gneiss is pre-1.0 and subject to change. Its colors, names and ports may change before 1.0. The changelog lists every color change.

Nix

The repo is a Nix flake. It has every port as a package, for Linux and Apple silicon macOS, and the palette as data.

flake.nix
inputs.gneiss = {
url = "github:gneiss-theme/gneiss";
inputs.nixpkgs.follows = "nixpkgs";
};

packages.<system> has one package per port:

Package What it is
neovim A Neovim plugin with the gneiss colorscheme
vscode The VS Code extension, gneiss-theme.gneiss
alacritty An Alacritty config file with the colors, to import
vicinae A Vicinae theme file
obsidian The Obsidian theme’s folder, with theme.css and manifest.json
dist Every rendered file, as committed in the repo; the default package
site This site

In a Home Manager module, with the flake’s inputs passed in:

{ inputs, pkgs, ... }:
let
gneiss = inputs.gneiss.packages.${pkgs.stdenv.hostPlatform.system};
in
{
programs.neovim.plugins = [ gneiss.neovim ];
programs.vscode.profiles.default.extensions = [ gneiss.vscode ];
programs.alacritty.settings.general.import = [ "${gneiss.alacritty}" ];
xdg.configFile."vicinae/themes/gneiss.toml".source = gneiss.vicinae;
}

inputs.gneiss.lib.palette is palette.toml, parsed, for theming apps that have no port:

  • meta: the name and version.
  • base: the base colors, such as base.gneiss8.
  • colors: each role’s hex, such as colors.accent.
# A window manager's border, in the accent color
let colors = inputs.gneiss.lib.palette.colors; in
"rgb(${builtins.substring 1 6 colors.accent})"

In a clone of the repo:

Terminal window
nix run .#render # render colors/ and dist/ from palette.toml and templates/
nix flake check # check the rendered files, contrast, the ports and this site
nix build .#site # build this site into ./result