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>
This commit is contained in:
Gabriel Talbert Bunt 2024-07-29 19:21:31 -04:00 committed by GitHub
parent b9de20c76e
commit feb2973dfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -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";

View file

@ -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.