Skip to content

Fix: color theme examples #1925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions book/coloring_and_theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -602,11 +602,11 @@ If you are working on a light background terminal, you can apply the light theme

```nu
# in $nu.config-path
use config light-theme # add this line to load the theme into scope
use std config light-theme # add this line to load the theme into scope
Copy link
Contributor

@fdncred fdncred May 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing it's probably better to use a slash here. iirc, not using a slash causes everything to be sourced. Same for the below change.

Suggested change
use std config light-theme # add this line to load the theme into scope
use std/config light-theme # add this line to load the theme into scope


$env.config = {
# ...
color_config: (light_theme) # if you want a light theme, replace `$dark_theme` to `$light_theme`
color_config: (light-theme) # if you want a light theme, replace `$dark_theme` to `$light_theme`
# ...
}
```
Expand All @@ -615,11 +615,11 @@ You can also load the dark theme.

```nu
# in $nu.config-path
use config dark-theme
use std config dark-theme

$env.config = {
# ...
color_config: (dark_theme)
color_config: (dark-theme)
# ...
}
```
Expand Down