lib: add color function collection

This commit is contained in:
ooks-io 2024-11-06 18:49:36 +11:00
parent 3773a25ef1
commit 9d5fcc0668
6 changed files with 512 additions and 1 deletions

View file

@ -4,10 +4,30 @@
inputs,
...
}: let
# My person functions
# my scuffed lib
ook-lib = {
builders = import ./builders.nix {inherit self lib inputs;};
mkNeovim = import ./mkNeovim.nix {inherit inputs;};
math = import ./math.nix {inherit lib;};
color = let
check = import ./color/check.nix {inherit lib;};
types = import ./color/types.nix {
inherit (ook-lib) math;
inherit check;
};
translate = import ./color/translate.nix {
inherit lib;
inherit (ook-lib) math;
inherit types;
};
utils = import ./color/utils.nix {
inherit (ook-lib) math;
inherit types translate;
};
in {
inherit check types translate;
inherit (utils) lighten darken saturate desaturate mkColorScale;
};
};
in {
_module.args.ook.lib = ook-lib;