主题
使用提供方原生自动模式,从与 profile-snake 共用的 43 个预设中选择一个,覆盖几种颜色,或定义完整配色。
原生自动模式
一个 SVG 同时包含浅色和深色
不使用预设时,每张卡片都包含 github-light 和 github-dark,并通过 prefers-color-scheme 在两者之间切换。GitLab 主页使用 GitLab 配色。PNG 和 WebP 无法切换,因此使用浅色配色,设置 theme.mode: dark 时使用深色配色。
yaml
provider:
type: github
user: octocat
theme:
mode: auto
native: true
预设
下面每个预览都是带可复制 YAML 的真实卡片。
Signal Dark
深色
yaml
theme:
preset: signal-dark
Signal Light
浅色
yaml
theme:
preset: signal-light
GitHub Light
浅色
yaml
theme:
preset: github-light
GitHub Dark
深色
yaml
theme:
preset: github-dark
GitLab Light
浅色
yaml
theme:
preset: gitlab-light
GitLab Dark
深色
yaml
theme:
preset: gitlab-dark
Dracula
深色
yaml
theme:
preset: dracula
Nord
深色
yaml
theme:
preset: nord
Tokyo Night
深色
yaml
theme:
preset: tokyo-night
Catppuccin
深色
yaml
theme:
preset: catppuccin
One Dark
深色
yaml
theme:
preset: one-dark
One Light
浅色
yaml
theme:
preset: one-light
Gruvbox Dark
深色
yaml
theme:
preset: gruvbox-dark
Gruvbox Light
浅色
yaml
theme:
preset: gruvbox-light
Solarized Dark
深色
yaml
theme:
preset: solarized-dark
Solarized Light
浅色
yaml
theme:
preset: solarized-light
Halloween
深色
yaml
theme:
preset: halloween
Winter
浅色
yaml
theme:
preset: winter
New Year
深色
yaml
theme:
preset: new-year
Sakura
浅色
yaml
theme:
preset: sakura
Monokai
深色
yaml
theme:
preset: monokai
Ayu Mirage
深色
yaml
theme:
preset: ayu-mirage
Material Palenight
深色
yaml
theme:
preset: material-palenight
Night Owl
深色
yaml
theme:
preset: night-owl
Rose Pine
深色
yaml
theme:
preset: rose-pine
GitHub Dimmed
深色
yaml
theme:
preset: github-dimmed
Monochrome
浅色
yaml
theme:
preset: monochrome
Matrix
深色
yaml
theme:
preset: matrix
Ocean
深色
yaml
theme:
preset: ocean
Sunset
深色
yaml
theme:
preset: sunset
High Contrast
深色
yaml
theme:
preset: high-contrast
2077
深色
yaml
theme:
preset: "2077"
Radical
深色
yaml
theme:
preset: radical
Zenburn
深色
yaml
theme:
preset: zenburn
Vue
浅色
yaml
theme:
preset: vue
Nord Bright
浅色
yaml
theme:
preset: nord-bright
Transparent
深色
yaml
theme:
preset: transparent
Aura
深色
yaml
theme:
preset: aura
Cobalt2
深色
yaml
theme:
preset: cobalt2
Outrun
深色
yaml
theme:
preset: outrun
Moonlight
深色
yaml
theme:
preset: moonlight
React
深色
yaml
theme:
preset: react
Merko
深色
yaml
theme:
preset: merko
Gotham
深色
yaml
theme:
preset: gotham
Jolly
深色
yaml
theme:
preset: jolly
Synthwave
深色
yaml
theme:
preset: synthwave
没有符合此筛选条件的主题。
覆盖部分颜色
从预设开始,只替换你在意的颜色。chart 是线条、柱状和图标的强调色,grid 是空格子和四个日历等级。background: transparent 去掉卡片背景。
yaml
theme:
preset: tokyo-night
background: transparent
colors:
text: "#c0caf5"
chart:
accent: "#ff9e64"
accent2: "#bb9af7"
grid:
levels: ["#1f2335", "#3d59a1", "#7aa2f7", "#c0caf5"]
渐变背景
线性渐变
theme.background 也接受渐变:以度为单位的角度后跟 2 到 8 种颜色,用逗号分隔。颜色在卡片上均匀分布,需要单一背景色的地方使用第一种颜色。
yaml
theme:
preset: github-dark
background: "30,#e96443,#904e95"
自定义主题
完整的 YAML 配色
无需预设:定义背景、日历等级和四种图表颜色。text 可选,默认是与 mode 相配的深灰或浅灰。
yaml
theme:
custom:
name: rainbow
mode: dark
background: "#111827"
text: "#f9fafb"
grid:
empty: "#1f2937"
levels: ["#ef4444", "#f59e0b", "#22c55e", "#38bdf8"]
chart:
accent: "#a78bfa"
accent2: "#f472b6"
accent3: "#38bdf8"
muted: "#94a3b8"