nu_scripts/themes/nu-themes/bright-lights.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: "#c1c8d6"
leading_trailing_space_bg: { attr: "n" }
header: { fg: "#b6e875" attr: "b" }
empty: "#75d3ff"
bool: {|| if $in { "#6cbeb5" } else { "light_gray" } }
int: "#c1c8d6"
filesize: {|e|
if $e == 0b {
"#c1c8d6"
} else if $e < 1mb {
"#6cbeb5"
} else {{ fg: "#75d3ff" }}
}
duration: "#c1c8d6"
date: {|| (date now) - $in |
if $in < 1hr {
{ fg: "#ff355b" attr: "b" }
} else if $in < 6hr {
"#ff355b"
} else if $in < 1day {
"#ffc150"
} else if $in < 3day {
"#b6e875"
} else if $in < 1wk {
{ fg: "#b6e875" attr: "b" }
} else if $in < 6wk {
"#6cbeb5"
} else if $in < 52wk {
"#75d3ff"
} else { "dark_gray" }
}
range: "#c1c8d6"
float: "#c1c8d6"
string: "#c1c8d6"
nothing: "#c1c8d6"
binary: "#c1c8d6"
cellpath: "#c1c8d6"
row_index: { fg: "#b6e875" attr: "b" }
record: "#c1c8d6"
list: "#c1c8d6"
block: "#c1c8d6"
hints: "dark_gray"
search_result: { fg: "#ff355b" bg: "#c1c8d6" }
shape_and: { fg: "#b975e6" attr: "b" }
shape_binary: { fg: "#b975e6" attr: "b" }
shape_block: { fg: "#75d3ff" attr: "b" }
shape_bool: "#6cbeb5"
shape_custom: "#b6e875"
shape_datetime: { fg: "#6cbeb5" attr: "b" }
shape_directory: "#6cbeb5"
shape_external: "#6cbeb5"
shape_externalarg: { fg: "#b6e875" attr: "b" }
shape_filepath: "#6cbeb5"
shape_flag: { fg: "#75d3ff" attr: "b" }
shape_float: { fg: "#b975e6" attr: "b" }
shape_garbage: { fg: "#FFFFFF" bg: "#FF0000" attr: "b" }
shape_globpattern: { fg: "#6cbeb5" attr: "b" }
shape_int: { fg: "#b975e6" attr: "b" }
shape_internalcall: { fg: "#6cbeb5" attr: "b" }
shape_list: { fg: "#6cbeb5" attr: "b" }
shape_literal: "#75d3ff"
shape_match_pattern: "#b6e875"
shape_matching_brackets: { attr: "u" }
shape_nothing: "#6cbeb5"
shape_operator: "#ffc150"
shape_or: { fg: "#b975e6" attr: "b" }
shape_pipe: { fg: "#b975e6" attr: "b" }
shape_range: { fg: "#ffc150" attr: "b" }
shape_record: { fg: "#6cbeb5" attr: "b" }
shape_redirection: { fg: "#b975e6" attr: "b" }
shape_signature: { fg: "#b6e875" attr: "b" }
shape_string: "#b6e875"
shape_string_interpolation: { fg: "#6cbeb5" attr: "b" }
shape_table: { fg: "#75d3ff" attr: "b" }
shape_variable: "#b975e6"
background: "#191919"
foreground: "#b2c8d6"
cursor: "#f34a00"
}}