From a409ad2ea92e4a08e07c2abc2f4a3073e2e25c3a Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 13 Oct 2024 17:45:35 +0200 Subject: [PATCH] kanagawa: updated theme --- src/scss/_kanagawa.scss | 91 +++++++++++++++++++++++ src/scss/_pygments.scss | 159 ---------------------------------------- src/styles.scss | 2 +- 3 files changed, 92 insertions(+), 160 deletions(-) create mode 100644 src/scss/_kanagawa.scss delete mode 100644 src/scss/_pygments.scss diff --git a/src/scss/_kanagawa.scss b/src/scss/_kanagawa.scss new file mode 100644 index 0000000..cb2d19a --- /dev/null +++ b/src/scss/_kanagawa.scss @@ -0,0 +1,91 @@ +.comment { + /* Subtle gray for comments */ + color: #727169; +} + +.embedded { + /* Warm yellowish tone for embedded code */ + color: #dca561; +} + +.escape { + /* Reddish for escape characters */ + color: #c34043; +} + +.function { + /* Soft blue for function names */ + color: #7e9cd8; +} + +.function-builtin { + /* Orange for built-in functions */ + color: #ff9e3b; +} + +.keyword { + /* Bright yellow/orange for keywords */ + color: #ffa066; + font-weight: bold; +} + +.number { + /* Reddish for numbers */ + color: #ff5d62; +} + +.operator { + /* Pinkish-red for operators */ + color: #e46876; +} + +.property { + /* Golden yellow for properties */ + color: #dca561; +} + +.punctuation-bracket { + /* Purplish tone for brackets */ + color: #a093c7; +} + +.punctuation-delimiter { + /* Neutral beige for punctuation */ + color: #c8c093; +} + +.punctuation-special { + /* Light ivory for special punctuation */ + color: #e2d3ba; +} + +.string { + /* Green for strings */ + color: #98bb6c; +} + +.string-special-path { + /* Orange for special strings (path) */ + color: #ffa066; +} + +.string-special-uri { + /* Bright orange for URIs */ + color: #ff9e3b; +} + +.variable { + /* Neutral white for variables */ + color: #dca561; + //color: #dcd7ba; +} + +.variable-builtin { + /* Bright orange for built-in variables */ + color: #ff9e3b; +} + +.variable-parameter { + /* Soft blue for function parameters */ + color: #7e9cd8; +} diff --git a/src/scss/_pygments.scss b/src/scss/_pygments.scss deleted file mode 100644 index 1f63062..0000000 --- a/src/scss/_pygments.scss +++ /dev/null @@ -1,159 +0,0 @@ -pre { line-height: 125%; } -td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } -span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } -td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } -span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } -.highlight .hll { background-color: #3c3836 } -.highlight .c { color: #928374; font-style: italic } /* Comment */ -.highlight .err { color: #fbf1c7; background-color: #9d0006 } /* Error */ -.highlight .k { color: #9d0006 } /* Keyword */ -.highlight .ch { color: #928374; font-style: italic } /* Comment.Hashbang */ -.highlight .cm { color: #928374; font-style: italic } /* Comment.Multiline */ -.highlight .c-PreProc { color: #427b58; font-style: italic } /* Comment.PreProc */ -.highlight .cp { color: #928374; font-style: italic } /* Comment.Preproc */ -.highlight .cpf { color: #928374; font-style: italic } /* Comment.PreprocFile */ -.highlight .c1 { color: #928374; font-style: italic } /* Comment.Single */ -.highlight .cs { color: #3c3836; font-weight: bold; font-style: italic } /* Comment.Special */ -.highlight .gd { color: #fbf1c7; background-color: #9d0006 } /* Generic.Deleted */ -.highlight .ge { font-style: italic } /* Generic.Emph */ -.highlight .gr { color: #9d0006 } /* Generic.Error */ -.highlight .gh { color: #3c3836; font-weight: bold } /* Generic.Heading */ -.highlight .gi { color: #fbf1c7; background-color: #79740e } /* Generic.Inserted */ -.highlight .go { color: #32302f } /* Generic.Output */ -.highlight .gp { color: #7c6f64 } /* Generic.Prompt */ -.highlight .gs { font-weight: bold } /* Generic.Strong */ -.highlight .gu { color: #3c3836; text-decoration: underline } /* Generic.Subheading */ -.highlight .gt { color: #9d0006 } /* Generic.Traceback */ -.highlight .kc { color: #9d0006 } /* Keyword.Constant */ -.highlight .kd { color: #9d0006 } /* Keyword.Declaration */ -.highlight .kn { color: #9d0006 } /* Keyword.Namespace */ -.highlight .kp { color: #9d0006 } /* Keyword.Pseudo */ -.highlight .kr { color: #9d0006 } /* Keyword.Reserved */ -.highlight .kt { color: #9d0006 } /* Keyword.Type */ -.highlight .m { color: #8f3f71 } /* Literal.Number */ -.highlight .s { color: #79740e } /* Literal.String */ -.highlight .na { color: #b57614 } /* Name.Attribute */ -.highlight .nb { color: #af3a03 } /* Name.Builtin */ -.highlight .nc { color: #427b58 } /* Name.Class */ -.highlight .no { color: #8f3f71 } /* Name.Constant */ -.highlight .nd { color: #9d0006 } /* Name.Decorator */ -.highlight .ne { color: #9d0006 } /* Name.Exception */ -.highlight .nf { color: #427b58 } /* Name.Function */ -.highlight .nn { color: #427b58 } /* Name.Namespace */ -.highlight .nt { color: #427b58 } /* Name.Tag */ -.highlight .nv { color: #076678 } /* Name.Variable */ -.highlight .ow { color: #9d0006 } /* Operator.Word */ -.highlight .mb { color: #8f3f71 } /* Literal.Number.Bin */ -.highlight .mf { color: #8f3f71 } /* Literal.Number.Float */ -.highlight .mh { color: #8f3f71 } /* Literal.Number.Hex */ -.highlight .mi { color: #8f3f71 } /* Literal.Number.Integer */ -.highlight .mo { color: #8f3f71 } /* Literal.Number.Oct */ -.highlight .sa { color: #79740e } /* Literal.String.Affix */ -.highlight .sb { color: #79740e } /* Literal.String.Backtick */ -.highlight .sc { color: #79740e } /* Literal.String.Char */ -.highlight .dl { color: #79740e } /* Literal.String.Delimiter */ -.highlight .sd { color: #79740e } /* Literal.String.Doc */ -.highlight .s2 { color: #79740e } /* Literal.String.Double */ -.highlight .se { color: #af3a03 } /* Literal.String.Escape */ -.highlight .sh { color: #79740e } /* Literal.String.Heredoc */ -.highlight .si { color: #79740e } /* Literal.String.Interpol */ -.highlight .sx { color: #79740e } /* Literal.String.Other */ -.highlight .sr { color: #79740e } /* Literal.String.Regex */ -.highlight .s1 { color: #79740e } /* Literal.String.Single */ -.highlight .ss { color: #79740e } /* Literal.String.Symbol */ -.highlight .bp { color: #af3a03 } /* Name.Builtin.Pseudo */ -.highlight .fm { color: #427b58 } /* Name.Function.Magic */ -.highlight .vc { color: #076678 } /* Name.Variable.Class */ -.highlight .vg { color: #076678 } /* Name.Variable.Global */ -.highlight .vi { color: #076678 } /* Name.Variable.Instance */ -.highlight .vm { color: #076678 } /* Name.Variable.Magic */ -.highlight .il { color: #8f3f71 } /* Literal.Number.Integer.Long */ - - @media(prefers-color-scheme: dark) { -pre { line-height: 125%; } -td.linenos .normal { color: #6e7681; background-color: #0d1117; padding-left: 5px; padding-right: 5px; } -span.linenos { color: #6e7681; background-color: #0d1117; padding-left: 5px; padding-right: 5px; } -td.linenos .special { color: #e6edf3; background-color: #6e7681; padding-left: 5px; padding-right: 5px; } -span.linenos.special { color: #e6edf3; background-color: #6e7681; padding-left: 5px; padding-right: 5px; } -.highlight .hll { background-color: #6e7681 } -.highlight { color: #e6edf3 } -.highlight .c { color: #8b949e; font-style: italic } /* Comment */ -.highlight .err { color: #f85149 } /* Error */ -.highlight .esc { color: #e6edf3 } /* Escape */ -.highlight .g { color: #e6edf3 } /* Generic */ -.highlight .k { color: #ff7b72 } /* Keyword */ -.highlight .l { color: #a5d6ff } /* Literal */ -.highlight .n { color: #e6edf3 } /* Name */ -.highlight .o { color: #ff7b72; font-weight: bold } /* Operator */ -.highlight .x { color: #e6edf3 } /* Other */ -.highlight .p { color: #e6edf3 } /* Punctuation */ -.highlight .ch { color: #8b949e; font-style: italic } /* Comment.Hashbang */ -.highlight .cm { color: #8b949e; font-style: italic } /* Comment.Multiline */ -.highlight .cp { color: #8b949e; font-weight: bold; font-style: italic } /* Comment.Preproc */ -.highlight .cpf { color: #8b949e; font-style: italic } /* Comment.PreprocFile */ -.highlight .c1 { color: #8b949e; font-style: italic } /* Comment.Single */ -.highlight .cs { color: #8b949e; font-weight: bold; font-style: italic } /* Comment.Special */ -.highlight .gd { color: #ffa198; background-color: #490202 } /* Generic.Deleted */ -.highlight .ge { color: #e6edf3; font-style: italic } /* Generic.Emph */ -.highlight .ges { color: #e6edf3; font-weight: bold; font-style: italic } /* Generic.EmphStrong */ -.highlight .gr { color: #ffa198 } /* Generic.Error */ -.highlight .gh { color: #79c0ff; font-weight: bold } /* Generic.Heading */ -.highlight .gi { color: #56d364; background-color: #0f5323 } /* Generic.Inserted */ -.highlight .go { color: #8b949e } /* Generic.Output */ -.highlight .gp { color: #8b949e } /* Generic.Prompt */ -.highlight .gs { color: #e6edf3; font-weight: bold } /* Generic.Strong */ -.highlight .gu { color: #79c0ff } /* Generic.Subheading */ -.highlight .gt { color: #ff7b72 } /* Generic.Traceback */ -.highlight .g-Underline { color: #e6edf3; text-decoration: underline } /* Generic.Underline */ -.highlight .kc { color: #79c0ff } /* Keyword.Constant */ -.highlight .kd { color: #ff7b72 } /* Keyword.Declaration */ -.highlight .kn { color: #ff7b72 } /* Keyword.Namespace */ -.highlight .kp { color: #79c0ff } /* Keyword.Pseudo */ -.highlight .kr { color: #ff7b72 } /* Keyword.Reserved */ -.highlight .kt { color: #ff7b72 } /* Keyword.Type */ -.highlight .ld { color: #79c0ff } /* Literal.Date */ -.highlight .m { color: #a5d6ff } /* Literal.Number */ -.highlight .s { color: #a5d6ff } /* Literal.String */ -.highlight .na { color: #e6edf3 } /* Name.Attribute */ -.highlight .nb { color: #e6edf3 } /* Name.Builtin */ -.highlight .nc { color: #f0883e; font-weight: bold } /* Name.Class */ -.highlight .no { color: #79c0ff; font-weight: bold } /* Name.Constant */ -.highlight .nd { color: #d2a8ff; font-weight: bold } /* Name.Decorator */ -.highlight .ni { color: #ffa657 } /* Name.Entity */ -.highlight .ne { color: #f0883e; font-weight: bold } /* Name.Exception */ -.highlight .nf { color: #d2a8ff; font-weight: bold } /* Name.Function */ -.highlight .nl { color: #79c0ff; font-weight: bold } /* Name.Label */ -.highlight .nn { color: #ff7b72 } /* Name.Namespace */ -.highlight .nx { color: #e6edf3 } /* Name.Other */ -.highlight .py { color: #79c0ff } /* Name.Property */ -.highlight .nt { color: #7ee787 } /* Name.Tag */ -.highlight .nv { color: #79c0ff } /* Name.Variable */ -.highlight .ow { color: #ff7b72; font-weight: bold } /* Operator.Word */ -.highlight .pm { color: #e6edf3 } /* Punctuation.Marker */ -.highlight .w { color: #6e7681 } /* Text.Whitespace */ -.highlight .mb { color: #a5d6ff } /* Literal.Number.Bin */ -.highlight .mf { color: #a5d6ff } /* Literal.Number.Float */ -.highlight .mh { color: #a5d6ff } /* Literal.Number.Hex */ -.highlight .mi { color: #a5d6ff } /* Literal.Number.Integer */ -.highlight .mo { color: #a5d6ff } /* Literal.Number.Oct */ -.highlight .sa { color: #79c0ff } /* Literal.String.Affix */ -.highlight .sb { color: #a5d6ff } /* Literal.String.Backtick */ -.highlight .sc { color: #a5d6ff } /* Literal.String.Char */ -.highlight .dl { color: #79c0ff } /* Literal.String.Delimiter */ -.highlight .sd { color: #a5d6ff } /* Literal.String.Doc */ -.highlight .s2 { color: #a5d6ff } /* Literal.String.Double */ -.highlight .se { color: #79c0ff } /* Literal.String.Escape */ -.highlight .sh { color: #79c0ff } /* Literal.String.Heredoc */ -.highlight .si { color: #a5d6ff } /* Literal.String.Interpol */ -.highlight .sx { color: #a5d6ff } /* Literal.String.Other */ -.highlight .sr { color: #79c0ff } /* Literal.String.Regex */ -.highlight .s1 { color: #a5d6ff } /* Literal.String.Single */ -.highlight .ss { color: #a5d6ff } /* Literal.String.Symbol */ -.highlight .bp { color: #e6edf3 } /* Name.Builtin.Pseudo */ -.highlight .fm { color: #d2a8ff; font-weight: bold } /* Name.Function.Magic */ -.highlight .vc { color: #79c0ff } /* Name.Variable.Class */ -.highlight .vg { color: #79c0ff } /* Name.Variable.Global */ -.highlight .vi { color: #79c0ff } /* Name.Variable.Instance */ -.highlight .vm { color: #79c0ff } /* Name.Variable.Magic */ -.highlight .il { color: #a5d6ff } /* Literal.Number.Integer.Long */ -} diff --git a/src/styles.scss b/src/styles.scss index d3edd4a..84c9f56 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -1,6 +1,6 @@ @import "theme"; @include theme(); -@import "scss/pygments"; +@import "scss/kanagawa"; * { box-sizing: border-box;