deprecate stylix, fix minor gripes and bugs

This commit is contained in:
alisceon 2026-05-22 19:48:24 +02:00
parent 6b492bad2f
commit fb1ad8d919
42 changed files with 951 additions and 688 deletions

View file

@ -0,0 +1,88 @@
{ pkgs }:
let
dropHash = color:
builtins.substring 1 ((builtins.stringLength color) - 1) color;
palette = {
darkestGray = "#181818";
darkerGray = "#252525";
darkGray = "#3b3b3b";
gray = "#777777";
mutedGray = "#777777";
lightGray = "#b9b9b9";
lighterGray = "#dedede";
white = "#dedede";
red = "#ed4a46";
orange = "#e67f43";
yellow = "#dbb32d";
green = "#70b433";
magenta = "#eb6eb7";
purple = "#a580e2";
blue = "#368aeb";
cyan = "#3fc5b7";
};
paletteNoHash = builtins.mapAttrs (_: dropHash) palette;
in
{
inherit palette paletteNoHash;
colors = {
background = palette.darkestGray;
backgroundAlt = palette.darkerGray;
selection = palette.gray;
foreground = palette.lightGray;
foregroundBright = palette.lighterGray;
error = palette.red;
warning = palette.yellow;
success = palette.green;
accent = palette.purple;
};
polarity = "dark";
fonts = {
monospace = {
package = pkgs.inconsolata;
name = "Inconsolata";
};
sansSerif = {
package = pkgs.noto-fonts;
name = "NotoSans";
};
serif = {
package = pkgs.noto-fonts;
name = "NotoSerif";
};
emoji = {
package = pkgs.noto-fonts-color-emoji;
name = "noto-fonts-color-emoji";
};
sizes = {
applications = 14;
terminal = 14;
desktop = 14;
popups = 14;
};
};
cursor = {
package = pkgs.whitesur-cursors;
name = "WhiteSur-cursors";
size = 20;
};
icons = {
package = pkgs.whitesur-icon-theme;
light = "WhiteSur-light";
dark = "WhiteSur-dark";
};
gtk = {
theme = {
package = pkgs.adw-gtk3;
name = "adw-gtk3";
};
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./fonts.nix
./home-manager.nix
];
}

View file

@ -0,0 +1,13 @@
{ pkgs, ... }:
let
theme = import ./colors.nix { inherit pkgs; };
in
{
fonts.packages = [
theme.fonts.monospace.package
theme.fonts.sansSerif.package
theme.fonts.serif.package
theme.fonts.emoji.package
];
}

View file

@ -0,0 +1,15 @@
{ pkgs, ... }:
let
theme = import ./colors.nix { inherit pkgs; };
in
{
home-manager.sharedModules = [
({ ... }: {
_module.args.theme = theme;
imports = [
../../../home/modules/theme
];
})
];
}

View file

@ -1,65 +0,0 @@
{ pkgs, ... }:
{
stylix = {
enable = true;
autoEnable = true;
enableReleaseChecks = false;
base16Scheme = {
base00 = "#181818";
base01 = "#252525";
base02 = "#3b3b3b";
base03 = "#777777";
base04 = "#777777";
base05 = "#b9b9b9";
base06 = "#dedede";
base07 = "#dedede";
base08 = "#ed4a46";
base09 = "#e67f43";
base0A = "#dbb32d";
base0B = "#70b433";
base0C = "#eb6eb7";
base0D = "#a580e2";
base0E = "#368aeb";
base0F = "#3fc5b7";
};
polarity = "dark";
fonts = {
monospace = {
package = pkgs.inconsolata;
name = "Inconsolata";
};
sansSerif = {
package = pkgs.noto-fonts;
name = "NotoSans";
};
serif = {
package = pkgs.noto-fonts;
name = "NotoSerif";
};
emoji = {
package = pkgs.noto-fonts-color-emoji;
name = "noto-fonts-color-emoji";
};
sizes = {
applications = 14;
terminal = 14;
desktop = 14;
popups = 14;
};
};
cursor = {
package = pkgs.whitesur-cursors;
name = "WhiteSur-cursors";
size = 20;
};
icons = {
enable = true;
package = pkgs.whitesur-icon-theme;
light = "WhiteSur-light";
dark = "WhiteSur-dark";
};
};
}