Skip to content

Latest commit

 

History

History
120 lines (89 loc) · 4.27 KB

README.md

File metadata and controls

120 lines (89 loc) · 4.27 KB

XSLT Dark Themes

A set of popular dark color themes extended to enhance support for XSLT/XPath Semantic Highlighting.

These themes are for use with the XSLT/Path for Visual Studio Code and XPath Notebooks extensions maintained by DeltaXML.

Themes

The following themes are included. The 'X' prefix is used to distinguish the XSLT/XPath extended variant. Links are to the VS Code marketplace entries for the original themes.

Screenshots


X Darcula from IntelliJ


X Gruvbox Material Dark


X Nord


X Tokyo Night


X Iceberg


X Zenburn


Project Goal

The immediate goal of this extension is to add support for language-specific XSLT and XPath semantic tokens for a range of popular themes.

These theme enhancements are provided as a convenient alternative to managing custom user settings.

User Customisation

You can override specific XSLT token colors in user settings, as in the following example:

  "editor.semanticTokenColorCustomizations": {
    "[Kimbie Dark]": {
      "enabled": true,
      "rules": {
        "simpleType": "#98676a",
        "anonymousFunction": "#889b4a",
				"axisName": "#98676a",
      }
    }
  }

Property names like simpleType correspond to the XSLT/XPath-specific Semantic Tokens names. Here's a full list:

XSLT Semantic Tokens

attributeName,
attributeEquals,
attributeValue,
xmlnsName,
dtd,
elementName,
elementValue,
processingInstrName,
processingInstrValue,
entityRef,
xmlComment,
xmlPunctuation,
xslElementName,
xmlText

XPath Semantic Tokens

attributeNameTest,   
comment*,
number*,
operator*,
variable*,   
string*,
uriLiteral,
nodeType,  
simpleType,
axisName, 
nodeNameTest,
functionNameTest,
complexExpression,
function*,
entityRef,
anonymousFunction,
mapKey

* 'Standard' semantic tokens - used by other languages

Additional Notes

  1. Alongside adding support for XSLT/XPath Semantic Tokens, for some themes there may have been slight adjustments. Specifically:

    • Ensure active indent-guide-line has sufficient contrast with non-active lines
    • For XPath Notebooks, ensure the code cell background color is different to the general background color
  2. For some themes it was necessary to adjust colors for semantic tokens that are not specific to XSLT/XPath