theme.nix (440B) download
1{ lib }:
2let
3 colors = {
4 black = "#282828";
5 blue = "#83a598";
6 gray2 = "#282828";
7 gray3 = "#3c3836";
8 gray4 = "#282828";
9 green = "#8ec07c";
10 orange = "#fe8019";
11 pink = "#d3869b";
12 red = "#fb4934";
13 white = "#ebdbb2";
14 yellow = "#b8bb26";
15 };
16
17 header = lib.concatStrings (lib.mapAttrsToList (name: value: "static const char ${name}[] = \"${value}\";\n") colors);
18in
19builtins.toFile "theme.h" header