Skip to content

Commit d071345

Browse files
Correct light theme instructions to use module (#1842)
* Use standard library to set light theme * Change link for internal consistency
1 parent 4c9244f commit d071345

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

book/coloring_and_theming.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -597,25 +597,30 @@ if you want to go full-tilt on theming, you'll want to theme all the items I men
597597

598598
### Working on Light Background Terminal
599599

600-
Nushell's default config file contains a light theme definition, if you are working on a light background terminal, you can apply the light theme easily.
600+
Nushell's [standard library](/book/standard_library.md) contains a `config` module with default light and dark themes.
601+
If you are working on a light background terminal, you can apply the light theme easily.
601602

602603
```nu
603604
# in $nu.config-path
605+
use config light-theme # add this line to load the theme into scope
606+
604607
$env.config = {
605-
...
606-
color_config: $dark_theme # if you want a light theme, replace `$dark_theme` to `$light_theme`
607-
...
608+
# ...
609+
color_config: (light_theme) # if you want a light theme, replace `$dark_theme` to `$light_theme`
610+
# ...
608611
}
609612
```
610613

611-
You can just change it to light theme by replacing `$dark_theme` to `$light_theme`
614+
You can also load the dark theme.
612615

613616
```nu
614617
# in $nu.config-path
618+
use config dark-theme
619+
615620
$env.config = {
616-
...
617-
color_config: $light_theme # if you want a light theme, replace `$dark_theme` to `$light_theme`
618-
...
621+
# ...
622+
color_config: (dark_theme)
623+
# ...
619624
}
620625
```
621626

0 commit comments

Comments
 (0)