From feb2973dfa8232c07efbd2b48f11a5cfa2276570 Mon Sep 17 00:00:00 2001 From: Gabriel Talbert Bunt Date: Mon, 29 Jul 2024 19:21:31 -0400 Subject: [PATCH] doc: specify correct color attribute path (#491) Colors are accessible under config.lib.stylix.colors, not lib.stylix.colors. Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com> --- docs/src/configuration.md | 4 ++-- stylix/palette.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/configuration.md b/docs/src/configuration.md index e49ac5de..9f51a1ca 100644 --- a/docs/src/configuration.md +++ b/docs/src/configuration.md @@ -89,11 +89,11 @@ only the user override is used. When passing colors to unsupported targets or creating custom modules, it is possible to access values from the configured color scheme through -`lib.stylix.colors`. +`config.lib.stylix.colors`. An overview of the available values is shown below. ```nix -lib.stylix.colors = { +config.lib.stylix.colors = { base08 = "ff0000"; base08-hex-r = "ff"; base08-dec-r = "0.996094"; diff --git a/stylix/palette.nix b/stylix/palette.nix index 6522ef6e..c8676cc6 100644 --- a/stylix/palette.nix +++ b/stylix/palette.nix @@ -119,7 +119,7 @@ in { override = lib.mkOption { description = '' An override that will be applied to stylix.base16Scheme when generating - lib.stylix.colors. + config.lib.stylix.colors. Takes anything that a scheme generated by base16nix can take as argument to override.