1
Fork 0
mirror of https://github.com/RGBCube/ThemeNix synced 2025-07-28 17:07:46 +00:00

Add project

This commit is contained in:
RGBCube 2023-11-26 18:42:35 +03:00
parent 9698f044be
commit 983157e8ee
No known key found for this signature in database
253 changed files with 5335 additions and 0 deletions

62
flake.nix Normal file
View file

@ -0,0 +1,62 @@
{
description = "Theme your NixOS configuration consistently.";
outputs = { self }: builtins.mapAttrs (_: theme: let
themeDescriptiveNames = with theme; {
background = base00;
lighterBackground = base01;
selectionBackground = base02;
comment = base03;
invisible = base03;
lineHighlight = base03;
darkForeground = base04;
defaultForeground = base05;
caret = base05;
delimiter = base05;
operator = base05;
lightForeground = base06;
lightBackground = base07;
variable = base08;
xmlTag = base08;
markupLinkText = base08;
markupList = base08;
diffDeleted = base08;
integer = base09;
boolean = base09;
constant = base09;
xmlAttributes = base09;
markupLinkUrl = base09;
classes = base0A;
markupBold = base0A;
searchTextBackground = base0A;
strings = base0B;
inheritedClass = base0B;
markupCode = base0B;
diffInserted = base0B;
support = base0C;
regularExpression = base0C;
escapeCharacter = base0C;
markupQuote = base0C;
function = base0D;
method = base0D;
attributeId = base0D;
heading = base0D;
keyword = base0E;
storage = base0E;
selector = base0E;
markupItalic = base0E;
diffChanged = base0E;
deprecated = base0F;
openingClosingEmbeddedLanguageTag = base0F;
};
enrichedTheme = theme // themeDescriptiveNames;
enrichedThemeOnlyColors = builtins.removeAttrs enrichedTheme [ "name" "author" ];
enrichedThemeHelpers = {
with0x = builtins.mapAttrs (_: value: "0x" + value) enrichedThemeOnlyColors;
withHashtag = builtins.mapAttrs (_: value: "#" + value) enrichedThemeOnlyColors;
};
in enrichedTheme // enrichedThemeHelpers) (import ./themes.nix);
}