summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMole Shang <[email protected]>2023-08-17 17:45:25 +0800
committerMole Shang <[email protected]>2023-08-17 17:45:25 +0800
commit81980e5e2f9b5cd349f3f3ad0442de0a6c4b2a5d (patch)
treeb1d8327724f3248a2bfede772e1373fd50a5036a
parent287c4816233b7141d91ec0bba7f08481d738503d (diff)
downloadzola-blog-81980e5e2f9b5cd349f3f3ad0442de0a6c4b2a5d.tar.gz
zola-blog-81980e5e2f9b5cd349f3f3ad0442de0a6c4b2a5d.tar.bz2
zola-blog-81980e5e2f9b5cd349f3f3ad0442de0a6c4b2a5d.zip
config: use css code-hightlighting themes
-rw-r--r--config.toml5
-rw-r--r--static/syntax-theme-dark.css232
-rw-r--r--static/syntax-theme-light.css283
m---------themes/Seje20
4 files changed, 520 insertions, 0 deletions
diff --git a/config.toml b/config.toml
index 97d076f..e712d36 100644
--- a/config.toml
+++ b/config.toml
@@ -30,6 +30,11 @@ taxonomies = [
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = true
+highlight_theme = "css"
+highlight_themes_css = [
+ { theme = "one-dark", filename = "syntax-theme-dark.css" },
+ { theme = "solarized-light", filename = "syntax-theme-light.css" },
+]
[extra]
# Put all your custom variables here
diff --git a/static/syntax-theme-dark.css b/static/syntax-theme-dark.css
new file mode 100644
index 0000000..3622c5c
--- /dev/null
+++ b/static/syntax-theme-dark.css
@@ -0,0 +1,232 @@
+/*
+ * theme "One Dark" generated by syntect
+ */
+
+.z-code {
+ color: #6c7079;
+ background-color: #2b303b;
+}
+
+.z-text, .z-source {
+ color: #abb2bf;
+}
+.z-variable.z-parameter.z-function {
+ color: #adb7c9;
+}
+.z-comment, .z-punctuation.z-definition.z-comment {
+ color: #5f697a;
+font-style: italic;
+}
+.z-none {
+ color: #adb7c9;
+}
+.z-keyword.z-operator {
+ color: #adb7c9;
+}
+.z-keyword {
+ color: #cd74e8;
+}
+.z-variable {
+ color: #eb6772;
+}
+.z-entity.z-name.z-function, .z-meta.z-require, .z-support.z-function.z-any-method {
+ color: #5cb3fa;
+}
+.z-support.z-class, .z-entity.z-name.z-class, .z-entity.z-name.z-type.z-class {
+ color: #f0c678;
+}
+.z-meta.z-class {
+ color: #adb7c9;
+}
+.z-keyword.z-other.z-special-method {
+ color: #5cb3fa;
+}
+.z-storage {
+ color: #cd74e8;
+}
+.z-support.z-function {
+ color: #5ebfcc;
+}
+.z-string, .z-constant.z-other.z-symbol, .z-entity.z-other.z-inherited-class {
+ color: #9acc76;
+}
+.z-constant.z-numeric {
+ color: #db9d63;
+}
+.z-none {
+ color: #db9d63;
+}
+.z-none {
+ color: #db9d63;
+}
+.z-constant {
+ color: #db9d63;
+}
+.z-entity.z-name.z-tag {
+ color: #eb6772;
+}
+.z-entity.z-other.z-attribute-name {
+ color: #db9d63;
+}
+.z-entity.z-other.z-attribute-name.z-id, .z-punctuation.z-definition.z-entity {
+ color: #db9d63;
+}
+.z-meta.z-selector {
+ color: #cd74e8;
+}
+.z-none {
+ color: #db9d63;
+}
+.z-markup.z-heading .z-punctuation.z-definition.z-heading, .z-entity.z-name.z-section {
+ color: #5cb3fa;
+}
+.z-keyword.z-other.z-unit {
+ color: #db9d63;
+}
+.z-markup.z-bold, .z-punctuation.z-definition.z-bold {
+ color: #f0c678;
+}
+.z-markup.z-italic, .z-punctuation.z-definition.z-italic {
+ color: #cd74e8;
+}
+.z-markup.z-raw.z-inline {
+ color: #9acc76;
+}
+.z-string.z-other.z-link, .z-punctuation.z-definition.z-string.z-end.z-markdown {
+ color: #eb6772;
+}
+.z-meta.z-link {
+ color: #db9d63;
+}
+.z-markup.z-list {
+ color: #eb6772;
+}
+.z-markup.z-quote {
+ color: #db9d63;
+}
+.z-meta.z-separator {
+ color: #adb7c9;
+ background-color: #515151;
+}
+.z-markup.z-inserted {
+ color: #9acc76;
+}
+.z-markup.z-deleted {
+ color: #eb6772;
+}
+.z-markup.z-changed {
+ color: #cd74e8;
+}
+.z-constant.z-other.z-color {
+ color: #5ebfcc;
+}
+.z-string.z-regexp {
+ color: #5ebfcc;
+}
+.z-constant.z-character.z-escape {
+ color: #5ebfcc;
+}
+.z-punctuation.z-section.z-embedded, .z-variable.z-interpolation {
+ color: #c94e42;
+}
+.z-invalid.z-illegal {
+ color: #ffffff;
+ background-color: #e05252;
+}
+.z-invalid.z-broken {
+ color: #2d2d2d;
+ background-color: #f99157;
+}
+.z-invalid.z-deprecated {
+ color: #2c323d;
+ background-color: #d27b53;
+}
+.z-invalid.z-unimplemented {
+ color: #2c323d;
+ background-color: #747369;
+}
+.z-source.z-json .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json {
+ color: #eb6772;
+}
+.z-source.z-json .z-meta.z-structure.z-dictionary.z-json .z-meta.z-structure.z-dictionary.z-value.z-json .z-string.z-quoted.z-double.z-json {
+ color: #9acc76;
+}
+.z-source.z-json .z-meta.z-structure.z-dictionary.z-json .z-meta.z-structure.z-dictionary.z-value.z-json .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json {
+ color: #eb6772;
+}
+.z-source.z-json .z-meta.z-structure.z-dictionary.z-json .z-meta.z-structure.z-dictionary.z-value.z-json .z-meta.z-structure.z-dictionary.z-json .z-meta.z-structure.z-dictionary.z-value.z-json .z-string.z-quoted.z-double.z-json {
+ color: #9acc76;
+}
+.z-text.z-html.z-laravel-blade .z-source.z-php.z-embedded.z-line.z-html .z-entity.z-name.z-tag.z-laravel-blade {
+ color: #cd74e8;
+}
+.z-text.z-html.z-laravel-blade .z-source.z-php.z-embedded.z-line.z-html .z-support.z-constant.z-laravel-blade {
+ color: #cd74e8;
+}
+.z-source.z-python .z-meta.z-function.z-python .z-meta.z-function.z-parameters.z-python .z-variable.z-parameter.z-function.z-python {
+ color: #db9d63;
+}
+.z-source.z-python .z-meta.z-function-call.z-python .z-support.z-type.z-python {
+ color: #5ebfcc;
+}
+.z-source.z-python .z-keyword.z-operator.z-logical.z-python {
+ color: #cd74e8;
+}
+.z-source.z-python .z-meta.z-class.z-python .z-punctuation.z-definition.z-inheritance.z-begin.z-python {
+ color: #f0c678;
+}
+.z-source.z-python .z-meta.z-class.z-python .z-punctuation.z-definition.z-inheritance.z-end.z-python {
+ color: #f0c678;
+}
+.z-source.z-python .z-meta.z-function-call.z-python .z-meta.z-function-call.z-arguments.z-python .z-variable.z-parameter.z-function.z-python {
+ color: #db9d63;
+}
+.z-text.z-html.z-basic .z-source.z-php.z-embedded.z-block.z-html .z-support.z-constant.z-std.z-php {
+ color: #db9d63;
+}
+.z-text.z-html.z-basic .z-source.z-php.z-embedded.z-block.z-html .z-meta.z-namespace.z-php .z-entity.z-name.z-type.z-namespace.z-php {
+ color: #f0c678;
+}
+.z-source.z-js .z-meta.z-function.z-js .z-support.z-constant.z-js {
+ color: #db9d63;
+}
+.z-text.z-html.z-basic` .z-source.z-php.z-embedded.z-block.z-html .z-constant.z-other.z-php {
+ color: #cd74e8;
+}
+.z-text.z-html.z-basic .z-source.z-php.z-embedded.z-block.z-html .z-support.z-other.z-namespace.z-php {
+ color: #db9d63;
+}
+.z-text.z-tex.z-latex .z-meta.z-function.z-environment.z-math.z-latex .z-string.z-other.z-math.z-block.z-environment.z-latex .z-meta.z-definition.z-label.z-latex .z-variable.z-parameter.z-definition.z-label.z-latex {
+ color: #adb7c9;
+}
+.z-text.z-tex.z-latex .z-meta.z-function.z-emph.z-latex .z-markup.z-italic.z-emph.z-latex {
+ color: #cd74e8;
+font-style: italic;
+}
+.z-source.z-js .z-variable.z-other.z-readwrite.z-js {
+ color: #adb7c9;
+}
+.z-source.z-js .z-meta.z-function-call.z-with-arguments.z-js .z-variable.z-function.z-js {
+ color: #adb7c9;
+}
+.z-source.z-js .z-meta.z-group.z-braces.z-round .z-meta.z-group.z-braces.z-curly .z-meta.z-function-call.z-method.z-without-arguments.z-js .z-variable.z-function.z-js {
+ color: #adb7c9;
+}
+.z-source.z-js .z-meta.z-group.z-braces.z-round .z-meta.z-group.z-braces.z-curly .z-variable.z-other.z-object.z-js {
+ color: #adb7c9;
+}
+.z-source.z-js .z-meta.z-group.z-braces.z-round .z-meta.z-group.z-braces.z-curly .z-constant.z-other.z-object.z-key.z-js .z-string.z-unquoted.z-label.z-js {
+ color: #adb7c9;
+}
+.z-source.z-js .z-meta.z-group.z-braces.z-round .z-meta.z-group.z-braces.z-curly .z-constant.z-other.z-object.z-key.z-js .z-punctuation.z-separator.z-key-value.z-js {
+ color: #adb7c9;
+}
+.z-source.z-js .z-meta.z-group.z-braces.z-round .z-meta.z-group.z-braces.z-curly .z-meta.z-function-call.z-method.z-with-arguments.z-js .z-variable.z-function.z-js {
+ color: #adb7c9;
+}
+.z-source.z-js .z-meta.z-function-call.z-method.z-with-arguments.z-js .z-variable.z-function.z-js {
+ color: #adb7c9;
+}
+.z-source.z-js .z-meta.z-function-call.z-method.z-without-arguments.z-js .z-variable.z-function.z-js {
+ color: #adb7c9;
+}
diff --git a/static/syntax-theme-light.css b/static/syntax-theme-light.css
new file mode 100644
index 0000000..40ea69e
--- /dev/null
+++ b/static/syntax-theme-light.css
@@ -0,0 +1,283 @@
+/*
+ * theme "Solarized (light)" generated by syntect
+ */
+
+.z-code {
+ color: #657b83;
+ background-color: #fdf6e3;
+}
+
+.z-comment, .z-meta.z-documentation {
+ color: #93a1a1;
+}
+.z-string {
+ color: #2aa198;
+}
+.z-string.z-regexp {
+ color: #2aa198;
+}
+.z-constant.z-character.z-escape {
+ color: #dc322f;
+}
+.z-constant.z-numeric {
+ color: #6c71c4;
+}
+.z-variable {
+ color: #268bd2;
+}
+.z-variable.z-function {
+ color: #b58900;
+}
+.z-variable.z-language {
+ color: #d33682;
+}
+.z-keyword {
+ color: #859900;
+}
+.z-meta.z-import .z-keyword, .z-keyword.z-control.z-import, .z-keyword.z-control.z-import.z-from, .z-keyword.z-other.z-import, .z-keyword.z-control.z-at-rule.z-include, .z-keyword.z-control.z-at-rule.z-import {
+ color: #cb4b16;
+}
+.z-keyword.z-operator.z-comparison, .z-keyword.z-operator.z-assignment, .z-keyword.z-operator.z-arithmetic {
+ color: #657b83;
+}
+.z-storage {
+ color: #859900;
+}
+.z-storage.z-modifier {
+ color: #586e75;
+}
+.z-keyword.z-control.z-class, .z-entity.z-name, .z-entity.z-name.z-class, .z-entity.z-name.z-type.z-class {
+ color: #b58900;
+}
+.z-entity.z-other.z-inherited-class {
+ color: #268bd2;
+}
+.z-entity.z-other.z-attribute-name {
+ color: #b58900;
+}
+.z-support, .z-support.z-type, .z-support.z-class {
+ color: #859900;
+}
+.z-entity.z-name.z-function {
+ color: #b58900;
+}
+.z-punctuation.z-definition.z-variable {
+ color: #859900;
+}
+.z-constant, .z-constant.z-language, .z-meta.z-preprocessor {
+ color: #b58900;
+}
+.z-entity.z-name.z-section {
+ color: #cb4b16;
+}
+.z-support.z-function.z-construct, .z-keyword.z-other.z-new {
+ color: #dc322f;
+}
+.z-constant.z-character, .z-constant.z-other {
+ color: #cb4b16;
+}
+.z-entity.z-name.z-tag {
+ color: #268bd2;
+}
+.z-punctuation.z-definition.z-tag.z-html, .z-punctuation.z-definition.z-tag.z-begin, .z-punctuation.z-definition.z-tag.z-end {
+ color: #93a1a1;
+}
+.z-support.z-function {
+ color: #859900;
+}
+.z-punctuation.z-separator.z-continuation {
+ color: #dc322f;
+}
+.z-storage.z-type {
+ color: #268bd2;
+}
+.z-support.z-type.z-exception {
+ color: #cb4b16;
+}
+.z-keyword.z-other.z-special-method {
+ color: #cb4b16;
+}
+.z-invalid {
+ background-color: #ec9489;
+}
+.z-string.z-quoted.z-double, .z-string.z-quoted.z-single {
+ color: #2aa198;
+}
+.z-punctuation.z-definition.z-string {
+ color: #839496;
+}
+.z-meta.z-brace.z-square, .z-punctuation.z-section.z-brackets {
+ color: #268bd2;
+}
+.z-meta.z-brace.z-round, .z-meta.z-brace.z-curly, .z-punctuation.z-section, .z-punctuation.z-section.z-block, .z-punctuation.z-definition.z-parameters, .z-punctuation.z-section.z-group {
+ color: #657b83;
+}
+.z-support.z-constant.z-color, .z-invalid.z-deprecated.z-color.z-w3c-non-standard-color-name.z-scss {
+ color: #b58900;
+}
+.z-meta.z-selector.z-css {
+ color: #657b83;
+}
+.z-entity.z-name.z-tag.z-css, .z-entity.z-name.z-tag.z-scss, .z-source.z-less .z-keyword.z-control.z-html.z-elements, .z-source.z-sass .z-keyword.z-control.z-untitled {
+ color: #b58900;
+}
+.z-entity.z-other.z-attribute-name.z-class {
+ color: #b58900;
+}
+.z-entity.z-other.z-attribute-name.z-id {
+ color: #b58900;
+}
+.z-entity.z-other.z-attribute-name.z-pseudo-element, .z-entity.z-other.z-attribute-name.z-tag.z-pseudo-element, .z-entity.z-other.z-attribute-name.z-pseudo-class, .z-entity.z-other.z-attribute-name.z-tag.z-pseudo-class {
+ color: #268bd2;
+}
+.z-text.z-html.z-basic .z-meta.z-tag.z-other.z-html, .z-text.z-html.z-basic .z-meta.z-tag.z-any.z-html, .z-text.z-html.z-basic .z-meta.z-tag.z-block.z-any, .z-text.z-html.z-basic .z-meta.z-tag.z-inline.z-any, .z-text.z-html.z-basic .z-meta.z-tag.z-structure.z-any.z-html, .z-text.z-html.z-basic .z-source.z-js.z-embedded.z-html, .z-punctuation.z-separator.z-key-value.z-html {
+ color: #657b83;
+}
+.z-text.z-html.z-basic .z-entity.z-other.z-attribute-name.z-html, .z-meta.z-tag.z-xml .z-entity.z-other.z-attribute-name {
+ color: #b58900;
+}
+.z-keyword.z-other.z-special-method.z-ruby {
+ color: #859900;
+}
+.z-variable.z-other.z-constant.z-ruby {
+ color: #b58900;
+}
+.z-constant.z-other.z-symbol.z-ruby {
+ color: #2aa198;
+}
+.z-keyword.z-other.z-special-method.z-ruby {
+ color: #cb4b16;
+}
+.z-meta.z-array .z-support.z-function.z-construct.z-php {
+ color: #b58900;
+}
+.z-entity.z-name.z-function.z-preprocessor.z-c, .z-meta.z-preprocessor.z-c.z-include, .z-meta.z-preprocessor.z-macro.z-c {
+ color: #cb4b16;
+}
+.z-meta.z-preprocessor.z-c.z-include .z-string.z-quoted.z-other.z-lt-gt.z-include.z-c, .z-meta.z-preprocessor.z-c.z-include .z-punctuation.z-definition.z-string.z-begin.z-c, .z-meta.z-preprocessor.z-c.z-include .z-punctuation.z-definition.z-string.z-end.z-c {
+ color: #2aa198;
+}
+.z-other.z-package.z-exclude, .z-other.z-remove {
+ color: #dc322f;
+}
+.z-other.z-add {
+ color: #2aa198;
+}
+.z-punctuation.z-section.z-group.z-tex, .z-punctuation.z-definition.z-arguments.z-begin.z-latex, .z-punctuation.z-definition.z-arguments.z-end.z-latex, .z-punctuation.z-definition.z-arguments.z-latex {
+ color: #dc322f;
+}
+.z-meta.z-group.z-braces.z-tex {
+ color: #b58900;
+}
+.z-string.z-other.z-math.z-tex {
+ color: #b58900;
+}
+.z-variable.z-parameter.z-function.z-latex {
+ color: #cb4b16;
+}
+.z-punctuation.z-definition.z-constant.z-math.z-tex {
+ color: #dc322f;
+}
+.z-text.z-tex.z-latex .z-constant.z-other.z-math.z-tex, .z-constant.z-other.z-general.z-math.z-tex, .z-constant.z-other.z-general.z-math.z-tex, .z-constant.z-character.z-math.z-tex {
+ color: #2aa198;
+}
+.z-string.z-other.z-math.z-tex {
+ color: #b58900;
+}
+.z-punctuation.z-definition.z-string.z-begin.z-tex, .z-punctuation.z-definition.z-string.z-end.z-tex {
+ color: #dc322f;
+}
+.z-keyword.z-control.z-label.z-latex, .z-text.z-tex.z-latex .z-constant.z-other.z-general.z-math.z-tex {
+ color: #2aa198;
+}
+.z-variable.z-parameter.z-definition.z-label.z-latex {
+ color: #dc322f;
+}
+.z-support.z-function.z-be.z-latex {
+ color: #859900;
+}
+.z-support.z-function.z-section.z-latex {
+ color: #cb4b16;
+}
+.z-support.z-function.z-general.z-tex {
+ color: #2aa198;
+}
+.z-keyword.z-control.z-ref.z-latex {
+ color: #2aa198;
+}
+.z-storage.z-type.z-class.z-python, .z-storage.z-type.z-function.z-python, .z-storage.z-modifier.z-global.z-python {
+ color: #859900;
+}
+.z-support.z-type.z-exception.z-python {
+ color: #b58900;
+}
+.z-meta.z-scope.z-for-in-loop.z-shell, .z-variable.z-other.z-loop.z-shell {
+ color: #586e75;
+}
+.z-meta.z-scope.z-case-block.z-shell, .z-meta.z-scope.z-case-body.z-shell {
+ color: #586e75;
+}
+.z-punctuation.z-definition.z-logical-expression.z-shell {
+ color: #dc322f;
+}
+.z-storage.z-modifier.z-c++ {
+ color: #859900;
+}
+.z-support.z-function.z-perl {
+ color: #268bd2;
+}
+.z-meta.z-diff, .z-meta.z-diff.z-header {
+ color: #93a1a1;
+}
+.z-meta.z-diff.z-range {
+ color: #268bd2;
+}
+.z-markup.z-deleted {
+ color: #dc322f;
+}
+.z-markup.z-changed {
+ color: #b58900;
+}
+.z-markup.z-inserted {
+ color: #859900;
+}
+.z-markup.z-warning {
+ color: #b58900;
+}
+.z-markup.z-error {
+ color: #dc322f;
+}
+.z-markup.z-heading, .z-punctuation.z-definition.z-heading.z-markdown {
+ color: #b58900;
+font-weight: bold;
+}
+.z-markup.z-quote {
+ color: #859900;
+}
+.z-markup.z-italic {
+font-style: italic;
+}
+.z-markup.z-bold {
+font-weight: bold;
+}
+.z-markup.z-underline.z-link.z-markdown, .z-meta.z-link.z-reference .z-constant.z-other.z-reference.z-link.z-markdown {
+ color: #2aa198;
+}
+.z-constant.z-other.z-reference.z-link.z-markdown {
+ color: #6c71c4;
+}
+.z-meta.z-paragraph.z-markdown .z-meta.z-dummy.z-line-break {
+ background-color: #eee8d5;
+}
+.z-brackethighlighter.z-all {
+ color: #93a1a1;
+}
+.z-entity.z-name.z-filename.z-find-in-files {
+ color: #2aa198;
+}
+.z-constant.z-numeric.z-line-number.z-find-in-files {
+ color: #93a1a1;
+}
+.z-variable.z-other.z-readwrite.z-js, .z-variable.z-other.z-object.z-js, .z-variable.z-other.z-constant.z-js {
+ color: #657b83;
+}
diff --git a/themes/Seje2 b/themes/Seje2
-Subproject 7f3e4a91691cc8dfc1fc0fb74def6a069ea72e2
+Subproject b932add15d89ab854935cd15930c57b3616ea02