nu_scripts/themes/nu-themes/unikitty-dark.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: "#bcbabe"
leading_trailing_space_bg: { attr: "n" }
header: { fg: "#17ad98" attr: "b" }
empty: "#796af5"
bool: {|| if $in { "#149bda" } else { "light_gray" } }
int: "#bcbabe"
filesize: {|e|
if $e == 0b {
"#bcbabe"
} else if $e < 1mb {
"#149bda"
} else {{ fg: "#796af5" }}
}
duration: "#bcbabe"
date: {|| (date now) - $in |
if $in < 1hr {
{ fg: "#d8137f" attr: "b" }
} else if $in < 6hr {
"#d8137f"
} else if $in < 1day {
"#dc8a0e"
} else if $in < 3day {
"#17ad98"
} else if $in < 1wk {
{ fg: "#17ad98" attr: "b" }
} else if $in < 6wk {
"#149bda"
} else if $in < 52wk {
"#796af5"
} else { "dark_gray" }
}
range: "#bcbabe"
float: "#bcbabe"
string: "#bcbabe"
nothing: "#bcbabe"
binary: "#bcbabe"
cellpath: "#bcbabe"
row_index: { fg: "#17ad98" attr: "b" }
record: "#bcbabe"
list: "#bcbabe"
block: "#bcbabe"
hints: "dark_gray"
search_result: { fg: "#d8137f" bg: "#bcbabe" }
shape_and: { fg: "#bb60ea" attr: "b" }
shape_binary: { fg: "#bb60ea" attr: "b" }
shape_block: { fg: "#796af5" attr: "b" }
shape_bool: "#149bda"
shape_custom: "#17ad98"
shape_datetime: { fg: "#149bda" attr: "b" }
shape_directory: "#149bda"
shape_external: "#149bda"
shape_externalarg: { fg: "#17ad98" attr: "b" }
shape_filepath: "#149bda"
shape_flag: { fg: "#796af5" attr: "b" }
shape_float: { fg: "#bb60ea" attr: "b" }
shape_garbage: { fg: "#FFFFFF" bg: "#FF0000" attr: "b" }
shape_globpattern: { fg: "#149bda" attr: "b" }
shape_int: { fg: "#bb60ea" attr: "b" }
shape_internalcall: { fg: "#149bda" attr: "b" }
shape_list: { fg: "#149bda" attr: "b" }
shape_literal: "#796af5"
shape_match_pattern: "#17ad98"
shape_matching_brackets: { attr: "u" }
shape_nothing: "#149bda"
shape_operator: "#dc8a0e"
shape_or: { fg: "#bb60ea" attr: "b" }
shape_pipe: { fg: "#bb60ea" attr: "b" }
shape_range: { fg: "#dc8a0e" attr: "b" }
shape_record: { fg: "#149bda" attr: "b" }
shape_redirection: { fg: "#bb60ea" attr: "b" }
shape_signature: { fg: "#17ad98" attr: "b" }
shape_string: "#17ad98"
shape_string_interpolation: { fg: "#149bda" attr: "b" }
shape_table: { fg: "#796af5" attr: "b" }
shape_variable: "#bb60ea"
background: "#2e2a31"
foreground: "#bcbabe"
cursor: "#bcbabe"
}}