Agent Skill
2/7/2026

brand-color-extractor

🎨 品牌配色提取專家 - 當需要為 VS Code 主題提取品牌官方配色時使用此 skill。從官方網站提取品牌配色並生成 VS Code 主題色彩方案 (project)

V
vivalalova
0GitHub Stars
1Views
npx skills add vivalalova/vscode-theme

SKILL.md

Namebrand-color-extractor
Description🎨 品牌配色提取專家 - 當需要為 VS Code 主題提取品牌官方配色時使用此 skill。從官方網站提取品牌配色並生成 VS Code 主題色彩方案 (project)

name: brand-color-extractor description: 🎨 品牌配色提取專家 - 當需要為 VS Code 主題提取品牌官方配色時使用此 skill。從官方網站提取品牌配色並生成 VS Code 主題色彩方案 (project)

品牌配色提取專家

從官方網站提取品牌配色並生成 VS Code 主題色彩方案。

使用時機

當需要為 VS Code 主題提取品牌官方配色時使用此 skill。

工作流程

1. 取得品牌配色

使用 WebFetch 訪問品牌官網或設計系統頁面,提取以下資訊:

優先來源順序:

  1. 官方 Brand Guidelines / Design System 頁面
  2. 官網首頁 CSS 變數
  3. 官方 Press Kit / Media Kit
  4. 產品介面截圖分析

需要提取的色彩:

  • Primary Color(主色)
  • Secondary Color(輔助色)
  • Accent Color(強調色)
  • Background Colors(背景色系)
  • Text Colors(文字色系)
  • Border/Divider Colors(邊框色)
  • Success/Warning/Error Colors(狀態色)

2. 色彩分析與轉換

淺色主題原則:

  • 編輯器背景:不要純白 #FFFFFF,使用品牌淺色背景(如 #F9FAFB#FAF9F7
  • 側邊欄背景:比編輯器稍深 2-3 階
  • 對比度:文字與背景對比度 ≥ 4.5:1(WCAG AA)
  • 強調色:使用品牌主色

深色主題原則:

  • 編輯器背景:#1A-2A 範圍內的深色
  • 側邊欄背景:比編輯器稍深或稍淺
  • 文字:#D0-F0 範圍的淺色
  • 強調色:品牌主色的亮色變體

VS Code 主題結構

1. UI 色彩 (colors)

編輯器介面元素的顏色,必須設定以下所有類別:

編輯器核心

屬性說明
editor.background編輯器背景
editor.foreground編輯器前景(預設文字色)
editor.lineHighlightBackground當前行高亮背景
editor.selectionBackground選取文字背景
editor.selectionHighlightBackground相同選取項高亮
editor.wordHighlightBackground讀取存取時單字高亮
editor.wordHighlightStrongBackground寫入存取時單字高亮
editor.findMatchBackground搜尋匹配項背景
editor.findMatchHighlightBackground其他搜尋匹配項
editor.hoverHighlightBackground懸停高亮
editor.rangeHighlightBackground範圍高亮(如快速開啟)
editorCursor.foreground游標顏色
editorWhitespace.foreground空白字元顏色
editorIndentGuide.background縮排參考線
editorIndentGuide.activeBackground作用中縮排線
editorRuler.foreground尺規顏色

行號與裝訂線

屬性說明
editorLineNumber.foreground行號顏色
editorLineNumber.activeForeground當前行號顏色
editorGutter.background裝訂線背景
editorGutter.modifiedBackground已修改行標記
editorGutter.addedBackground新增行標記
editorGutter.deletedBackground刪除行標記

括號與配對

屬性說明
editorBracketMatch.background配對括號背景
editorBracketMatch.border配對括號邊框
editorBracketHighlight.foreground1括號配對色 1
editorBracketHighlight.foreground2括號配對色 2
editorBracketHighlight.foreground3括號配對色 3
editorBracketHighlight.foreground4括號配對色 4
editorBracketHighlight.foreground5括號配對色 5
editorBracketHighlight.foreground6括號配對色 6

錯誤與警告

屬性說明
editorError.foreground錯誤波浪線
editorWarning.foreground警告波浪線
editorInfo.foreground資訊波浪線
editorHint.foreground提示波浪線

未使用程式碼

屬性說明建議值
editorUnnecessaryCode.opacity未使用程式碼透明度#00000077
editorUnnecessaryCode.border未使用程式碼邊框#00000000

活動欄 (Activity Bar)

屬性說明
activityBar.background活動欄背景
activityBar.foreground活動欄前景(選中圖示)
activityBar.inactiveForeground未選中圖示
activityBar.border活動欄邊框
activityBarBadge.background徽章背景
activityBarBadge.foreground徽章文字

側邊欄 (Side Bar)

屬性說明
sideBar.background側邊欄背景
sideBar.foreground側邊欄前景
sideBar.border側邊欄邊框
sideBarTitle.foreground側邊欄標題
sideBarSectionHeader.background區段標題背景
sideBarSectionHeader.foreground區段標題前景
sideBarSectionHeader.border區段標題邊框

標題欄 (Title Bar)

屬性說明
titleBar.activeBackground作用中標題背景
titleBar.activeForeground作用中標題前景
titleBar.inactiveBackground非作用中背景
titleBar.inactiveForeground非作用中前景
titleBar.border標題欄邊框

狀態欄 (Status Bar)

屬性說明
statusBar.background狀態欄背景
statusBar.foreground狀態欄前景
statusBar.border狀態欄邊框
statusBar.debuggingBackground除錯中背景
statusBar.debuggingForeground除錯中前景
statusBar.noFolderBackground無資料夾背景
statusBar.noFolderForeground無資料夾前景
statusBarItem.hoverBackground懸停背景
statusBarItem.activeBackground點擊背景
statusBarItem.prominentBackground醒目項目背景
statusBarItem.prominentHoverBackground醒目項目懸停
statusBarItem.remoteBackground遠端連線背景
statusBarItem.remoteForeground遠端連線前景

標籤 (Tabs)

屬性說明
tab.activeBackground作用中標籤背景
tab.activeForeground作用中標籤前景
tab.inactiveBackground非作用中標籤背景
tab.inactiveForeground非作用中標籤前景
tab.border標籤邊框
tab.activeBorder作用中標籤邊框
tab.activeBorderTop作用中標籤上邊框
tab.unfocusedActiveBackground非焦點作用中背景
tab.unfocusedActiveForeground非焦點作用中前景
tab.hoverBackground懸停背景
tab.hoverForeground懸停前景

編輯器群組與標籤列

屬性說明
editorGroup.border編輯器群組邊框
editorGroup.dropBackground拖放背景
editorGroupHeader.tabsBackground標籤列背景
editorGroupHeader.tabsBorder標籤列邊框
editorGroupHeader.noTabsBackground無標籤時背景

面板 (Panel)

屬性說明
panel.background面板背景
panel.border面板邊框
panelTitle.activeBorder作用中標題邊框
panelTitle.activeForeground作用中標題前景
panelTitle.inactiveForeground非作用中標題前景

終端機 (Terminal)

屬性說明
terminal.background終端機背景
terminal.foreground終端機前景
terminal.ansiBlackANSI 黑
terminal.ansiRedANSI 紅
terminal.ansiGreenANSI 綠
terminal.ansiYellowANSI 黃
terminal.ansiBlueANSI 藍
terminal.ansiMagentaANSI 洋紅
terminal.ansiCyanANSI 青
terminal.ansiWhiteANSI 白
terminal.ansiBrightBlackANSI 亮黑
terminal.ansiBrightRedANSI 亮紅
terminal.ansiBrightGreenANSI 亮綠
terminal.ansiBrightYellowANSI 亮黃
terminal.ansiBrightBlueANSI 亮藍
terminal.ansiBrightMagentaANSI 亮洋紅
terminal.ansiBrightCyanANSI 亮青
terminal.ansiBrightWhiteANSI 亮白
terminalCursor.foreground終端機游標
terminalCursor.background終端機游標背景

輸入框與下拉選單

屬性說明
input.background輸入框背景
input.foreground輸入框前景
input.border輸入框邊框
input.placeholderForeground佔位文字
inputOption.activeBackground選項作用中背景
inputOption.activeBorder選項作用中邊框
inputValidation.errorBackground驗證錯誤背景
inputValidation.errorBorder驗證錯誤邊框
inputValidation.warningBackground驗證警告背景
inputValidation.warningBorder驗證警告邊框
inputValidation.infoBackground驗證資訊背景
inputValidation.infoBorder驗證資訊邊框
dropdown.background下拉選單背景
dropdown.foreground下拉選單前景
dropdown.border下拉選單邊框

按鈕

屬性說明
button.background按鈕背景
button.foreground按鈕前景
button.hoverBackground按鈕懸停背景
button.secondaryBackground次要按鈕背景
button.secondaryForeground次要按鈕前景
button.secondaryHoverBackground次要按鈕懸停

列表與樹狀圖

屬性說明
list.activeSelectionBackground作用中選取背景
list.activeSelectionForeground作用中選取前景
list.inactiveSelectionBackground非作用中選取背景
list.inactiveSelectionForeground非作用中選取前景
list.hoverBackground懸停背景
list.hoverForeground懸停前景
list.focusBackground焦點背景
list.focusForeground焦點前景
list.highlightForeground搜尋匹配高亮
list.dropBackground拖放背景
tree.indentGuidesStroke樹狀圖縮排線

捲軸

屬性說明
scrollbar.shadow捲軸陰影
scrollbarSlider.background滑塊背景
scrollbarSlider.hoverBackground滑塊懸停
scrollbarSlider.activeBackground滑塊作用中

迷你地圖 (Minimap)

屬性說明
minimap.findMatchHighlight搜尋匹配高亮
minimap.selectionHighlight選取高亮
minimap.errorHighlight錯誤高亮
minimap.warningHighlight警告高亮
minimapSlider.background滑塊背景
minimapSlider.hoverBackground滑塊懸停
minimapSlider.activeBackground滑塊作用中
minimapGutter.addedBackground新增標記
minimapGutter.modifiedBackground修改標記
minimapGutter.deletedBackground刪除標記

麵包屑 (Breadcrumb)

屬性說明
breadcrumb.background麵包屑背景
breadcrumb.foreground麵包屑前景
breadcrumb.focusForeground焦點前景
breadcrumb.activeSelectionForeground選取前景
breadcrumbPicker.background選擇器背景

Git 裝飾

屬性說明
gitDecoration.addedResourceForeground新增檔案
gitDecoration.modifiedResourceForeground修改檔案
gitDecoration.deletedResourceForeground刪除檔案
gitDecoration.untrackedResourceForeground未追蹤檔案
gitDecoration.ignoredResourceForeground忽略檔案
gitDecoration.conflictingResourceForeground衝突檔案
gitDecoration.submoduleResourceForeground子模組
gitDecoration.stageModifiedResourceForeground暫存修改
gitDecoration.stageDeletedResourceForeground暫存刪除

Diff 編輯器

屬性說明
diffEditor.insertedTextBackground新增文字背景
diffEditor.removedTextBackground刪除文字背景
diffEditor.insertedLineBackground新增行背景
diffEditor.removedLineBackground刪除行背景
diffEditor.diagonalFill對角線填充

合併編輯器

屬性說明
merge.currentHeaderBackground當前分支標題背景
merge.currentContentBackground當前分支內容背景
merge.incomingHeaderBackground傳入分支標題背景
merge.incomingContentBackground傳入分支內容背景
merge.border合併邊框
merge.commonHeaderBackground共同祖先標題背景
merge.commonContentBackground共同祖先內容背景

通知

屬性說明
notificationCenter.border通知中心邊框
notificationCenterHeader.background通知中心標題背景
notificationCenterHeader.foreground通知中心標題前景
notifications.background通知背景
notifications.foreground通知前景
notifications.border通知邊框
notificationLink.foreground通知連結
notificationsErrorIcon.foreground錯誤圖示
notificationsWarningIcon.foreground警告圖示
notificationsInfoIcon.foreground資訊圖示

徽章

屬性說明
badge.background徽章背景
badge.foreground徽章前景

進度條

屬性說明
progressBar.background進度條背景

選取器與命令面板

屬性說明
pickerGroup.border群組邊框
pickerGroup.foreground群組前景
quickInput.background快速輸入背景
quickInput.foreground快速輸入前景
quickInputList.focusBackground焦點背景
quickInputTitle.background標題背景

編輯器小工具

屬性說明
editorWidget.background小工具背景
editorWidget.foreground小工具前景
editorWidget.border小工具邊框
editorSuggestWidget.background建議小工具背景
editorSuggestWidget.border建議小工具邊框
editorSuggestWidget.foreground建議小工具前景
editorSuggestWidget.selectedBackground選取背景
editorSuggestWidget.highlightForeground匹配高亮
editorHoverWidget.background懸停小工具背景
editorHoverWidget.border懸停小工具邊框
editorHoverWidget.foreground懸停小工具前景

Peek 檢視

屬性說明
peekView.borderPeek 邊框
peekViewEditor.backgroundPeek 編輯器背景
peekViewEditor.matchHighlightBackground匹配高亮背景
peekViewResult.background結果背景
peekViewResult.fileForeground檔案前景
peekViewResult.lineForeground行前景
peekViewResult.matchHighlightBackground匹配高亮
peekViewResult.selectionBackground選取背景
peekViewResult.selectionForeground選取前景
peekViewTitle.background標題背景
peekViewTitleDescription.foreground標題描述前景
peekViewTitleLabel.foreground標題標籤前景

焦點與邊框

屬性說明
focusBorder焦點邊框(全域)
contrastBorder對比邊框
contrastActiveBorder作用中對比邊框
widget.shadow小工具陰影
selection.background選取背景(全域)

歡迎頁面

屬性說明
welcomePage.background歡迎頁背景
welcomePage.buttonBackground按鈕背景
welcomePage.buttonHoverBackground按鈕懸停
walkThrough.embeddedEditorBackground嵌入編輯器背景

設定編輯器

屬性說明
settings.headerForeground標題前景
settings.modifiedItemIndicator已修改指示
settings.dropdownBackground下拉背景
settings.dropdownForeground下拉前景
settings.dropdownBorder下拉邊框
settings.checkboxBackground核取方塊背景
settings.checkboxForeground核取方塊前景
settings.checkboxBorder核取方塊邊框
settings.textInputBackground文字輸入背景
settings.textInputForeground文字輸入前景
settings.textInputBorder文字輸入邊框
settings.numberInputBackground數字輸入背景
settings.numberInputForeground數字輸入前景
settings.numberInputBorder數字輸入邊框

除錯

屬性說明
debugToolBar.background除錯工具列背景
debugToolBar.border除錯工具列邊框
debugExceptionWidget.background例外小工具背景
debugExceptionWidget.border例外小工具邊框
debugConsole.infoForeground主控台資訊
debugConsole.warningForeground主控台警告
debugConsole.errorForeground主控台錯誤
debugConsole.sourceForeground主控台來源
debugConsoleInputIcon.foreground輸入圖示

測試

屬性說明
testing.iconFailed失敗圖示
testing.iconErrored錯誤圖示
testing.iconPassed通過圖示
testing.iconQueued排隊圖示
testing.iconUnset未設定圖示
testing.iconSkipped跳過圖示

擴展

屬性說明
extensionButton.prominentBackground安裝按鈕背景
extensionButton.prominentForeground安裝按鈕前景
extensionButton.prominentHoverBackground安裝按鈕懸停
extensionBadge.remoteBackground遠端徽章背景
extensionBadge.remoteForeground遠端徽章前景

2. 語法高亮 (tokenColors)

程式碼 token 的著色,必須設定以下所有 scope:

基礎

Scope說明
comment註解
comment.line單行註解
comment.block區塊註解
comment.block.documentation文件註解

字串

Scope說明
string字串
string.quoted.single單引號字串
string.quoted.double雙引號字串
string.template模板字串
string.regexp正規表達式

常數

Scope說明
constant常數
constant.numeric數字
constant.numeric.integer整數
constant.numeric.float浮點數
constant.numeric.hex十六進位
constant.language語言常數 (true, false, null)
constant.character字元常數
constant.character.escape跳脫字元
constant.other其他常數

變數

Scope說明
variable變數
variable.parameter參數
variable.language語言變數 (this, self)
variable.other其他變數
variable.other.readwrite讀寫變數
variable.other.constant常數變數
variable.other.property屬性

關鍵字

Scope說明
keyword關鍵字
keyword.control控制關鍵字 (if, for, while)
keyword.control.conditional條件 (if, else)
keyword.control.loop迴圈 (for, while)
keyword.control.import匯入 (import, from)
keyword.control.flow流程控制 (return, break)
keyword.operator運算子關鍵字 (new, typeof)
keyword.other其他關鍵字

儲存

Scope說明
storage儲存
storage.type型別宣告 (const, let, var, function)
storage.modifier修飾詞 (public, private, static)

實體名稱

Scope說明
entity.name實體名稱
entity.name.function函數名稱
entity.name.class類別名稱
entity.name.type型別名稱
entity.name.tag標籤名稱 (HTML/XML)
entity.name.section區段名稱
entity.name.namespace命名空間
entity.other.attribute-name屬性名稱 (HTML/XML)
entity.other.inherited-class繼承類別

支援

Scope說明
support支援
support.function內建函數
support.function.builtin語言內建函數
support.class內建類別
support.type內建型別
support.type.primitive原始型別
support.constant內建常數
support.variable內建變數

標點符號

Scope說明
punctuation標點符號
punctuation.definition定義標點
punctuation.definition.string字串引號
punctuation.definition.comment註解符號
punctuation.definition.tag標籤括號
punctuation.separator分隔符 (逗號、分號)
punctuation.accessor存取器 (.)
punctuation.bracket括號

運算子

Scope說明
keyword.operator運算子
keyword.operator.assignment賦值運算子
keyword.operator.arithmetic算術運算子
keyword.operator.logical邏輯運算子
keyword.operator.comparison比較運算子
keyword.operator.ternary三元運算子
keyword.operator.spread展開運算子

Meta

Scope說明
meta.function函數區塊
meta.function-call函數呼叫
meta.class類別區塊
meta.block程式區塊
meta.brace大括號
meta.bracket中括號
meta.return.type回傳型別
meta.type.annotation型別註解
meta.object-literal.key物件鍵
meta.import匯入區塊
meta.export匯出區塊

無效

Scope說明
invalid無效
invalid.illegal非法語法
invalid.deprecated已棄用

Markup (Markdown)

Scope說明
markup.heading標題
markup.heading.1H1
markup.heading.2H2
markup.heading.3H3
markup.bold粗體
markup.italic斜體
markup.underline底線
markup.strikethrough刪除線
markup.quote引用
markup.list列表
markup.list.numbered有序列表
markup.list.unnumbered無序列表
markup.inline.raw行內程式碼
markup.raw.block程式碼區塊
markup.inserted插入
markup.deleted刪除
markup.changed變更

語言特定

JSON

Scope說明
support.type.property-name.jsonJSON 鍵名
string.jsonJSON 字串值

CSS/SCSS

Scope說明
entity.other.attribute-name.class.cssCSS 類別選擇器
entity.other.attribute-name.id.cssCSS ID 選擇器
entity.name.tag.cssCSS 標籤選擇器
support.type.property-name.cssCSS 屬性名
support.constant.property-value.cssCSS 屬性值
variable.scssSCSS 變數

HTML/JSX

Scope說明
entity.name.tag.htmlHTML 標籤
entity.other.attribute-name.htmlHTML 屬性
support.class.componentReact 元件
support.class.component.jsxJSX 元件

TypeScript

Scope說明
entity.name.type.tsTypeScript 型別
entity.name.type.interface.tsTypeScript 介面
entity.name.type.enum.tsTypeScript 列舉
entity.name.type.alias.tsTypeScript 型別別名
meta.type.parameters.ts泛型參數

Python

Scope說明
entity.name.function.decorator.pythonPython 裝飾器
support.type.pythonPython 型別
meta.function-call.arguments.pythonPython 函數參數

Swift

Scope說明
keyword.other.declaration-specifier.swiftSwift 宣告修飾詞
storage.type.swiftSwift 儲存型別
entity.name.type.swiftSwift 型別名稱
support.type.swiftSwift 支援型別

3. 語義高亮 (semanticTokenColors)

必須啟用 "semanticHighlighting": true,確保變數顏色正確顯示。

變數顏色規則(重要)

  • 深色主題:變數使用 #FFFFFF(白色)
  • 淺色主題:變數使用 #1a1a1a(近黑色)

必須設定的 token:

Token說明
variable變數
variable.readonly唯讀變數
variable.local區域變數
variable.declaration變數宣告
parameter參數
function函數
function.declaration函數宣告
function.defaultLibrary預設庫函數
method方法
method.declaration方法宣告
class類別
class.declaration類別宣告
interface介面
interface.declaration介面宣告
enum列舉
enumMember列舉成員
type型別
type.declaration型別宣告
namespace命名空間
property屬性
property.readonly唯讀屬性
property.declaration屬性宣告
macro巨集
comment註解
string字串
number數字
regexp正規表達式
operator運算子

品牌色彩映射

品牌主色 → activityBar.foreground, statusBar.background, focusBorder, editorCursor
品牌背景 → editor.background, sideBar.background, panel.background
品牌文字 → editor.foreground, sideBar.foreground
品牌輔助 → editorLineNumber.foreground, tab.inactiveForeground
品牌強調 → activityBarBadge.background, button.background

語法高亮配色建議

淺色主題:

  • Comment:灰色 50-60% 亮度
  • String:品牌色變體或琥珀/綠色系
  • Keyword:品牌主色或深藍/紫色系
  • Function:品牌輔助色或橙色系
  • Class:深色強調,可加 underline
  • Type:斜體,品牌色變體

深色主題:

  • 所有色彩亮度 +20-30%
  • 保持色相一致性

輸出格式

提供完整的 VS Code 主題 JSON,包含:

  1. "semanticHighlighting": true(必須)
  2. colors 物件(UI 色彩)- 必須包含上述所有類別
  3. tokenColors 陣列(語法高亮)- 必須包含上述所有 scope
  4. semanticTokenColors 物件(語義高亮)- 必須,確保變數顏色正確

品牌官網參考

品牌官網設計系統
Claude (Anthropic)claude.aianthropic.com
Microsoft Teamsteams.microsoft.comfluent2.microsoft.design
macOSapple.com/macosdeveloper.apple.com/design
iOSapple.com/iosdeveloper.apple.com/design
Androidandroid.comm3.material.io
Nintendonintendo.com-
Sonysony.com-
shadcn/uiui.shadcn.com-

範例提取流程

1. WebFetch: https://claude.ai → 提取頁面配色
2. WebFetch: https://anthropic.com/brand → 提取品牌指南
3. 分析 CSS 變數和主要色彩
4. 建立色彩映射表
5. 生成 VS Code 主題 JSON

品質檢查

  • 編輯器背景非純白/純黑
  • 文字可讀性(對比度 ≥ 4.5:1)
  • 品牌識別度(一眼能認出品牌)
  • 語法高亮區分度
  • 選取/高亮狀態清晰
  • 所有 UI 色彩類別都已設定
  • 所有語法高亮 scope 都已設定
  • semanticHighlighting: true 已啟用
  • semanticTokenColors 變數顏色已設定(深色 #FFFFFF / 淺色 #1a1a1a)
  • editorUnnecessaryCode 未使用程式碼樣式已設定
  • 終端機 ANSI 色彩完整
  • Git 裝飾色彩清晰區分
  • 括號配對色彩明顯
Skills Info
Original Name:brand-color-extractorAuthor:vivalalova