mirror of
https://github.com/RGBCube/ThemeNix
synced 2025-07-29 01:17:45 +00:00
Expose raw themes
This commit is contained in:
parent
f51353fe8a
commit
96f402df7f
2 changed files with 14 additions and 1 deletions
11
README.md
11
README.md
|
@ -23,6 +23,17 @@ let
|
|||
in {}
|
||||
```
|
||||
|
||||
If you want to create your own theme based on an included theme, you can do this:
|
||||
|
||||
```nix
|
||||
let
|
||||
myTheme = themes.custom (themes.raw.tango // {
|
||||
base00 = "2E3436";
|
||||
accent = themes.raw.tango.base0A; # Custom properties also work!
|
||||
})
|
||||
in {}
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>All themes</summary>
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
description = "Theme your NixOS configuration consistently.";
|
||||
|
||||
outputs = { self }: {
|
||||
raw = import ./themes.nix;
|
||||
|
||||
custom = theme: let
|
||||
onlyColors = builtins.removeAttrs theme [ "name" "author" ];
|
||||
|
||||
|
@ -15,5 +17,5 @@
|
|||
tmTheme = (import ./templates/tmTheme.nix) themeFull;
|
||||
adwaitaGtkCss = (import ./templates/adwaitaGtkCss.nix) themeFull;
|
||||
};
|
||||
} // builtins.mapAttrs (name: self.custom) (import ./themes.nix);
|
||||
} // builtins.mapAttrs (name: self.custom) self.raw;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue