跳到主要內容

GitLab Dark

GitLab Dark 是一套深色終端機配色,背景色 #28262b,文字色 #ffffff,對比度 15.0:1

取得設定檔
背景色
#28262b
前景色
#ffffff
文字對比度
14.97:1AAA
強調色對比度
7.22:1最低 4.29
zsh — ls & git status
zsh — ls & git status
zsh — ls & git status
zsh — ls & git status
zsh — ls & git status — Konsole
~/dev/tintdex on main [!?] via ⬢ v1.4.3
❯ ls -la
drwxr-xr-x 12 ada staff 384 Oct 30 09:12 .
drwxr-xr-x 8 ada staff 256 Oct 29 18:40 ..
-rw-r--r-- 1 ada staff 1.2K Oct 30 09:10 .gitignore
drwxr-xr-x 5 ada staff 160 Oct 30 09:12 src
drwxr-xr-x 3 ada staff 96 Oct 28 11:02 public
-rwxr-xr-x 1 ada staff 2.4K Oct 30 08:57 build.sh
-rw-r--r-- 1 ada staff 4.1K Oct 30 09:01 package.json
lrwxr-xr-x 1 ada staff 18 Oct 27 14:33 node_modules -> ../cache/modules
-rw-r--r-- 1 ada staff 48K Oct 26 10:15 logo.png
-rw-r--r-- 1 ada staff 9.8M Oct 25 21:47 backup.tar.gz
~/dev/tintdex on main [!?] via ⬢ v1.4.3
❯ git status
On branch main
Your branch is ahead of 'origin/main' by 2 commits.
Changes to be committed:
new file: src/theme.css
modified: README.md
Changes not staged for commit:
modified: src/app.tsx
deleted: legacy/colors.js
Untracked files:
notes.md
~/dev/tintdex on main [!?] via ⬢ v1.4.3
❯

GitLab Dark 的設定檔

16 種格式,都從同一份色板產生

GitLab Dark

存到 ~/.config/ghostty/themes/GitLab Dark,再在 config 或 config.ghostty 裏寫 theme = GitLab Dark

更多 Ghostty 配色
原始檔案
# Theme: GitLab Dark (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/zh-hk/schemes/gitlab-dark?format=ghostty

palette = 0=#000000
palette = 1=#f57f6c
palette = 2=#52b87a
palette = 3=#d99530
palette = 4=#7fb6ed
palette = 5=#f88aaf
palette = 6=#32c5d2
palette = 7=#ffffff
palette = 8=#666666
palette = 9=#fcb5aa
palette = 10=#91d4a8
palette = 11=#e9be74
palette = 12=#498dd1
palette = 13=#fcacc5
palette = 14=#5edee3
palette = 15=#ffffff
background = #28262b
foreground = #ffffff
cursor-color = #ffffff
cursor-text = #ffffff
selection-background = #ad95e9
selection-foreground = #28262b

GitLab Dark 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#28262brgb(40 38 43)hsl(264 6% 16%)oklch(27.3% 0.010 303.8)—
前景色foreground#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.97 AAA
光標cursor#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.97 AAA
光標文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.97 AAA
選取範圍selection#ad95e9rgb(173 149 233)hsl(257 66% 75%)oklch(72.3% 0.122 296.4)5.88 AA
選取文字selectionText#28262brgb(40 38 43)hsl(264 6% 16%)oklch(27.3% 0.010 303.8)1.00 低於 AA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.40 低於 AA
紅color1#f57f6crgb(245 127 108)hsl(8 87% 69%)oklch(72.6% 0.148 30.5)5.80 AA
綠color2#52b87argb(82 184 122)hsl(144 42% 52%)oklch(70.6% 0.132 154.3)6.06 AA
黃color3#d99530rgb(217 149 48)hsl(36 69% 52%)oklch(72.1% 0.137 72.2)5.91 AA
藍color4#7fb6edrgb(127 182 237)hsl(210 75% 71%)oklch(75.9% 0.098 249.2)7.00 AAA
洋紅color5#f88aafrgb(248 138 175)hsl(340 89% 76%)oklch(76.2% 0.139 359.4)6.59 AA
青color6#32c5d2rgb(50 197 210)hsl(185 64% 51%)oklch(75.5% 0.119 204.0)7.17 AAA
白color7#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.97 AAA
亮黑color8#666666rgb(102 102 102)hsl(0 0% 40%)oklch(51.0% 0.000 0)2.61 低於 AA
亮紅color9#fcb5aargb(252 181 170)hsl(8 93% 83%)oklch(83.7% 0.085 28.9)8.79 AAA
亮綠color10#91d4a8rgb(145 212 168)hsl(141 44% 70%)oklch(81.3% 0.092 155.0)8.69 AAA
亮黃color11#e9be74rgb(233 190 116)hsl(38 73% 68%)oklch(82.4% 0.105 80.1)8.62 AAA
亮藍color12#498dd1rgb(73 141 209)hsl(210 60% 55%)oklch(63.0% 0.124 250.4)4.29 AA 大字體
亮洋紅color13#fcacc5rgb(252 172 197)hsl(341 93% 83%)oklch(82.8% 0.098 359.1)8.45 AAA
亮青color14#5edee3rgb(94 222 227)hsl(182 70% 63%)oklch(83.2% 0.112 198.8)9.29 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)14.97 AAA

關於 GitLab Dark

GitLab Dark 採用中性色調的深色背景(#28262b),預設前景色為 #ffffff。正文的 WCAG 對比度為 14.97:1(AAA),12 種 ANSI 彩色槽位平均對比度 7.22:1,最低 4.29:1。

色板整體色彩飽和度適中,其中紅色為 #f57f6c、綠色為 #52b87a、藍色為 #7fb6ed、洋紅為 #f88aaf。

支援一鍵匯出 Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 終端機設定檔,同時提供 VS Code 與 Zed 整合終端機、CSS 變數、Tailwind CSS 及 JSON 色板格式。

與 GitLab Dark 相似的配色

資料來源:iTerm2 Color Schemes (MIT)