diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 5d4a5a2..26aaa2e 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -13,5 +13,9 @@ jobs: uses: actions/checkout@v3 - name: Install Typst CLI run: curl -fsSL https://typst.community/typst-install/install.sh | sh -s "$TYPST_VERSION" + - name: Set up Python 3 + uses: actions/setup-python@v2 + with: + python-version: '3.x' - name: Run CI run: bash -c ./run-ci.sh diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 1337a81..a7f253c 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -14,6 +14,10 @@ jobs: fetch-depth: 0 - name: Install Typst CLI run: curl -fsSL https://typst.community/typst-install/install.sh | sh -s "$TYPST_VERSION" + - name: Set up Python 3 + uses: actions/setup-python@v2 + with: + python-version: '3.x' - name: Run CI run: bash -c ./run-ci.sh - name: Setup go diff --git a/README.md b/README.md index fd58f44..be0ba55 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,11 @@ Header and footer do not overlap into this margin in order to conform to univers Bibliography is formated with the IEEE style.
Appendecies make use of an abbreviation of APA style. +Complies with ABB branding guidelines such as: +- proper usage of the logo +- respecting the logo safe area +- brand colors (in syntax highlightning) + ## Fonts Both fonts used in the document are licensed under the [Open Font License](https://openfontlicense.org/) and can be used for non-commercial as well as commercial purposes. They can be downloaded from google fonts: diff --git a/base16/abb.yml b/base16/abb.yml new file mode 100644 index 0000000..5854d86 --- /dev/null +++ b/base16/abb.yml @@ -0,0 +1,20 @@ +# Base16 ABB branded color scheme +scheme-author: "Sven Vogel" +scheme-slug: "abb-base16" +scheme-name: "ABB Base16" +base00: "ffffff" # Default Background +base01: "fafafa" # Lighter Background +base02: "f0f0f0" # Selection Background +base03: "6e6e6e" # Comments, Invisibles, Line Highlighting +base04: "000000" # Dark Foreground +base05: "000000" # Default Foreground, Caret, Delimiters, Operators +base06: "fafafa" # Light Foreground (Not often used) +base07: "fafafa" # Light Background (Not often used) +base08: "262626" # Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted +base09: "004c97" # Integers, Boolean, Constants, XML Attributes, Markup Link Url +base0A: "ff000f" # Classes, Markup Bold, Search Text Background +base0B: "004c97" # Strings, Inherited Class, Markup Code, Diff Inserted +base0C: "262626" # Support, Regular Expressions, Escape Characters, Markup Quotes +base0D: "007a33" # Functions, Methods, Attribute IDs, Headings +base0E: "ff000f" # Keywords, Storage, Selector, Markup Italic, Diff Changed +base0F: "6e6e6e" # Deprecated, Opening/Closing Embedded Language Tags \ No newline at end of file diff --git a/base16/generator.py b/base16/generator.py new file mode 100644 index 0000000..8494b72 --- /dev/null +++ b/base16/generator.py @@ -0,0 +1,30 @@ +import yaml +import logging +import sys +import re + +global data + +def replace_tag(match): + return data[match.group(1)] + +if __name__ == '__main__': + logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s') + logger = logging.getLogger() + + with open(sys.argv[1], 'r') as file: + data = yaml.safe_load(file) + + content = "" + + with open(sys.argv[2], "r") as file: + logger.info(f"opened file: {sys.argv[2]}") + content = file.read() + logger.info(f"read file: {sys.argv[2]}") + + logger.info(f"converting...") + content = re.sub("\\{\\{([a-z0-9-]+)\\}\\}", replace_tag, content, 0, re.IGNORECASE) + + with open(sys.argv[3], "w") as file: + logger.info(f"writing changes...") + file.write(content) \ No newline at end of file diff --git a/base16/requirements.txt b/base16/requirements.txt new file mode 100644 index 0000000..4818cc5 --- /dev/null +++ b/base16/requirements.txt @@ -0,0 +1 @@ +pyyaml \ No newline at end of file diff --git a/base16/template.tmTheme b/base16/template.tmTheme new file mode 100644 index 0000000..bf7cb88 --- /dev/null +++ b/base16/template.tmTheme @@ -0,0 +1,561 @@ + + + + + author + Template: Chris Kempson, Scheme: {{scheme-author}} + name + Base16 {{scheme-name}} + semanticClass + theme.base16.{{scheme-slug}} + colorSpaceName + sRGB + gutterSettings + + background + #{{base01}} + divider + #{{base01}} + foreground + #{{base03}} + selectionBackground + #{{base02}} + selectionForeground + #{{base04}} + + settings + + + settings + + background + #{{base00}} + caret + #{{base05}} + foreground + #{{base05}} + invisibles + #{{base03}} + lineHighlight + #{{base03}}55 + selection + #{{base02}} + + + + name + Text + scope + variable.parameter.function + settings + + foreground + #{{base05}} + + + + name + Comments + scope + comment, punctuation.definition.comment + settings + + foreground + #{{base03}} + + + + name + Punctuation + scope + punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array + settings + + foreground + #{{base05}} + + + + name + Delimiters + scope + none + settings + + foreground + #{{base05}} + + + + name + Operators + scope + keyword.operator + settings + + foreground + #{{base05}} + + + + name + Keywords + scope + keyword + settings + + foreground + #{{base0E}} + + + + name + Variables + scope + variable + settings + + foreground + #{{base08}} + + + + name + Functions + scope + entity.name.function, meta.require, support.function.any-method, variable.function, variable.annotation, support.macro + settings + + foreground + #{{base0D}} + + + + name + Labels + scope + entity.name.label + settings + + foreground + #{{base0F}} + + + + name + Classes + scope + support.class, entity.name.class, entity.name.type.class + settings + + foreground + #{{base0A}} + + + + name + Classes + scope + meta.class + settings + + foreground + #{{base07}} + + + + name + Methods + scope + keyword.other.special-method + settings + + foreground + #{{base0D}} + + + + name + Storage + scope + storage + settings + + foreground + #{{base0E}} + + + + name + Support + scope + support.function + settings + + foreground + #{{base0C}} + + + + name + Strings, Inherited Class + scope + string, constant.other.symbol, entity.other.inherited-class + settings + + foreground + #{{base0B}} + + + + name + Integers + scope + constant.numeric + settings + + foreground + #{{base09}} + + + + name + Floats + scope + none + settings + + foreground + #{{base09}} + + + + name + Boolean + scope + none + settings + + foreground + #{{base09}} + + + + name + Constants + scope + constant + settings + + foreground + #{{base09}} + + + + name + Tags + scope + entity.name.tag + settings + + foreground + #{{base08}} + + + + name + Attributes + scope + entity.other.attribute-name + settings + + foreground + #{{base09}} + + + + name + Attribute IDs + scope + entity.other.attribute-name.id, punctuation.definition.entity + settings + + foreground + #{{base0D}} + + + + name + Selector + scope + meta.selector + settings + + foreground + #{{base0E}} + + + + name + Values + scope + none + settings + + foreground + #{{base09}} + + + + name + Headings + scope + markup.heading punctuation.definition.heading, entity.name.section + settings + + fontStyle + + foreground + #{{base0D}} + + + + name + Units + scope + keyword.other.unit + settings + + foreground + #{{base09}} + + + + name + Bold + scope + markup.bold, punctuation.definition.bold + settings + + fontStyle + bold + foreground + #{{base0A}} + + + + name + Italic + scope + markup.italic, punctuation.definition.italic + settings + + fontStyle + italic + foreground + #{{base0E}} + + + + name + Code + scope + markup.raw.inline + settings + + foreground + #{{base0B}} + + + + name + Link Text + scope + string.other.link, punctuation.definition.string.end.markdown, punctuation.definition.string.begin.markdown + settings + + foreground + #{{base08}} + + + + name + Link Url + scope + meta.link + settings + + foreground + #{{base09}} + + + + name + Lists + scope + markup.list + settings + + foreground + #{{base08}} + + + + name + Quotes + scope + markup.quote + settings + + foreground + #{{base09}} + + + + name + Separator + scope + meta.separator + settings + + background + #{{base02}} + foreground + #{{base05}} + + + + name + Inserted + scope + markup.inserted + settings + + foreground + #{{base0B}} + + + + name + Deleted + scope + markup.deleted + settings + + foreground + #{{base08}} + + + + name + Changed + scope + markup.changed + settings + + foreground + #{{base0E}} + + + + name + Colors + scope + constant.other.color + settings + + foreground + #{{base0C}} + + + + name + Regular Expressions + scope + string.regexp + settings + + foreground + #{{base0C}} + + + + name + Escape Characters + scope + constant.character.escape + settings + + foreground + #{{base0C}} + + + + name + Embedded + scope + punctuation.section.embedded, variable.interpolation + settings + + foreground + #{{base0E}} + + + + name + Illegal + scope + invalid.illegal + settings + + background + #{{base08}} + foreground + #{{base07}} + + + + name + Broken + scope + invalid.broken + settings + + background + #{{base09}} + foreground + #{{base00}} + + + + name + Deprecated + scope + invalid.deprecated + settings + + background + #{{base0F}} + foreground + #{{base07}} + + + + name + Unimplemented + scope + invalid.unimplemented + settings + + background + #{{base03}} + foreground + #{{base07}} + + + + uuid + uuid + + + diff --git a/generate-theme.sh b/generate-theme.sh new file mode 100644 index 0000000..0ae4dc7 --- /dev/null +++ b/generate-theme.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +pip install -r base16/requirements.txt +python base16/generator.py base16/abb.yml base16/template.tmTheme src/res/abb.tmTheme \ No newline at end of file diff --git a/run-ci.sh b/run-ci.sh index 33cbe95..40d2c65 100755 --- a/run-ci.sh +++ b/run-ci.sh @@ -33,6 +33,7 @@ function enter-section() { log "INFO" "section $1 completed successfully" } +enter-section "BUILD: ABB code theme" "./generate-theme.sh" 0 enter-section "Compiling template..." "typst compile template/main.typ --root . example.pdf" 0 enter-section "TEST: local template import" "typst compile tests/local-import/main.typ --root ." 0 enter-section "TEST: invalid config case 1" "typst compile tests/invalid-config/test-case-1.typ --root ." 1 diff --git a/src/res/abb.tmTheme b/src/res/abb.tmTheme new file mode 100644 index 0000000..7bc9587 --- /dev/null +++ b/src/res/abb.tmTheme @@ -0,0 +1,561 @@ + + + + + author + Template: Chris Kempson, Scheme: Sven Vogel + name + Base16 ABB Base16 + semanticClass + theme.base16.abb-base16 + colorSpaceName + sRGB + gutterSettings + + background + #fafafa + divider + #fafafa + foreground + #6e6e6e + selectionBackground + #f0f0f0 + selectionForeground + #000000 + + settings + + + settings + + background + #ffffff + caret + #000000 + foreground + #000000 + invisibles + #6e6e6e + lineHighlight + #6e6e6e55 + selection + #f0f0f0 + + + + name + Text + scope + variable.parameter.function + settings + + foreground + #000000 + + + + name + Comments + scope + comment, punctuation.definition.comment + settings + + foreground + #6e6e6e + + + + name + Punctuation + scope + punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array + settings + + foreground + #000000 + + + + name + Delimiters + scope + none + settings + + foreground + #000000 + + + + name + Operators + scope + keyword.operator + settings + + foreground + #000000 + + + + name + Keywords + scope + keyword + settings + + foreground + #ff000f + + + + name + Variables + scope + variable + settings + + foreground + #262626 + + + + name + Functions + scope + entity.name.function, meta.require, support.function.any-method, variable.function, variable.annotation, support.macro + settings + + foreground + #007a33 + + + + name + Labels + scope + entity.name.label + settings + + foreground + #6e6e6e + + + + name + Classes + scope + support.class, entity.name.class, entity.name.type.class + settings + + foreground + #ff000f + + + + name + Classes + scope + meta.class + settings + + foreground + #fafafa + + + + name + Methods + scope + keyword.other.special-method + settings + + foreground + #007a33 + + + + name + Storage + scope + storage + settings + + foreground + #ff000f + + + + name + Support + scope + support.function + settings + + foreground + #262626 + + + + name + Strings, Inherited Class + scope + string, constant.other.symbol, entity.other.inherited-class + settings + + foreground + #004c97 + + + + name + Integers + scope + constant.numeric + settings + + foreground + #004c97 + + + + name + Floats + scope + none + settings + + foreground + #004c97 + + + + name + Boolean + scope + none + settings + + foreground + #004c97 + + + + name + Constants + scope + constant + settings + + foreground + #004c97 + + + + name + Tags + scope + entity.name.tag + settings + + foreground + #262626 + + + + name + Attributes + scope + entity.other.attribute-name + settings + + foreground + #004c97 + + + + name + Attribute IDs + scope + entity.other.attribute-name.id, punctuation.definition.entity + settings + + foreground + #007a33 + + + + name + Selector + scope + meta.selector + settings + + foreground + #ff000f + + + + name + Values + scope + none + settings + + foreground + #004c97 + + + + name + Headings + scope + markup.heading punctuation.definition.heading, entity.name.section + settings + + fontStyle + + foreground + #007a33 + + + + name + Units + scope + keyword.other.unit + settings + + foreground + #004c97 + + + + name + Bold + scope + markup.bold, punctuation.definition.bold + settings + + fontStyle + bold + foreground + #ff000f + + + + name + Italic + scope + markup.italic, punctuation.definition.italic + settings + + fontStyle + italic + foreground + #ff000f + + + + name + Code + scope + markup.raw.inline + settings + + foreground + #004c97 + + + + name + Link Text + scope + string.other.link, punctuation.definition.string.end.markdown, punctuation.definition.string.begin.markdown + settings + + foreground + #262626 + + + + name + Link Url + scope + meta.link + settings + + foreground + #004c97 + + + + name + Lists + scope + markup.list + settings + + foreground + #262626 + + + + name + Quotes + scope + markup.quote + settings + + foreground + #004c97 + + + + name + Separator + scope + meta.separator + settings + + background + #f0f0f0 + foreground + #000000 + + + + name + Inserted + scope + markup.inserted + settings + + foreground + #004c97 + + + + name + Deleted + scope + markup.deleted + settings + + foreground + #262626 + + + + name + Changed + scope + markup.changed + settings + + foreground + #ff000f + + + + name + Colors + scope + constant.other.color + settings + + foreground + #262626 + + + + name + Regular Expressions + scope + string.regexp + settings + + foreground + #262626 + + + + name + Escape Characters + scope + constant.character.escape + settings + + foreground + #262626 + + + + name + Embedded + scope + punctuation.section.embedded, variable.interpolation + settings + + foreground + #ff000f + + + + name + Illegal + scope + invalid.illegal + settings + + background + #262626 + foreground + #fafafa + + + + name + Broken + scope + invalid.broken + settings + + background + #004c97 + foreground + #ffffff + + + + name + Deprecated + scope + invalid.deprecated + settings + + background + #6e6e6e + foreground + #fafafa + + + + name + Unimplemented + scope + invalid.unimplemented + settings + + background + #6e6e6e + foreground + #fafafa + + + + uuid + uuid + + + diff --git a/src/res/github.tmTheme b/src/res/github.tmTheme deleted file mode 100644 index 74f4bdb..0000000 --- a/src/res/github.tmTheme +++ /dev/null @@ -1,1753 +0,0 @@ - - - - - - - - name - GitHub - settings - - - - - settings - - - background - #ffffff - foreground - #323232 - invisibles - #000000 - caret - #323232 - - - gutter - #ffffff - gutterForeground - #b3b3b3 - - - guide - #e8e8e8 - stackGuide - #e8e8e8 - activeGuide - #b3b3b3 - - - lineHighlight - #f5f5f5 - findHighlight - #f8eec7 - findHighlightForeground - #323232 - selection - #f8eec7 - selectionBorder - #ffffff - - - bracketsForeground - #63a35c - bracketsOptions - underline - bracketContentsForeground - #63a35c - bracketContentsOptions - underline - - - tagsForeground - #63a35c - tagsOptions - underline - - - - - - name - Comment - scope - comment - settings - - foreground - #969896 - fontStyle - italic - - - - - - name - String - scope - string - settings - - foreground - #183691 - - - - - - name - RegExp Operator - scope - regexp-operator - settings - - foreground - #a71d5d - - - - - - name - RegExp Character Class - scope - string.regexp.characterclass punctuation.definition.string.begin, string.regexp.characterclass punctuation.definition.string.end - settings - - foreground - #a71d5d - - - - - - name - Number - scope - constant.numeric - settings - - foreground - #0086b3 - - - - - - name - Built-in Constant - scope - constant.language - settings - - foreground - #0086b3 - - - - - - name - User-defined Constant - scope - constant.character, constant.other, variable.other.constant - settings - - foreground - #0086b3 - - - - - - name - Variable - scope - variable - settings - - foreground - #323232 - - - - - - name - Keyword - scope - keyword - settings - - foreground - #a71d5d - fontStyle - bold - - - - - - name - Bitwise - scope - bitwise-operator - settings - - foreground - #a71d5d - fontStyle - bold - - - - - - name - Operator Accessor - scope - punctuation.accessor - settings - - foreground - #a71d5d - fontStyle - bold - - - - - - name - Storage - scope - storage - settings - - foreground - #a71d5d - fontStyle - bold - - - - - - name - Storage Type - scope - storage.type - settings - - foreground - #a71d5d - fontStyle - bold - - - - - - name - Class Name - scope - entity.name.class - settings - - foreground - #0086b3 - - - - - - name - Inherited Class - scope - entity.other.inherited-class - settings - - foreground - #0086b3 - - - - - - name - Function Name - scope - entity.name.function - settings - - foreground - #795da3 - fontStyle - bold - - - - - - name - Function Argument - scope - variable.parameter - settings - - foreground - #323232 - - - - - - name - Tag Name - scope - entity.name.tag - settings - - foreground - #63a35c - - - - - - name - Tag Attribute - scope - entity.other.attribute-name - settings - - foreground - #795da3 - - - - - - name - Library Function - scope - support.function - settings - - foreground - #62a35c - - - - - - name - Library Constant - scope - support.constant - settings - - foreground - #0086b3 - - - - - - name - Library Class - scope - support.type, support.class - settings - - foreground - #0086b3 - - - - - - name - Library Variable - scope - support.other.variable - settings - - foreground - #323232 - - - - - - name - Invalid - scope - invalid, invalid.illegal, invalid.deprecated - settings - - background - #f5f5f5 - foreground - #b52a1d - fontStyle - bold - - - - - - - - - name - Find-in-files Filename - scope - entity.name.filename.find-in-files - settings - - foreground - #323232 - fontStyle - bold - - - - name - Find-in-files Line Numbers - scope - constant.numeric.line-number.find-in-files, constant.numeric.line-number.match.find-in-files - settings - - foreground - #b3b3b3 - - - - - - - - - - name - Diff Header - scope - meta.diff.header - settings - - foreground - #969896 - background - #ffffff - fontStyle - italic - - - - - name - Diff Header - scope - meta.diff.header punctuation.definition.from-file.diff - settings - - foreground - #bd2c00 - background - #ffecec - fontStyle - italic bold - - - - - name - Diff Header - scope - meta.diff.header punctuation.definition.to-file.diff - settings - - foreground - #55a532 - background - #eaffea - fontStyle - italic bold - - - - - name - Diff Range - scope - meta.diff.range - settings - - foreground - #969896 - fontStyle - italic bold - - - - - name - Diff Deleted - scope - markup.deleted - settings - - background - #ffecec - - - - - name - Diff Deleted Punctuation - scope - markup.deleted punctuation.definition.inserted - settings - - foreground - #bd2c00 - fontStyle - bold - - - - - name - Diff Inserted - scope - markup.inserted - settings - - background - #eaffea - - - - - name - Diff Inserted Punctuation - scope - markup.inserted punctuation.definition.inserted - settings - - foreground - #55a532 - fontStyle - bold - - - - - - - - - - name - GitGutter Deleted - scope - markup.deleted.git_gutter - settings - - foreground - #bd2c00 - - - - - name - GitGutter Inserted - scope - markup.inserted.git_gutter - settings - - foreground - #55a532 - - - - - name - GitGutter Modified - scope - markup.changed.git_gutter - settings - - foreground - #0086B3 - - - - - name - GitGutter Ignored - scope - markup.ignored.git_gutter - settings - - foreground - #b3b3b3 - - - - - name - GitGutter Untracked - scope - markup.untracked.git_gutter - settings - - foreground - #b3b3b3 - - - - - - - - - - name - Entity Punctuation - scope - source.css punctuation.definition.entity - settings - - foreground - #323232 - - - - - name - Pseudo Selector - scope - source.css entity.other.attribute-name.pseudo-class, source.css entity.other.attribute-name.pseudo-element - settings - - foreground - #a71d5d - - - - - name - Property Value - scope - source.css meta.value, source.css support.constant, source.css support.function - settings - - foreground - #323232 - - - - - name - Color - scope - source.css constant.other.color - settings - - foreground - #ed6a43 - - - - - - - - - - name - Entity Punctuation - scope - source.scss punctuation.definition.entity - settings - - foreground - #323232 - - - - - name - Pseudo Selector - scope - source.scss entity.other.attribute-name.pseudo-class, source.scss entity.other.attribute-name.pseudo-element - settings - - foreground - #a71d5d - - - - - name - Color - scope - source.scss support.constant.property-value, source.scss support.function - settings - - foreground - #323232 - - - - - name - Variable - scope - source.scss variable - settings - - foreground - #a71d5d - - - - - - - - - - name - this - scope - variable.language.this.js - settings - - foreground - #ed6a43 - - - - - name - Function - scope - source.js entity.name.function - settings - - foreground - #323232 - fontStyle - regular - - - - - name - Function Definition - scope - source.js meta.function entity.name.function, source.js entity.name.function meta.function - settings - - foreground - #795da3 - fontStyle - bold - - - - - name - New Function - scope - entity.name.type.new.js - settings - - foreground - #795da3 - - - - - name - Function Prototype - scope - variable.language.prototype.js - settings - - foreground - #0086b3 - - - - - name - Support Function - scope - source.js support.function - settings - - foreground - #0086b3 - - - - - name - Function Prototype - scope - support.type.object.console.js - settings - - foreground - #795da3 - - - - - - - - - - name - JSON Property - 20 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 20 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 19 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 19 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 18 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 18 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 17 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 17 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 16 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 16 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 15 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 15 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 14 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 14 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 13 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 13 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 12 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 12 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 11 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 11 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 10 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 10 Deep - scope - meta meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 9 Deep - scope - meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 9 Deep - scope - meta meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 8 Deep - scope - meta meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 8 Deep - scope - meta meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 7 Deep - scope - meta meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 7 Deep - scope - meta meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 6 Deep - scope - meta meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 6 Deep - scope - meta meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 5 Deep - scope - meta meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 5 Deep - scope - meta meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 4 Deep - scope - meta meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 4 Deep - scope - meta meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 3 Deep - scope - meta meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 3 Deep - scope - meta meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 2 Deep - scope - meta meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 2 Deep - scope - meta meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - 1 Deep - scope - meta meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - 1 Deep - scope - meta meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - name - JSON Property - scope - meta.structure.dictionary.json string.quoted.double.json - settings - - foreground - #183691 - fontStyle - bold - - - - name - JSON Value - scope - meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json - settings - - foreground - #323232 - fontStyle - regular - - - - - - - - - - name - Keyword - scope - source.python keyword - settings - - fontStyle - bold - - - - - name - Storage - scope - source.python storage - settings - - fontStyle - bold - - - - - name - Storage Type - scope - source.python storage.type - settings - - fontStyle - bold - - - - - name - Function - scope - source.python entity.name.function - settings - - foreground - #323232 - fontStyle - bold - - - - - - - - - - name - Class - scope - source.php entity.name.type.class - settings - - foreground - #323232 - fontStyle - bold - - - - - - - - - - name - Language Variable - scope - variable.language.ruby - settings - - foreground - #ed6a43 - - - - - name - Module Name - scope - entity.name.type.module.ruby - settings - - foreground - #795da3 - fontStyle - bold - - - - - name - Class Name - scope - entity.name.type.class.ruby - settings - - foreground - #795da3 - fontStyle - bold - - - - - name - Inherited Class - scope - entity.other.inherited-class.ruby - settings - - foreground - #795da3 - fontStyle - bold - - - - - - - - - - name - Punctuation - scope - text.html.markdown punctuation.definition - settings - - foreground - #a71d5d - - - - - name - Separator - scope - text.html.markdown meta.separator - settings - - foreground - #b3b3b3 - - - - - name - Heading - scope - text.html.markdown markup.heading - settings - - fontStyle - bold - - - - - name - Code Block - scope - text.html.markdown markup.raw.block - settings - - foreground - #323232 - - - - - name - Inline Code - scope - text.html.markdown markup.raw.inline - settings - - foreground - #323232 - - - - - name - Link and Image - scope - text.html.markdown meta.link, text.html.markdown meta.image - settings - - foreground - #4183c4 - - - - name - Link URL - scope - text.html.markdown markup.underline.link, text.html.markdown constant.other.reference - settings - - fontStyle - italic - - - - - name - List - scope - text.html.markdown markup.list - settings - - foreground - #ed6a43 - - - - - name - Bold - scope - text.html.markdown markup.bold - settings - - fontStyle - bold - - - - - name - Italic - scope - text.html.markdown markup.italic - settings - - fontStyle - italic - - - - - name - Bold Italic - scope - text.html.markdown markup.bold markup.italic - settings - - fontStyle - bold italic - - - - - name - Italic Bold - scope - text.html.markdown markup.italic markup.bold - settings - - fontStyle - italic bold - - - - - \ No newline at end of file diff --git a/src/style.typ b/src/style.typ index 8991389..625c257 100644 --- a/src/style.typ +++ b/src/style.typ @@ -48,7 +48,7 @@ show heading.where(level: 3): it => v(0.5em) + it + v(0.25em) // set theme for code blocks - set raw(tab-size: 4, theme: "res/github.tmTheme") + set raw(tab-size: 4, theme: "res/abb.tmTheme") show figure: set block(breakable: true)