nu_scripts/themes/nu-themes/selenized-white.nu

82 lines
2.5 KiB
Plaintext
Raw Normal View History

export def main [] { return {
separator: "#878787"
leading_trailing_space_bg: { attr: "n" }
header: { fg: "#1d9700" attr: "b" }
empty: "#0064e4"
bool: {|| if $in { "#009a8a" } else { "light_gray" } }
int: "#878787"
filesize: {|e|
if $e == 0b {
"#878787"
} else if $e < 1mb {
"#00ad9c"
} else {{ fg: "#0064e4" }}
}
duration: "#878787"
date: {|| (date now) - $in |
if $in < 1hr {
{ fg: "#d6000c" attr: "b" }
} else if $in < 6hr {
"#d6000c"
} else if $in < 1day {
"#c49700"
} else if $in < 3day {
"#1d9700"
} else if $in < 1wk {
{ fg: "#1d9700" attr: "b" }
} else if $in < 6wk {
"#00ad9c"
} else if $in < 52wk {
"#0064e4"
} else { "dark_gray" }
}
range: "#878787"
float: "#878787"
string: "#878787"
nothing: "#878787"
binary: "#878787"
cellpath: "#878787"
row_index: { fg: "#1d9700" attr: "b" }
record: "#878787"
list: "#878787"
block: "#878787"
hints: "dark_gray"
search_result: { fg: "#d6000c" bg: "#878787" }
add a collection of colorschemes for `nushell` (#286) * add my personal color config files remove the useless colors.nu script * add all lemnos theme files as a submodule * add a template module from the default dark theme the `map.csv` file: ```csv code,bold,bash,nushell 0,false,black,black 1,false,red,red 2,false,green,green 3,false,yellow,yellow 4,false,blue,blue 5,false,magenta,purple 6,false,cyan,cyan 7,false,white,light_gray 8,true,black,dark_gray 9,true,red,red_bold 10,true,green,green_bold 11,true,yellow,yellow_bold 12,true,blue,blue_bold 13,true,magenta,purple_bold 14,true,cyan,light_cyan 14,true,cyan,cyan_bold 15,true,white,white ``` the command used was ```nushell open map.csv | each { |it| sed -i $"s/: ($it.nushell)$/: \"{{color($it.code)}}\"/" template.nu } ``` or as a oneliner ```nushell open map.csv | each {|it| sed -i $"s/: ($it.nushell)$/: \"{{color($it.code)}}\"/" template.nu} ``` * add a script to make all the scripts at once * make all the themes * add a README with some credits to lemnos * add usage instructions to the README * add desired values to the template This commit adds the background, the foreground and the cursor colors to the themes as commented lines. These do not fit into any nushell theme as they should be set by the terminal emulator, but they are included here for completeness. Addresses https://github.com/nushell/nu_scripts/pull/286#issuecomment-1230814914 * regenerate the themes with the new template * remove all the occurences of sed by str replace * remove the lemnos submodule Co-authored-by: amtoine <44101798+AntoineStevan@users.noreply.github.com>
2022-09-07 21:48:28 +03:00
shape_and: { fg: "#dd0f9d" attr: "b" }
shape_binary: { fg: "#dd0f9d" attr: "b" }
shape_block: { fg: "#0064e4" attr: "b" }
shape_bool: "#009a8a"
shape_custom: "#1d9700"
shape_datetime: { fg: "#00ad9c" attr: "b" }
shape_directory: "#00ad9c"
shape_external: "#00ad9c"
shape_externalarg: { fg: "#1d9700" attr: "b" }
shape_filepath: "#00ad9c"
shape_flag: { fg: "#0064e4" attr: "b" }
shape_float: { fg: "#dd0f9d" attr: "b" }
shape_garbage: { fg: "#FFFFFF" bg: "#FF0000" attr: "b" }
shape_globpattern: { fg: "#00ad9c" attr: "b" }
shape_int: { fg: "#dd0f9d" attr: "b" }
shape_internalcall: { fg: "#00ad9c" attr: "b" }
shape_list: { fg: "#00ad9c" attr: "b" }
shape_literal: "#0064e4"
shape_match_pattern: "#1d9700"
shape_matching_brackets: { attr: "u" }
shape_nothing: "#009a8a"
shape_operator: "#c49700"
shape_or: { fg: "#dd0f9d" attr: "b" }
shape_pipe: { fg: "#dd0f9d" attr: "b" }
shape_range: { fg: "#c49700" attr: "b" }
shape_record: { fg: "#00ad9c" attr: "b" }
shape_redirection: { fg: "#dd0f9d" attr: "b" }
shape_signature: { fg: "#1d9700" attr: "b" }
shape_string: "#1d9700"
shape_string_interpolation: { fg: "#00ad9c" attr: "b" }
shape_table: { fg: "#0064e4" attr: "b" }
shape_variable: "#dd0f9d"
add a collection of colorschemes for `nushell` (#286) * add my personal color config files remove the useless colors.nu script * add all lemnos theme files as a submodule * add a template module from the default dark theme the `map.csv` file: ```csv code,bold,bash,nushell 0,false,black,black 1,false,red,red 2,false,green,green 3,false,yellow,yellow 4,false,blue,blue 5,false,magenta,purple 6,false,cyan,cyan 7,false,white,light_gray 8,true,black,dark_gray 9,true,red,red_bold 10,true,green,green_bold 11,true,yellow,yellow_bold 12,true,blue,blue_bold 13,true,magenta,purple_bold 14,true,cyan,light_cyan 14,true,cyan,cyan_bold 15,true,white,white ``` the command used was ```nushell open map.csv | each { |it| sed -i $"s/: ($it.nushell)$/: \"{{color($it.code)}}\"/" template.nu } ``` or as a oneliner ```nushell open map.csv | each {|it| sed -i $"s/: ($it.nushell)$/: \"{{color($it.code)}}\"/" template.nu} ``` * add a script to make all the scripts at once * make all the themes * add a README with some credits to lemnos * add usage instructions to the README * add desired values to the template This commit adds the background, the foreground and the cursor colors to the themes as commented lines. These do not fit into any nushell theme as they should be set by the terminal emulator, but they are included here for completeness. Addresses https://github.com/nushell/nu_scripts/pull/286#issuecomment-1230814914 * regenerate the themes with the new template * remove all the occurences of sed by str replace * remove the lemnos submodule Co-authored-by: amtoine <44101798+AntoineStevan@users.noreply.github.com>
2022-09-07 21:48:28 +03:00
background: "#ffffff"
foreground: "#474747"
cursor: "#474747"
}}