From bf695a8fb9c1507303890b7cf6375292bf51646b Mon Sep 17 00:00:00 2001 From: lutinglt Date: Wed, 9 Sep 2026 19:56:46 +0800 Subject: [PATCH] 1.27.3 --- .github/workflows/build.yml | 2 +- .github/workflows/pr.yml | 2 +- .github/workflows/release.yml | 2 +- package.json | 26 +- .../__snapshots__/catppuccin.test.ts.snap | 376 ++++++------ src/palette/__snapshots__/primer.test.ts.snap | 550 +++++++++--------- 6 files changed, 479 insertions(+), 479 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 16728c9..38b65dd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: - uses: oven-sh/setup-bun@v2 with: - bun-version: "1.3.14" + bun-version: "1.4.2" - name: Build theme id: build diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 7371653..748f6fb 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -22,7 +22,7 @@ jobs: - uses: oven-sh/setup-bun@v2 with: - bun-version: "1.3.14" + bun-version: "1.4.2" - uses: actions/cache@v6 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9936953..af63782 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v7 - uses: oven-sh/setup-bun@v2 with: - bun-version: "1.3.14" + bun-version: "1.4.2" - name: Build theme run: | bun install diff --git a/package.json b/package.json index 823396c..c87eae7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lutinglt/gitea-github-theme", - "version": "1.27.2", + "version": "1.27.3", "license": "Apache-2.0", "author": { "name": "lutinglt", @@ -36,25 +36,25 @@ "install:clean": "rm -rf node_modules bun.lock bun.lockb && bun install" }, "devDependencies": { - "@catppuccin/palette": "^1.8.0", + "@catppuccin/palette": "1.8.0", "@eslint/js": "^10.0.1", - "@primer/primitives": "11.9.0", + "@primer/primitives": "11.10.0", "@types/node": "^25.9.5", - "@vanilla-extract/css": "^1.21.1", - "color2k": "^2.0.3", + "@vanilla-extract/css": "^1.21.2", + "color2k": "^2.0.4", "dotenv": "^17.4.2", - "eslint": "^10.6.0", - "globals": "^17.7.0", + "eslint": "^10.10.0", + "globals": "^17.12.0", "jiti": "^2.7.0", - "lightningcss": "^1.32.0", + "lightningcss": "^1.33.0", "prettier": "3.8.1", "prettier-plugin-organize-imports": "^4.3.0", - "style-dictionary": "^5.5.0", + "style-dictionary": "^5.5.3", "typescript": "^7.0.2", - "typescript-eslint": "^8.63.0", - "undici": "^7.28.0", - "vite": "^8.1.4", - "vitest": "^4.1.10" + "typescript-eslint": "^8.70.0", + "undici": "^7.29.1", + "vite": "^8.2.2", + "vitest": "^4.1.11" }, "prettier": { "printWidth": 120, diff --git a/src/palette/__snapshots__/catppuccin.test.ts.snap b/src/palette/__snapshots__/catppuccin.test.ts.snap index 8827b91..86ae60c 100644 --- a/src/palette/__snapshots__/catppuccin.test.ts.snap +++ b/src/palette/__snapshots__/catppuccin.test.ts.snap @@ -1,6 +1,190 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`catppuccin 暗/亮模式语义 > light 主题 base.black 应为深色 1`] = ` +exports[`catppuccin2Syntax > 所有风味 syntax 含核心键 1`] = ` +{ + "attribute": "#df8e1d", + "bool": "#04a5e5", + "comment": "#7c7f93", + "commentSpecial": "#9ca0b0", + "control": "#fe640b", + "decorator": "#ea76cb", + "deletedBg": "rgba(210, 15, 57, 0.4)", + "diffFg": "rgba(223, 142, 29, 0.4)", + "emph": "#df8e1d", + "entity": "#1e66f5", + "escape": "#1e66f5", + "heading": "#d20f39", + "insertedBg": "rgba(64, 160, 43, 0.4)", + "invalid": "#d20f39", + "keyword": "#8839ef", + "link": "#1e66f5", + "matchingBracketBg": "rgba(23, 146, 153, 0.4)", + "name": "#7287fd", + "namePseudo": "#fe640b", + "namespace": "#df8e1d", + "nonmatchingBracketBg": "rgba(210, 15, 57, 0.4)", + "number": "#fe640b", + "operator": "#04a5e5", + "output": "#fe640b", + "preproc": "#1e66f5", + "preprocFile": "#1e66f5", + "prompt": "#9ca0b0", + "property": "#1e66f5", + "punctuation": "#7c7f93", + "regexp": "#1e66f5", + "string": "#40a02b", + "stringSpecial": "#40a02b", + "strong": "#df8e1d", + "subheading": "#04a5e5", + "tag": "#df8e1d", + "text": "#4c4f69", + "textAlt": "#6c6f85", + "traceback": "#e64553", + "type": "#df8e1d", + "variable": "#fe640b", + "whitespace": "#9ca0b0", +} +`; + +exports[`catppuccin2Syntax > 所有风味 syntax 含核心键 2`] = ` +{ + "attribute": "#e5c890", + "bool": "#99d1db", + "comment": "#949cbb", + "commentSpecial": "#737994", + "control": "#ef9f76", + "decorator": "#f4b8e4", + "deletedBg": "rgba(231, 130, 132, 0.4)", + "diffFg": "rgba(229, 200, 144, 0.4)", + "emph": "#e5c890", + "entity": "#8caaee", + "escape": "#8caaee", + "heading": "#e78284", + "insertedBg": "rgba(166, 209, 137, 0.4)", + "invalid": "#e78284", + "keyword": "#ca9ee6", + "link": "#8caaee", + "matchingBracketBg": "rgba(129, 200, 190, 0.4)", + "name": "#babbf1", + "namePseudo": "#ef9f76", + "namespace": "#e5c890", + "nonmatchingBracketBg": "rgba(231, 130, 132, 0.4)", + "number": "#ef9f76", + "operator": "#99d1db", + "output": "#ef9f76", + "preproc": "#8caaee", + "preprocFile": "#8caaee", + "prompt": "#737994", + "property": "#8caaee", + "punctuation": "#949cbb", + "regexp": "#8caaee", + "string": "#a6d189", + "stringSpecial": "#a6d189", + "strong": "#e5c890", + "subheading": "#99d1db", + "tag": "#e5c890", + "text": "#c6d0f5", + "textAlt": "#a5adce", + "traceback": "#ea999c", + "type": "#e5c890", + "variable": "#ef9f76", + "whitespace": "#737994", +} +`; + +exports[`catppuccin2Syntax > 所有风味 syntax 含核心键 3`] = ` +{ + "attribute": "#eed49f", + "bool": "#91d7e3", + "comment": "#939ab7", + "commentSpecial": "#6e738d", + "control": "#f5a97f", + "decorator": "#f5bde6", + "deletedBg": "rgba(237, 135, 150, 0.4)", + "diffFg": "rgba(238, 212, 159, 0.4)", + "emph": "#eed49f", + "entity": "#8aadf4", + "escape": "#8aadf4", + "heading": "#ed8796", + "insertedBg": "rgba(166, 218, 149, 0.4)", + "invalid": "#ed8796", + "keyword": "#c6a0f6", + "link": "#8aadf4", + "matchingBracketBg": "rgba(139, 213, 202, 0.4)", + "name": "#b7bdf8", + "namePseudo": "#f5a97f", + "namespace": "#eed49f", + "nonmatchingBracketBg": "rgba(237, 135, 150, 0.4)", + "number": "#f5a97f", + "operator": "#91d7e3", + "output": "#f5a97f", + "preproc": "#8aadf4", + "preprocFile": "#8aadf4", + "prompt": "#6e738d", + "property": "#8aadf4", + "punctuation": "#939ab7", + "regexp": "#8aadf4", + "string": "#a6da95", + "stringSpecial": "#a6da95", + "strong": "#eed49f", + "subheading": "#91d7e3", + "tag": "#eed49f", + "text": "#cad3f5", + "textAlt": "#a5adcb", + "traceback": "#ee99a0", + "type": "#eed49f", + "variable": "#f5a97f", + "whitespace": "#6e738d", +} +`; + +exports[`catppuccin2Syntax > 所有风味 syntax 含核心键 4`] = ` +{ + "attribute": "#f9e2af", + "bool": "#89dceb", + "comment": "#9399b2", + "commentSpecial": "#6c7086", + "control": "#fab387", + "decorator": "#f5c2e7", + "deletedBg": "rgba(243, 139, 168, 0.4)", + "diffFg": "rgba(249, 226, 175, 0.4)", + "emph": "#f9e2af", + "entity": "#89b4fa", + "escape": "#89b4fa", + "heading": "#f38ba8", + "insertedBg": "rgba(166, 227, 161, 0.4)", + "invalid": "#f38ba8", + "keyword": "#cba6f7", + "link": "#89b4fa", + "matchingBracketBg": "rgba(148, 226, 213, 0.4)", + "name": "#b4befe", + "namePseudo": "#fab387", + "namespace": "#f9e2af", + "nonmatchingBracketBg": "rgba(243, 139, 168, 0.4)", + "number": "#fab387", + "operator": "#89dceb", + "output": "#fab387", + "preproc": "#89b4fa", + "preprocFile": "#89b4fa", + "prompt": "#6c7086", + "property": "#89b4fa", + "punctuation": "#9399b2", + "regexp": "#89b4fa", + "string": "#a6e3a1", + "stringSpecial": "#a6e3a1", + "strong": "#f9e2af", + "subheading": "#89dceb", + "tag": "#f9e2af", + "text": "#cdd6f4", + "textAlt": "#a6adc8", + "traceback": "#eba0ac", + "type": "#f9e2af", + "variable": "#fab387", + "whitespace": "#6c7086", +} +`; + +exports[`catppuccin2ThemeColor > mocha 结构完整 1`] = ` { "color": { "accent": "#cba6f7", @@ -615,7 +799,7 @@ exports[`catppuccin 暗/亮模式语义 > light 主题 base.black 应为深色 1 } `; -exports[`catppuccin 暗/亮模式语义 > light 主题 base.black 应为深色 2`] = ` +exports[`catppuccin2ThemeColor > mocha 结构完整 2`] = ` { "color": { "accent": "#8839ef", @@ -1230,7 +1414,7 @@ exports[`catppuccin 暗/亮模式语义 > light 主题 base.black 应为深色 2 } `; -exports[`catppuccin 暗/亮模式语义 > light 主题 base.black 应为深色 3`] = ` +exports[`catppuccin2ThemeColor > mocha 结构完整 3`] = ` { "color": { "accent": "#ca9ee6", @@ -1845,7 +2029,7 @@ exports[`catppuccin 暗/亮模式语义 > light 主题 base.black 应为深色 3 } `; -exports[`catppuccin 暗/亮模式语义 > light 主题 base.black 应为深色 4`] = ` +exports[`catppuccin2ThemeColor > mocha 结构完整 4`] = ` { "color": { "accent": "#c6a0f6", @@ -2459,187 +2643,3 @@ exports[`catppuccin 暗/亮模式语义 > light 主题 base.black 应为深色 4 "isDarkTheme": true, } `; - -exports[`catppuccin 暗/亮模式语义 > light 主题 base.black 应为深色 5`] = ` -{ - "attribute": "#df8e1d", - "bool": "#04a5e5", - "comment": "#7c7f93", - "commentSpecial": "#9ca0b0", - "control": "#fe640b", - "decorator": "#ea76cb", - "deletedBg": "rgba(210, 15, 57, 0.4)", - "diffFg": "rgba(223, 142, 29, 0.4)", - "emph": "#df8e1d", - "entity": "#1e66f5", - "escape": "#1e66f5", - "heading": "#d20f39", - "insertedBg": "rgba(64, 160, 43, 0.4)", - "invalid": "#d20f39", - "keyword": "#8839ef", - "link": "#1e66f5", - "matchingBracketBg": "rgba(23, 146, 153, 0.4)", - "name": "#7287fd", - "namePseudo": "#fe640b", - "namespace": "#df8e1d", - "nonmatchingBracketBg": "rgba(210, 15, 57, 0.4)", - "number": "#fe640b", - "operator": "#04a5e5", - "output": "#fe640b", - "preproc": "#1e66f5", - "preprocFile": "#1e66f5", - "prompt": "#9ca0b0", - "property": "#1e66f5", - "punctuation": "#7c7f93", - "regexp": "#1e66f5", - "string": "#40a02b", - "stringSpecial": "#40a02b", - "strong": "#df8e1d", - "subheading": "#04a5e5", - "tag": "#df8e1d", - "text": "#4c4f69", - "textAlt": "#6c6f85", - "traceback": "#e64553", - "type": "#df8e1d", - "variable": "#fe640b", - "whitespace": "#9ca0b0", -} -`; - -exports[`catppuccin 暗/亮模式语义 > light 主题 base.black 应为深色 6`] = ` -{ - "attribute": "#e5c890", - "bool": "#99d1db", - "comment": "#949cbb", - "commentSpecial": "#737994", - "control": "#ef9f76", - "decorator": "#f4b8e4", - "deletedBg": "rgba(231, 130, 132, 0.4)", - "diffFg": "rgba(229, 200, 144, 0.4)", - "emph": "#e5c890", - "entity": "#8caaee", - "escape": "#8caaee", - "heading": "#e78284", - "insertedBg": "rgba(166, 209, 137, 0.4)", - "invalid": "#e78284", - "keyword": "#ca9ee6", - "link": "#8caaee", - "matchingBracketBg": "rgba(129, 200, 190, 0.4)", - "name": "#babbf1", - "namePseudo": "#ef9f76", - "namespace": "#e5c890", - "nonmatchingBracketBg": "rgba(231, 130, 132, 0.4)", - "number": "#ef9f76", - "operator": "#99d1db", - "output": "#ef9f76", - "preproc": "#8caaee", - "preprocFile": "#8caaee", - "prompt": "#737994", - "property": "#8caaee", - "punctuation": "#949cbb", - "regexp": "#8caaee", - "string": "#a6d189", - "stringSpecial": "#a6d189", - "strong": "#e5c890", - "subheading": "#99d1db", - "tag": "#e5c890", - "text": "#c6d0f5", - "textAlt": "#a5adce", - "traceback": "#ea999c", - "type": "#e5c890", - "variable": "#ef9f76", - "whitespace": "#737994", -} -`; - -exports[`catppuccin 暗/亮模式语义 > light 主题 base.black 应为深色 7`] = ` -{ - "attribute": "#eed49f", - "bool": "#91d7e3", - "comment": "#939ab7", - "commentSpecial": "#6e738d", - "control": "#f5a97f", - "decorator": "#f5bde6", - "deletedBg": "rgba(237, 135, 150, 0.4)", - "diffFg": "rgba(238, 212, 159, 0.4)", - "emph": "#eed49f", - "entity": "#8aadf4", - "escape": "#8aadf4", - "heading": "#ed8796", - "insertedBg": "rgba(166, 218, 149, 0.4)", - "invalid": "#ed8796", - "keyword": "#c6a0f6", - "link": "#8aadf4", - "matchingBracketBg": "rgba(139, 213, 202, 0.4)", - "name": "#b7bdf8", - "namePseudo": "#f5a97f", - "namespace": "#eed49f", - "nonmatchingBracketBg": "rgba(237, 135, 150, 0.4)", - "number": "#f5a97f", - "operator": "#91d7e3", - "output": "#f5a97f", - "preproc": "#8aadf4", - "preprocFile": "#8aadf4", - "prompt": "#6e738d", - "property": "#8aadf4", - "punctuation": "#939ab7", - "regexp": "#8aadf4", - "string": "#a6da95", - "stringSpecial": "#a6da95", - "strong": "#eed49f", - "subheading": "#91d7e3", - "tag": "#eed49f", - "text": "#cad3f5", - "textAlt": "#a5adcb", - "traceback": "#ee99a0", - "type": "#eed49f", - "variable": "#f5a97f", - "whitespace": "#6e738d", -} -`; - -exports[`catppuccin 暗/亮模式语义 > light 主题 base.black 应为深色 8`] = ` -{ - "attribute": "#f9e2af", - "bool": "#89dceb", - "comment": "#9399b2", - "commentSpecial": "#6c7086", - "control": "#fab387", - "decorator": "#f5c2e7", - "deletedBg": "rgba(243, 139, 168, 0.4)", - "diffFg": "rgba(249, 226, 175, 0.4)", - "emph": "#f9e2af", - "entity": "#89b4fa", - "escape": "#89b4fa", - "heading": "#f38ba8", - "insertedBg": "rgba(166, 227, 161, 0.4)", - "invalid": "#f38ba8", - "keyword": "#cba6f7", - "link": "#89b4fa", - "matchingBracketBg": "rgba(148, 226, 213, 0.4)", - "name": "#b4befe", - "namePseudo": "#fab387", - "namespace": "#f9e2af", - "nonmatchingBracketBg": "rgba(243, 139, 168, 0.4)", - "number": "#fab387", - "operator": "#89dceb", - "output": "#fab387", - "preproc": "#89b4fa", - "preprocFile": "#89b4fa", - "prompt": "#6c7086", - "property": "#89b4fa", - "punctuation": "#9399b2", - "regexp": "#89b4fa", - "string": "#a6e3a1", - "stringSpecial": "#a6e3a1", - "strong": "#f9e2af", - "subheading": "#89dceb", - "tag": "#f9e2af", - "text": "#cdd6f4", - "textAlt": "#a6adc8", - "traceback": "#eba0ac", - "type": "#f9e2af", - "variable": "#fab387", - "whitespace": "#6c7086", -} -`; diff --git a/src/palette/__snapshots__/primer.test.ts.snap b/src/palette/__snapshots__/primer.test.ts.snap index 1d2740c..01a1d18 100644 --- a/src/palette/__snapshots__/primer.test.ts.snap +++ b/src/palette/__snapshots__/primer.test.ts.snap @@ -1,6 +1,280 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html +exports[`primer2Chroma > generic 含 deleted/emph/inserted/heading 1`] = ` +{ + "comment": { + "hashbang": "#9198a1", + "multiline": "#9198a1", + "preproc": "#79c0ff", + "preprocFile": "#79c0ff", + "self": "#9198a1", + "single": "#9198a1", + "special": "#9198a1", + }, + "err": "#f85149", + "generic": { + "deleted": "#ffdcd7", + "emph": "#f0f6fc", + "error": "#f85149", + "heading": "#1f6feb", + "inserted": "#aff5b4", + "output": "#f0f6fc", + "prompt": "#f0f6fc", + "self": "#f0f6fc", + "strong": "#f0f6fc", + "subheading": "#1f6feb", + "traceback": "#f85149", + "underline": "#f0f6fc", + }, + "keyword": { + "constant": "#79c0ff", + "declaration": "#ff7b72", + "namespace": "#ff7b72", + "pseudo": "#79c0ff", + "reserved": "#ff7b72", + "self": "#ff7b72", + "type": "#ffa657", + }, + "literal": { + "date": "#79c0ff", + "self": "#a5d6ff", + }, + "name": { + "attribute": "#7ee787", + "builtin": "#d2a8ff", + "builtinPseudo": "#f0f6fc", + "class": "#ffa657", + "constant": "#ffa657", + "decorator": "#d2a8ff", + "entity": "#ffa657", + "exception": "#ffa657", + "function": "#d2a8ff", + "functionMagic": "#d2a8ff", + "label": "#79c0ff", + "namespace": "#f0f6fc", + "other": "#f0f6fc", + "property": "#79c0ff", + "self": "#f0f6fc", + "tag": "#7ee787", + "variable": "#79c0ff", + "variableClass": "#79c0ff", + "variableGlobal": "#79c0ff", + "variableInstance": "#79c0ff", + "variableMagic": "#f0f6fc", + }, + "number": { + "bin": "#79c0ff", + "float": "#79c0ff", + "hex": "#79c0ff", + "integer": "#79c0ff", + "integerLong": "#79c0ff", + "oct": "#79c0ff", + "self": "#79c0ff", + }, + "operator": { + "reserved": "#ff7b72", + "self": "#79c0ff", + "word": "#79c0ff", + }, + "punctuation": "#f0f6fc", + "string": { + "affix": "#a5d6ff", + "backtick": "#79c0ff", + "char": "#a5d6ff", + "delimiter": "#a5d6ff", + "doc": "#9198a1", + "double": "#a5d6ff", + "escape": "#a5d6ff", + "heredoc": "#a5d6ff", + "interpol": "#a5d6ff", + "other": "#a5d6ff", + "regex": "#7ee787", + "self": "#a5d6ff", + "single": "#a5d6ff", + "symbol": "#a5d6ff", + }, + "textWhiteSpace": "#f85149", +} +`; + +exports[`primer2Chroma > generic 含 deleted/emph/inserted/heading 2`] = ` +{ + "comment": { + "hashbang": "#59636e", + "multiline": "#59636e", + "preproc": "#0550ae", + "preprocFile": "#0550ae", + "self": "#59636e", + "single": "#59636e", + "special": "#59636e", + }, + "err": "#82071e", + "generic": { + "deleted": "#82071e", + "emph": "#1f2328", + "error": "#d1242f", + "heading": "#0550ae", + "inserted": "#116329", + "output": "#1f2328", + "prompt": "#1f2328", + "self": "#1f2328", + "strong": "#1f2328", + "subheading": "#0550ae", + "traceback": "#d1242f", + "underline": "#1f2328", + }, + "keyword": { + "constant": "#0550ae", + "declaration": "#cf222e", + "namespace": "#cf222e", + "pseudo": "#0550ae", + "reserved": "#cf222e", + "self": "#cf222e", + "type": "#953800", + }, + "literal": { + "date": "#0550ae", + "self": "#0a3069", + }, + "name": { + "attribute": "#0550ae", + "builtin": "#6639ba", + "builtinPseudo": "#1f2328", + "class": "#953800", + "constant": "#953800", + "decorator": "#6639ba", + "entity": "#953800", + "exception": "#953800", + "function": "#6639ba", + "functionMagic": "#6639ba", + "label": "#0550ae", + "namespace": "#1f2328", + "other": "#1f2328", + "property": "#0550ae", + "self": "#1f2328", + "tag": "#0550ae", + "variable": "#0550ae", + "variableClass": "#0550ae", + "variableGlobal": "#0550ae", + "variableInstance": "#0550ae", + "variableMagic": "#1f2328", + }, + "number": { + "bin": "#0550ae", + "float": "#0550ae", + "hex": "#0550ae", + "integer": "#0550ae", + "integerLong": "#0550ae", + "oct": "#0550ae", + "self": "#0550ae", + }, + "operator": { + "reserved": "#cf222e", + "self": "#0550ae", + "word": "#0550ae", + }, + "punctuation": "#1f2328", + "string": { + "affix": "#0a3069", + "backtick": "#0550ae", + "char": "#0a3069", + "delimiter": "#0a3069", + "doc": "#59636e", + "double": "#0a3069", + "escape": "#0a3069", + "heredoc": "#0a3069", + "interpol": "#0a3069", + "other": "#0a3069", + "regex": "#116329", + "self": "#0a3069", + "single": "#0a3069", + "symbol": "#0a3069", + }, + "textWhiteSpace": "#82071e", +} +`; + exports[`primer2CodeMirror > language 含 json/html/css/xml 1`] = ` +{ + "language": { + "css": "#79c0ff", + "html": "#79c0ff", + "json": "#79c0ff", + "json5": "#79c0ff", + "xml": "#79c0ff", + "yaml": "#79c0ff", + }, + "token": { + "atom": "#79c0ff", + "bool": "#79c0ff", + "className": "#ffa657", + "comment": "#656c76", + "deleted": "#ff7b72", + "emphasis": "#656c76", + "heading": "#d2a8ff", + "inserted": "#a5d6ff", + "invalid": "#ff7b72", + "keyword": "#ff7b72", + "labelName": "#79c0ff", + "link": "#a5d6ff", + "macroName": "#ffa657", + "meta": "#79c0ff", + "namespace": "#ffa657", + "number": "#79c0ff", + "operator": "#f0f6fc", + "propertyName": "#79c0ff", + "punctuation": "#f0f6fc", + "string": "#a5d6ff", + "string2": "#a5d6ff", + "strong": "#656c76", + "typeName": "#ffa657", + "variableName": "#d2a8ff", + "variableName2": "#ff7b72", + }, +} +`; + +exports[`primer2CodeMirror > language 含 json/html/css/xml 2`] = ` +{ + "language": { + "css": "#0550ae", + "html": "#0550ae", + "json": "#0550ae", + "json5": "#0550ae", + "xml": "#0550ae", + "yaml": "#0550ae", + }, + "token": { + "atom": "#0550ae", + "bool": "#0550ae", + "className": "#953800", + "comment": "#1f2328", + "deleted": "#cf222e", + "emphasis": "#1f2328", + "heading": "#8250df", + "inserted": "#0a3069", + "invalid": "#cf222e", + "keyword": "#cf222e", + "labelName": "#0550ae", + "link": "#0a3069", + "macroName": "#953800", + "meta": "#0550ae", + "namespace": "#953800", + "number": "#0550ae", + "operator": "#1f2328", + "propertyName": "#0550ae", + "punctuation": "#1f2328", + "string": "#0a3069", + "string2": "#0a3069", + "strong": "#1f2328", + "typeName": "#953800", + "variableName": "#8250df", + "variableName2": "#cf222e", + }, +} +`; + +exports[`primer2GitHubColor > dark 包含 fgColor/bgColor/borderColor 1`] = ` { "ansi": { "black": "#2f3742", @@ -1802,7 +2076,7 @@ exports[`primer2CodeMirror > language 含 json/html/css/xml 1`] = ` } `; -exports[`primer2CodeMirror > language 含 json/html/css/xml 2`] = ` +exports[`primer2GitHubColor > dark 包含 fgColor/bgColor/borderColor 2`] = ` { "ansi": { "black": "#1f2328", @@ -3603,277 +3877,3 @@ exports[`primer2CodeMirror > language 含 json/html/css/xml 2`] = ` }, } `; - -exports[`primer2CodeMirror > language 含 json/html/css/xml 3`] = ` -{ - "comment": { - "hashbang": "#9198a1", - "multiline": "#9198a1", - "preproc": "#79c0ff", - "preprocFile": "#79c0ff", - "self": "#9198a1", - "single": "#9198a1", - "special": "#9198a1", - }, - "err": "#f85149", - "generic": { - "deleted": "#ffdcd7", - "emph": "#f0f6fc", - "error": "#f85149", - "heading": "#1f6feb", - "inserted": "#aff5b4", - "output": "#f0f6fc", - "prompt": "#f0f6fc", - "self": "#f0f6fc", - "strong": "#f0f6fc", - "subheading": "#1f6feb", - "traceback": "#f85149", - "underline": "#f0f6fc", - }, - "keyword": { - "constant": "#79c0ff", - "declaration": "#ff7b72", - "namespace": "#ff7b72", - "pseudo": "#79c0ff", - "reserved": "#ff7b72", - "self": "#ff7b72", - "type": "#ffa657", - }, - "literal": { - "date": "#79c0ff", - "self": "#a5d6ff", - }, - "name": { - "attribute": "#7ee787", - "builtin": "#d2a8ff", - "builtinPseudo": "#f0f6fc", - "class": "#ffa657", - "constant": "#ffa657", - "decorator": "#d2a8ff", - "entity": "#ffa657", - "exception": "#ffa657", - "function": "#d2a8ff", - "functionMagic": "#d2a8ff", - "label": "#79c0ff", - "namespace": "#f0f6fc", - "other": "#f0f6fc", - "property": "#79c0ff", - "self": "#f0f6fc", - "tag": "#7ee787", - "variable": "#79c0ff", - "variableClass": "#79c0ff", - "variableGlobal": "#79c0ff", - "variableInstance": "#79c0ff", - "variableMagic": "#f0f6fc", - }, - "number": { - "bin": "#79c0ff", - "float": "#79c0ff", - "hex": "#79c0ff", - "integer": "#79c0ff", - "integerLong": "#79c0ff", - "oct": "#79c0ff", - "self": "#79c0ff", - }, - "operator": { - "reserved": "#ff7b72", - "self": "#79c0ff", - "word": "#79c0ff", - }, - "punctuation": "#f0f6fc", - "string": { - "affix": "#a5d6ff", - "backtick": "#79c0ff", - "char": "#a5d6ff", - "delimiter": "#a5d6ff", - "doc": "#9198a1", - "double": "#a5d6ff", - "escape": "#a5d6ff", - "heredoc": "#a5d6ff", - "interpol": "#a5d6ff", - "other": "#a5d6ff", - "regex": "#7ee787", - "self": "#a5d6ff", - "single": "#a5d6ff", - "symbol": "#a5d6ff", - }, - "textWhiteSpace": "#f85149", -} -`; - -exports[`primer2CodeMirror > language 含 json/html/css/xml 4`] = ` -{ - "comment": { - "hashbang": "#59636e", - "multiline": "#59636e", - "preproc": "#0550ae", - "preprocFile": "#0550ae", - "self": "#59636e", - "single": "#59636e", - "special": "#59636e", - }, - "err": "#82071e", - "generic": { - "deleted": "#82071e", - "emph": "#1f2328", - "error": "#d1242f", - "heading": "#0550ae", - "inserted": "#116329", - "output": "#1f2328", - "prompt": "#1f2328", - "self": "#1f2328", - "strong": "#1f2328", - "subheading": "#0550ae", - "traceback": "#d1242f", - "underline": "#1f2328", - }, - "keyword": { - "constant": "#0550ae", - "declaration": "#cf222e", - "namespace": "#cf222e", - "pseudo": "#0550ae", - "reserved": "#cf222e", - "self": "#cf222e", - "type": "#953800", - }, - "literal": { - "date": "#0550ae", - "self": "#0a3069", - }, - "name": { - "attribute": "#0550ae", - "builtin": "#6639ba", - "builtinPseudo": "#1f2328", - "class": "#953800", - "constant": "#953800", - "decorator": "#6639ba", - "entity": "#953800", - "exception": "#953800", - "function": "#6639ba", - "functionMagic": "#6639ba", - "label": "#0550ae", - "namespace": "#1f2328", - "other": "#1f2328", - "property": "#0550ae", - "self": "#1f2328", - "tag": "#0550ae", - "variable": "#0550ae", - "variableClass": "#0550ae", - "variableGlobal": "#0550ae", - "variableInstance": "#0550ae", - "variableMagic": "#1f2328", - }, - "number": { - "bin": "#0550ae", - "float": "#0550ae", - "hex": "#0550ae", - "integer": "#0550ae", - "integerLong": "#0550ae", - "oct": "#0550ae", - "self": "#0550ae", - }, - "operator": { - "reserved": "#cf222e", - "self": "#0550ae", - "word": "#0550ae", - }, - "punctuation": "#1f2328", - "string": { - "affix": "#0a3069", - "backtick": "#0550ae", - "char": "#0a3069", - "delimiter": "#0a3069", - "doc": "#59636e", - "double": "#0a3069", - "escape": "#0a3069", - "heredoc": "#0a3069", - "interpol": "#0a3069", - "other": "#0a3069", - "regex": "#116329", - "self": "#0a3069", - "single": "#0a3069", - "symbol": "#0a3069", - }, - "textWhiteSpace": "#82071e", -} -`; - -exports[`primer2CodeMirror > language 含 json/html/css/xml 5`] = ` -{ - "language": { - "css": "#79c0ff", - "html": "#79c0ff", - "json": "#79c0ff", - "json5": "#79c0ff", - "xml": "#79c0ff", - "yaml": "#79c0ff", - }, - "token": { - "atom": "#79c0ff", - "bool": "#79c0ff", - "className": "#ffa657", - "comment": "#656c76", - "deleted": "#ff7b72", - "emphasis": "#656c76", - "heading": "#d2a8ff", - "inserted": "#a5d6ff", - "invalid": "#ff7b72", - "keyword": "#ff7b72", - "labelName": "#79c0ff", - "link": "#a5d6ff", - "macroName": "#ffa657", - "meta": "#79c0ff", - "namespace": "#ffa657", - "number": "#79c0ff", - "operator": "#f0f6fc", - "propertyName": "#79c0ff", - "punctuation": "#f0f6fc", - "string": "#a5d6ff", - "string2": "#a5d6ff", - "strong": "#656c76", - "typeName": "#ffa657", - "variableName": "#d2a8ff", - "variableName2": "#ff7b72", - }, -} -`; - -exports[`primer2CodeMirror > language 含 json/html/css/xml 6`] = ` -{ - "language": { - "css": "#0550ae", - "html": "#0550ae", - "json": "#0550ae", - "json5": "#0550ae", - "xml": "#0550ae", - "yaml": "#0550ae", - }, - "token": { - "atom": "#0550ae", - "bool": "#0550ae", - "className": "#953800", - "comment": "#1f2328", - "deleted": "#cf222e", - "emphasis": "#1f2328", - "heading": "#8250df", - "inserted": "#0a3069", - "invalid": "#cf222e", - "keyword": "#cf222e", - "labelName": "#0550ae", - "link": "#0a3069", - "macroName": "#953800", - "meta": "#0550ae", - "namespace": "#953800", - "number": "#0550ae", - "operator": "#1f2328", - "propertyName": "#0550ae", - "punctuation": "#1f2328", - "string": "#0a3069", - "string2": "#0a3069", - "strong": "#1f2328", - "typeName": "#953800", - "variableName": "#8250df", - "variableName2": "#cf222e", - }, -} -`;