fix(npm): legacy markdown syntax highlighting (#596)

This commit is contained in:
uncenter authored and GitHub committed 2024-03-01 08:05:11 -05:00
1 parent 8c532c464a
commit 3ebc698426
1 file changed
+30 -1
+30 -1
View File
@@ -2,7 +2,7 @@
@name npm Catppuccin
@namespace github.com/catppuccin/userstyles/styles/npm
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/npm
@version 0.0.1
@version 0.0.2
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/npm/catppuccin.user.css
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Anpm
@description Soothing pastel theme for npm
@@ -195,6 +195,10 @@
color: @overlay1;
}
&:focus {
box-shadow: none;
}
&::-webkit-search-cancel-button {
display: none;
}
@@ -652,6 +656,31 @@
background-color: darken(@base, 2.5%);
color: @text;
}
pre.editor.editor-colors {
.keyword {
color: var(--color-prettylights-syntax-keyword);
font-weight: normal; // stylelint-disable-line property-disallowed-list
}
.string {
color: var(--color-prettylights-syntax-string);
}
.variable {
color: var(--color-prettylights-syntax-variable);
}
.entity,
.function {
color: var(--color-prettylights-syntax-entity);
}
.comment {
color: var(--color-prettylights-syntax-comment);
}
.storage.type.function {
color: var(--color-prettylights-syntax-keyword);
}
.punctuation.definition:not(.string) {
color: @text;
}
}
h1,
h2 {
border-bottom-color: @surface1;