Closes: https://github.com/nix-community/stylix/issues/1924 Link: https://github.com/nix-community/stylix/pull/1932 Link: https://github.com/nix-community/stylix/pull/2177 Reviewed-by: 0xda157 <da157@voidq.com> Co-authored-by: khas-amir <dlordproudd@gmail.com> Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{
|
|
mkTarget,
|
|
lib,
|
|
options,
|
|
pkgs,
|
|
...
|
|
}:
|
|
mkTarget {
|
|
config = lib.optionals (options.programs ? dank-material-shell) (
|
|
{ colors }:
|
|
{
|
|
programs.dank-material-shell.settings = {
|
|
currentThemeName = "custom";
|
|
customThemeFile =
|
|
let
|
|
theme = with colors.withHashtag; {
|
|
name = "Stylix";
|
|
primary = base0D;
|
|
primaryText = base00;
|
|
primaryContainer = base0C;
|
|
secondary = base0E;
|
|
surface = base01;
|
|
surfaceText = base05;
|
|
surfaceVariant = base02;
|
|
surfaceVariantText = base04;
|
|
surfaceTint = base0D;
|
|
background = base00;
|
|
backgroundText = base05;
|
|
outline = base03;
|
|
surfaceContainer = base01;
|
|
surfaceContainerHigh = base02;
|
|
surfaceContainerHighest = base03;
|
|
error = base08;
|
|
warning = base0A;
|
|
info = base0C;
|
|
};
|
|
in
|
|
pkgs.writeText "dankMaterialShell-stylix-color-theme.json" (
|
|
builtins.toJSON {
|
|
dark = theme;
|
|
light = theme;
|
|
}
|
|
);
|
|
};
|
|
}
|
|
);
|
|
}
|