From f020f9eee0706e8bbf050e1189eadf579c761da4 Mon Sep 17 00:00:00 2001 From: Karl Stolley Date: Fri, 1 Dec 2023 14:55:44 -0500 Subject: [PATCH] pygments: Place Default (light) and Monokai (dark) schemes. These were generated and captured from the following commands: $ pygmentize -f html -S default $ pygmentize -f html -S monokai --- .codespellignore | 1 + web/styles/pygments.css | 377 ++++++++++++++++++++++------------------ 2 files changed, 211 insertions(+), 167 deletions(-) diff --git a/.codespellignore b/.codespellignore index 01a9944351..775a161e42 100644 --- a/.codespellignore +++ b/.codespellignore @@ -25,3 +25,4 @@ forin uper slac couldn +ges diff --git a/web/styles/pygments.css b/web/styles/pygments.css index cb55bb7dc9..30518d0695 100644 --- a/web/styles/pygments.css +++ b/web/styles/pygments.css @@ -36,448 +36,491 @@ /* End non-color Zulip customizations. */ -/* Begin Zulip color customizations. */ - /* stylelint-disable color-no-hex, no-duplicate-selectors */ -/* GitHub-style simple diff colors. These are - the same in light and dark modes. */ -.codehilite .gd { - color: #d44; -} /* Generic.Deleted */ -.codehilite .gi { - color: #292; -} /* Generic.Inserted */ +/* Begin Pygments Default Colors */ -/* End Zulip color customizations. */ - -/* Begin Quansight-Labs GitHub Styles */ .codehilite .hll { - background-color: #0969da4a; + background-color: #ffc; } .codehilite .c { - color: #6e7781; + color: #3d7b7b; + font-style: italic; } /* Comment */ .codehilite .err { - color: #cf222e; + border: 1px solid #f00; } /* Error */ .codehilite .k { - color: #cf222e; + color: #008000; + font-weight: bold; } /* Keyword */ -.codehilite .l { - color: #953800; -} /* Literal */ -.codehilite .n { - color: #8250df; -} /* Name */ .codehilite .o { - color: #116329; + color: #666; } /* Operator */ -.codehilite .p { - color: #24292f; -} /* Punctuation */ .codehilite .ch { - color: #6e7781; + color: #3d7b7b; + font-style: italic; } /* Comment.Hashbang */ .codehilite .cm { - color: #6e7781; + color: #3d7b7b; + font-style: italic; } /* Comment.Multiline */ .codehilite .cp { - color: #6e7781; + color: #9c6500; } /* Comment.Preproc */ .codehilite .cpf { - color: #6e7781; + color: #3d7b7b; + font-style: italic; } /* Comment.PreprocFile */ .codehilite .c1 { - color: #6e7781; + color: #3d7b7b; + font-style: italic; } /* Comment.Single */ .codehilite .cs { - color: #6e7781; + color: #3d7b7b; + font-style: italic; } /* Comment.Special */ +.codehilite .gd { + color: #a00000; +} /* Generic.Deleted */ .codehilite .ge { font-style: italic; } /* Generic.Emph */ +.codehilite .ges { + font-weight: bold; + font-style: italic; +} /* Generic.EmphStrong */ .codehilite .gr { - color: #cf222e; + color: #e40000; } /* Generic.Error */ .codehilite .gh { - color: #0550ae; + color: #000080; + font-weight: bold; } /* Generic.Heading */ +.codehilite .gi { + color: #008400; +} /* Generic.Inserted */ +.codehilite .go { + color: #717171; +} /* Generic.Output */ +.codehilite .gp { + color: #000080; + font-weight: bold; +} /* Generic.Prompt */ .codehilite .gs { font-weight: bold; } /* Generic.Strong */ .codehilite .gu { - color: #0550ae; + color: #800080; + font-weight: bold; } /* Generic.Subheading */ +.codehilite .gt { + color: #04d; +} /* Generic.Traceback */ .codehilite .kc { - color: #0550ae; + color: #008000; + font-weight: bold; } /* Keyword.Constant */ .codehilite .kd { - color: #cf222e; + color: #008000; + font-weight: bold; } /* Keyword.Declaration */ .codehilite .kn { - color: #cf222e; + color: #008000; + font-weight: bold; } /* Keyword.Namespace */ .codehilite .kp { - color: #cf222e; + color: #008000; } /* Keyword.Pseudo */ .codehilite .kr { - color: #cf222e; + color: #008000; + font-weight: bold; } /* Keyword.Reserved */ .codehilite .kt { - color: #cf222e; + color: #b00040; } /* Keyword.Type */ -.codehilite .ld { - color: #953800; -} /* Literal.Date */ .codehilite .m { - color: #953800; + color: #666; } /* Literal.Number */ .codehilite .s { - color: #0550ae; + color: #ba2121; } /* Literal.String */ .codehilite .na { - color: #953800; + color: #687822; } /* Name.Attribute */ .codehilite .nb { - color: #953800; + color: #008000; } /* Name.Builtin */ .codehilite .nc { - color: #0550ae; + color: #00f; + font-weight: bold; } /* Name.Class */ .codehilite .no { - color: #0550ae; + color: #800; } /* Name.Constant */ .codehilite .nd { - color: #953800; + color: #a2f; } /* Name.Decorator */ .codehilite .ni { - color: #116329; + color: #717171; + font-weight: bold; } /* Name.Entity */ .codehilite .ne { - color: #8250df; + color: #cb3f38; + font-weight: bold; } /* Name.Exception */ .codehilite .nf { - color: #0550ae; + color: #00f; } /* Name.Function */ .codehilite .nl { - color: #953800; + color: #767600; } /* Name.Label */ .codehilite .nn { - color: #24292f; + color: #00f; + font-weight: bold; } /* Name.Namespace */ -.codehilite .nx { - color: #8250df; -} /* Name.Other */ -.codehilite .py { - color: #0550ae; -} /* Name.Property */ .codehilite .nt { - color: #116329; + color: #008000; + font-weight: bold; } /* Name.Tag */ .codehilite .nv { - color: #953800; + color: #19177c; } /* Name.Variable */ .codehilite .ow { - color: #8250df; + color: #a2f; + font-weight: bold; } /* Operator.Word */ .codehilite .w { - color: #24292f; + color: #bbb; } /* Text.Whitespace */ .codehilite .mb { - color: #953800; + color: #666; } /* Literal.Number.Bin */ .codehilite .mf { - color: #953800; + color: #666; } /* Literal.Number.Float */ .codehilite .mh { - color: #953800; + color: #666; } /* Literal.Number.Hex */ .codehilite .mi { - color: #953800; + color: #666; } /* Literal.Number.Integer */ .codehilite .mo { - color: #953800; + color: #666; } /* Literal.Number.Oct */ .codehilite .sa { - color: #0550ae; + color: #ba2121; } /* Literal.String.Affix */ .codehilite .sb { - color: #0550ae; + color: #ba2121; } /* Literal.String.Backtick */ .codehilite .sc { - color: #0550ae; + color: #ba2121; } /* Literal.String.Char */ .codehilite .dl { - color: #0550ae; + color: #ba2121; } /* Literal.String.Delimiter */ .codehilite .sd { - color: #0550ae; + color: #ba2121; + font-style: italic; } /* Literal.String.Doc */ .codehilite .s2 { - color: #0550ae; + color: #ba2121; } /* Literal.String.Double */ .codehilite .se { - color: #0550ae; + color: #aa5d1f; + font-weight: bold; } /* Literal.String.Escape */ .codehilite .sh { - color: #0550ae; + color: #ba2121; } /* Literal.String.Heredoc */ .codehilite .si { - color: #0550ae; + color: #a45a77; + font-weight: bold; } /* Literal.String.Interpol */ .codehilite .sx { - color: #0550ae; + color: #008000; } /* Literal.String.Other */ .codehilite .sr { - color: #0550ae; + color: #a45a77; } /* Literal.String.Regex */ .codehilite .s1 { - color: #0550ae; + color: #ba2121; } /* Literal.String.Single */ .codehilite .ss { - color: #0550ae; + color: #19177c; } /* Literal.String.Symbol */ .codehilite .bp { - color: #953800; + color: #008000; } /* Name.Builtin.Pseudo */ .codehilite .fm { - color: #0550ae; + color: #00f; } /* Name.Function.Magic */ .codehilite .vc { - color: #953800; + color: #19177c; } /* Name.Variable.Class */ .codehilite .vg { - color: #953800; + color: #19177c; } /* Name.Variable.Global */ .codehilite .vi { - color: #953800; + color: #19177c; } /* Name.Variable.Instance */ .codehilite .vm { - color: #953800; + color: #19177c; } /* Name.Variable.Magic */ .codehilite .il { - color: #953800; + color: #666; } /* Literal.Number.Integer.Long */ -.codehilite .highlight { - background: #fff; - color: #24292f; -} + +/* End Pygments Default Colors */ %dark-theme { + /* Begin Pygments Monokai Styles */ .codehilite .hll { - background-color: #6e768182; + background-color: #49483e; } .codehilite .c { - color: #8b949e; + color: #959077; } /* Comment */ .codehilite .err { - color: #ff7b72; + color: #ed007e; + background-color: #1e0010; } /* Error */ + .codehilite .esc { + color: #f8f8f2; + } /* Escape */ + .codehilite .g { + color: #f8f8f2; + } /* Generic */ .codehilite .k { - color: #ff7b72; + color: #66d9ef; } /* Keyword */ .codehilite .l { - color: #ffa657; + color: #ae81ff; } /* Literal */ .codehilite .n { - color: #d2a8ff; + color: #f8f8f2; } /* Name */ .codehilite .o { - color: #7ee787; + color: #ff4689; } /* Operator */ + .codehilite .x { + color: #f8f8f2; + } /* Other */ .codehilite .p { - color: #c9d1d9; + color: #f8f8f2; } /* Punctuation */ .codehilite .ch { - color: #8b949e; + color: #959077; } /* Comment.Hashbang */ .codehilite .cm { - color: #8b949e; + color: #959077; } /* Comment.Multiline */ .codehilite .cp { - color: #8b949e; + color: #959077; } /* Comment.Preproc */ .codehilite .cpf { - color: #8b949e; + color: #959077; } /* Comment.PreprocFile */ .codehilite .c1 { - color: #8b949e; + color: #959077; } /* Comment.Single */ .codehilite .cs { - color: #8b949e; + color: #959077; } /* Comment.Special */ + .codehilite .gd { + color: #ff4689; + } /* Generic.Deleted */ .codehilite .ge { + color: #f8f8f2; font-style: italic; } /* Generic.Emph */ + .codehilite .ges { + color: #f8f8f2; + font-weight: bold; + font-style: italic; + } /* Generic.EmphStrong */ .codehilite .gr { - color: #ff7b72; + color: #f8f8f2; } /* Generic.Error */ .codehilite .gh { - color: #79c0ff; + color: #f8f8f2; } /* Generic.Heading */ + .codehilite .gi { + color: #a6e22e; + } /* Generic.Inserted */ + .codehilite .go { + color: #66d9ef; + } /* Generic.Output */ + .codehilite .gp { + color: #ff4689; + font-weight: bold; + } /* Generic.Prompt */ .codehilite .gs { + color: #f8f8f2; font-weight: bold; } /* Generic.Strong */ .codehilite .gu { - color: #79c0ff; + color: #959077; } /* Generic.Subheading */ + .codehilite .gt { + color: #f8f8f2; + } /* Generic.Traceback */ .codehilite .kc { - color: #79c0ff; + color: #66d9ef; } /* Keyword.Constant */ .codehilite .kd { - color: #ff7b72; + color: #66d9ef; } /* Keyword.Declaration */ .codehilite .kn { - color: #ff7b72; + color: #ff4689; } /* Keyword.Namespace */ .codehilite .kp { - color: #ff7b72; + color: #66d9ef; } /* Keyword.Pseudo */ .codehilite .kr { - color: #ff7b72; + color: #66d9ef; } /* Keyword.Reserved */ .codehilite .kt { - color: #ff7b72; + color: #66d9ef; } /* Keyword.Type */ .codehilite .ld { - color: #ffa657; + color: #e6db74; } /* Literal.Date */ .codehilite .m { - color: #ffa657; + color: #ae81ff; } /* Literal.Number */ .codehilite .s { - color: #79c0ff; + color: #e6db74; } /* Literal.String */ .codehilite .na { - color: #ffa657; + color: #a6e22e; } /* Name.Attribute */ .codehilite .nb { - color: #ffa657; + color: #f8f8f2; } /* Name.Builtin */ .codehilite .nc { - color: #79c0ff; + color: #a6e22e; } /* Name.Class */ .codehilite .no { - color: #79c0ff; + color: #66d9ef; } /* Name.Constant */ .codehilite .nd { - color: #ffa657; + color: #a6e22e; } /* Name.Decorator */ .codehilite .ni { - color: #7ee787; + color: #f8f8f2; } /* Name.Entity */ .codehilite .ne { - color: #d2a8ff; + color: #a6e22e; } /* Name.Exception */ .codehilite .nf { - color: #79c0ff; + color: #a6e22e; } /* Name.Function */ .codehilite .nl { - color: #ffa657; + color: #f8f8f2; } /* Name.Label */ .codehilite .nn { - color: #c9d1d9; + color: #f8f8f2; } /* Name.Namespace */ .codehilite .nx { - color: #d2a8ff; + color: #a6e22e; } /* Name.Other */ .codehilite .py { - color: #79c0ff; + color: #f8f8f2; } /* Name.Property */ .codehilite .nt { - color: #7ee787; + color: #ff4689; } /* Name.Tag */ .codehilite .nv { - color: #ffa657; + color: #f8f8f2; } /* Name.Variable */ .codehilite .ow { - color: #d2a8ff; + color: #ff4689; } /* Operator.Word */ + .codehilite .pm { + color: #f8f8f2; + } /* Punctuation.Marker */ .codehilite .w { - color: #c9d1d9; + color: #f8f8f2; } /* Text.Whitespace */ .codehilite .mb { - color: #ffa657; + color: #ae81ff; } /* Literal.Number.Bin */ .codehilite .mf { - color: #ffa657; + color: #ae81ff; } /* Literal.Number.Float */ .codehilite .mh { - color: #ffa657; + color: #ae81ff; } /* Literal.Number.Hex */ .codehilite .mi { - color: #ffa657; + color: #ae81ff; } /* Literal.Number.Integer */ .codehilite .mo { - color: #ffa657; + color: #ae81ff; } /* Literal.Number.Oct */ .codehilite .sa { - color: #79c0ff; + color: #e6db74; } /* Literal.String.Affix */ .codehilite .sb { - color: #79c0ff; + color: #e6db74; } /* Literal.String.Backtick */ .codehilite .sc { - color: #79c0ff; + color: #e6db74; } /* Literal.String.Char */ .codehilite .dl { - color: #79c0ff; + color: #e6db74; } /* Literal.String.Delimiter */ .codehilite .sd { - color: #79c0ff; + color: #e6db74; } /* Literal.String.Doc */ .codehilite .s2 { - color: #79c0ff; + color: #e6db74; } /* Literal.String.Double */ .codehilite .se { - color: #79c0ff; + color: #ae81ff; } /* Literal.String.Escape */ .codehilite .sh { - color: #79c0ff; + color: #e6db74; } /* Literal.String.Heredoc */ .codehilite .si { - color: #79c0ff; + color: #e6db74; } /* Literal.String.Interpol */ .codehilite .sx { - color: #79c0ff; + color: #e6db74; } /* Literal.String.Other */ .codehilite .sr { - color: #79c0ff; + color: #e6db74; } /* Literal.String.Regex */ .codehilite .s1 { - color: #79c0ff; + color: #e6db74; } /* Literal.String.Single */ .codehilite .ss { - color: #79c0ff; + color: #e6db74; } /* Literal.String.Symbol */ .codehilite .bp { - color: #ffa657; + color: #f8f8f2; } /* Name.Builtin.Pseudo */ .codehilite .fm { - color: #79c0ff; + color: #a6e22e; } /* Name.Function.Magic */ .codehilite .vc { - color: #ffa657; + color: #f8f8f2; } /* Name.Variable.Class */ .codehilite .vg { - color: #ffa657; + color: #f8f8f2; } /* Name.Variable.Global */ .codehilite .vi { - color: #ffa657; + color: #f8f8f2; } /* Name.Variable.Instance */ .codehilite .vm { - color: #ffa657; + color: #f8f8f2; } /* Name.Variable.Magic */ .codehilite .il { - color: #ffa657; + color: #ae81ff; } /* Literal.Number.Integer.Long */ - .codehilite .highlight { - background: #0d1117; - color: #c9d1d9; - } } /* stylelint-enable color-no-hex, no-duplicate-selectors */