From 3ebc698426c3ba7dc19daa27122aba801acb0522 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Fri, 1 Mar 2024 08:05:11 -0500 Subject: [PATCH] fix(npm): legacy markdown syntax highlighting (#596) --- styles/npm/catppuccin.user.css | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/styles/npm/catppuccin.user.css b/styles/npm/catppuccin.user.css index 7ce1e452..23c55b40 100644 --- a/styles/npm/catppuccin.user.css +++ b/styles/npm/catppuccin.user.css @@ -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;