nu_scripts/themes/nu-themes/atelier-forest.nu
Antoine Stevan cc0719bdad
make the themes a module (#648)
related to
- https://github.com/nushell/nupm/pull/33

## description
with https://github.com/nushell/nupm/pull/33, Nupm can now install
separate modules from a single package 🥳

the `nu_scripts` are a package and looks like they contain a few
potential standalone modules:
- the themes
- the hooks
- the custom completions
- ...

this PR is a proposal to move `themes/` to `nu-themes/` and add
`./nu-themes/` as a module to the `nu-scripts` package.
that way when running `nupm install --path .` in the root of the
`nu_scripts`, a `nu-themes` module will be installed in
`$env.NUPM_HOME/modules`.

then one can run
```nushell
use nu-themes/themes/nushell-dark.nu
```
and next get the theme with
```nushell
nushell-dark
```
2023-10-23 18:25:04 +02:00

82 lines
2.5 KiB
Plaintext

export def main [] { return {
separator: "#a8a19f"
leading_trailing_space_bg: { attr: "n" }
header: { fg: "#7b9726" attr: "b" }
empty: "#407ee7"
bool: {|| if $in { "#3d97b8" } else { "light_gray" } }
int: "#a8a19f"
filesize: {|e|
if $e == 0b {
"#a8a19f"
} else if $e < 1mb {
"#3d97b8"
} else {{ fg: "#407ee7" }}
}
duration: "#a8a19f"
date: {|| (date now) - $in |
if $in < 1hr {
{ fg: "#f22c40" attr: "b" }
} else if $in < 6hr {
"#f22c40"
} else if $in < 1day {
"#c38418"
} else if $in < 3day {
"#7b9726"
} else if $in < 1wk {
{ fg: "#7b9726" attr: "b" }
} else if $in < 6wk {
"#3d97b8"
} else if $in < 52wk {
"#407ee7"
} else { "dark_gray" }
}
range: "#a8a19f"
float: "#a8a19f"
string: "#a8a19f"
nothing: "#a8a19f"
binary: "#a8a19f"
cellpath: "#a8a19f"
row_index: { fg: "#7b9726" attr: "b" }
record: "#a8a19f"
list: "#a8a19f"
block: "#a8a19f"
hints: "dark_gray"
search_result: { fg: "#f22c40" bg: "#a8a19f" }
shape_and: { fg: "#6666ea" attr: "b" }
shape_binary: { fg: "#6666ea" attr: "b" }
shape_block: { fg: "#407ee7" attr: "b" }
shape_bool: "#3d97b8"
shape_custom: "#7b9726"
shape_datetime: { fg: "#3d97b8" attr: "b" }
shape_directory: "#3d97b8"
shape_external: "#3d97b8"
shape_externalarg: { fg: "#7b9726" attr: "b" }
shape_filepath: "#3d97b8"
shape_flag: { fg: "#407ee7" attr: "b" }
shape_float: { fg: "#6666ea" attr: "b" }
shape_garbage: { fg: "#FFFFFF" bg: "#FF0000" attr: "b" }
shape_globpattern: { fg: "#3d97b8" attr: "b" }
shape_int: { fg: "#6666ea" attr: "b" }
shape_internalcall: { fg: "#3d97b8" attr: "b" }
shape_list: { fg: "#3d97b8" attr: "b" }
shape_literal: "#407ee7"
shape_match_pattern: "#7b9726"
shape_matching_brackets: { attr: "u" }
shape_nothing: "#3d97b8"
shape_operator: "#c38418"
shape_or: { fg: "#6666ea" attr: "b" }
shape_pipe: { fg: "#6666ea" attr: "b" }
shape_range: { fg: "#c38418" attr: "b" }
shape_record: { fg: "#3d97b8" attr: "b" }
shape_redirection: { fg: "#6666ea" attr: "b" }
shape_signature: { fg: "#7b9726" attr: "b" }
shape_string: "#7b9726"
shape_string_interpolation: { fg: "#3d97b8" attr: "b" }
shape_table: { fg: "#407ee7" attr: "b" }
shape_variable: "#6666ea"
background: "#1b1918"
foreground: "#a8a19f"
cursor: "#a8a19f"
}}