From 2cff086048557fb9b84299ba28275ad2dd0c5dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C4=A9nh=20Ph=C6=B0=E1=BB=9Bc?= Date: Sat, 8 Mar 2025 15:50:11 +0700 Subject: [PATCH] fix: Package name in Go always white Some how the `fmt` in `fmt.Println("Hello, World")` is not recognized as a token so there is no color apply to it. Fixed this by setting a default color for the `code` tag. --- assets/css/syntax.scss | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/css/syntax.scss b/assets/css/syntax.scss index 7eff1e7..9c9a763 100644 --- a/assets/css/syntax.scss +++ b/assets/css/syntax.scss @@ -41,8 +41,7 @@ code.language-scss, .token.function, .token.function-name, .token.deleted, -code.language-javascript, -code.language-html, +code[class*="language-"], .command-line-prompt > span:before { color: var(--syntax-func-color, color-mix(in srgb, var(--accent) 70%, #999 30%)) !important; }