nu_scripts/themes/nu-themes/harmonic16-light.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: "#405c79"
leading_trailing_space_bg: { attr: "n" }
header: { fg: "#56bf8b" attr: "b" }
empty: "#8b56bf"
bool: {|| if $in { "#568bbf" } else { "light_gray" } }
int: "#405c79"
filesize: {|e|
if $e == 0b {
"#405c79"
} else if $e < 1mb {
"#568bbf"
} else {{ fg: "#8b56bf" }}
}
duration: "#405c79"
date: {|| (date now) - $in |
if $in < 1hr {
{ fg: "#bf8b56" attr: "b" }
} else if $in < 6hr {
"#bf8b56"
} else if $in < 1day {
"#8bbf56"
} else if $in < 3day {
"#56bf8b"
} else if $in < 1wk {
{ fg: "#56bf8b" attr: "b" }
} else if $in < 6wk {
"#568bbf"
} else if $in < 52wk {
"#8b56bf"
} else { "dark_gray" }
}
range: "#405c79"
float: "#405c79"
string: "#405c79"
nothing: "#405c79"
binary: "#405c79"
cellpath: "#405c79"
row_index: { fg: "#56bf8b" attr: "b" }
record: "#405c79"
list: "#405c79"
block: "#405c79"
hints: "dark_gray"
search_result: { fg: "#bf8b56" bg: "#405c79" }
shape_and: { fg: "#bf568b" attr: "b" }
shape_binary: { fg: "#bf568b" attr: "b" }
shape_block: { fg: "#8b56bf" attr: "b" }
shape_bool: "#568bbf"
shape_custom: "#56bf8b"
shape_datetime: { fg: "#568bbf" attr: "b" }
shape_directory: "#568bbf"
shape_external: "#568bbf"
shape_externalarg: { fg: "#56bf8b" attr: "b" }
shape_filepath: "#568bbf"
shape_flag: { fg: "#8b56bf" attr: "b" }
shape_float: { fg: "#bf568b" attr: "b" }
shape_garbage: { fg: "#FFFFFF" bg: "#FF0000" attr: "b" }
shape_globpattern: { fg: "#568bbf" attr: "b" }
shape_int: { fg: "#bf568b" attr: "b" }
shape_internalcall: { fg: "#568bbf" attr: "b" }
shape_list: { fg: "#568bbf" attr: "b" }
shape_literal: "#8b56bf"
shape_match_pattern: "#56bf8b"
shape_matching_brackets: { attr: "u" }
shape_nothing: "#568bbf"
shape_operator: "#8bbf56"
shape_or: { fg: "#bf568b" attr: "b" }
shape_pipe: { fg: "#bf568b" attr: "b" }
shape_range: { fg: "#8bbf56" attr: "b" }
shape_record: { fg: "#568bbf" attr: "b" }
shape_redirection: { fg: "#bf568b" attr: "b" }
shape_signature: { fg: "#56bf8b" attr: "b" }
shape_string: "#56bf8b"
shape_string_interpolation: { fg: "#568bbf" attr: "b" }
shape_table: { fg: "#8b56bf" attr: "b" }
shape_variable: "#bf568b"
background: "#f7f9fb"
foreground: "#405c79"
cursor: "#405c79"
}}