style(代码配色): 全站代码换成 Catppuccin 配色(亮色 Latte、暗色 Mocha),注释改成斜体
Deploy / deploy (push) Canceled after 0s
Deploy / deploy (push) Canceled after 0s
色值照官方 palette.json,哪类词用哪个色照官方 style guide:关键字紫、函数蓝、字符串绿、 数字橙、类型黄、注释灰。编辑器的底色、光标、选区、行号没动。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
df3b4f0dfd
commit
b2459b5b8a
3 files changed
+30
-29
No files matched your search
@@ -16,7 +16,7 @@ import type { ConfigProviderProps } from "naive-ui"
|
||||
|
||||
/** 词的种类 → 类名。编辑器在 shared/themes/codeTheme.ts 里挂的也是它 */
|
||||
export const codeHighlighter = tagHighlighter([
|
||||
// `int` 这类基本类型和关键字一个颜色(Dracula 的 storage.type),自定义的类型才是青色
|
||||
// `int` 这类基本类型和关键字一个颜色,自定义的类型(struct 名)才是类型色
|
||||
{
|
||||
tag: [
|
||||
t.keyword,
|
||||
|
||||
Reference in new issue
Block a user