mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
less colors more contrast
This commit is contained in:
parent
ec93892c6b
commit
c6b5e2f8c3
4 changed files with 19 additions and 28 deletions
|
@ -219,7 +219,7 @@ const fn default_palette_from_style_codes(codes: StyleCodes) -> Palette {
|
|||
code_block: codes.white,
|
||||
keyword: codes.green,
|
||||
ellipsis: codes.green,
|
||||
variable: codes.blue,
|
||||
variable: codes.cyan,
|
||||
type_variable: codes.yellow,
|
||||
structure: codes.green,
|
||||
alias: codes.yellow,
|
||||
|
@ -249,8 +249,6 @@ pub struct StyleCodes {
|
|||
pub red: &'static str,
|
||||
pub green: &'static str,
|
||||
pub yellow: &'static str,
|
||||
pub blue: &'static str,
|
||||
pub magenta: &'static str,
|
||||
pub cyan: &'static str,
|
||||
pub white: &'static str,
|
||||
pub bold: &'static str,
|
||||
|
@ -260,12 +258,10 @@ pub struct StyleCodes {
|
|||
}
|
||||
|
||||
pub const ANSI_STYLE_CODES: StyleCodes = StyleCodes {
|
||||
red: "\u{001b}[31m",
|
||||
green: "\u{001b}[32m",
|
||||
yellow: "\u{001b}[33m",
|
||||
blue: "\u{001b}[34m",
|
||||
magenta: "\u{001b}[35m",
|
||||
cyan: "\u{001b}[36m",
|
||||
red: "\u{001b}[1;31m",
|
||||
green: "\u{001b}[1;32m",
|
||||
yellow: "\u{001b}[1;33m",
|
||||
cyan: "\u{001b}[1;36m",
|
||||
white: "\u{001b}[37m",
|
||||
bold: "\u{001b}[1m",
|
||||
underline: "\u{001b}[4m",
|
||||
|
@ -283,8 +279,6 @@ pub const HTML_STYLE_CODES: StyleCodes = StyleCodes {
|
|||
red: html_color!("red"),
|
||||
green: html_color!("green"),
|
||||
yellow: html_color!("yellow"),
|
||||
blue: html_color!("blue"),
|
||||
magenta: html_color!("magenta"),
|
||||
cyan: html_color!("cyan"),
|
||||
white: html_color!("white"),
|
||||
bold: "<span class='bold'>",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue