跳到主要內容

GitLab Light

GitLab Light 是一套淺色終端機配色,背景色 #fafaff,文字色 #303030,對比度 12.7:1

取得設定檔
背景色
#fafaff
前景色
#303030
文字對比度
12.68:1AAA
強調色對比度
5.78:1最低 4.88
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 Light 的設定檔

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

GitLab Light

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

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

palette = 0=#303030
palette = 1=#a31700
palette = 2=#0a7f3d
palette = 3=#af551d
palette = 4=#006cd8
palette = 5=#583cac
palette = 6=#00798a
palette = 7=#303030
palette = 8=#303030
palette = 9=#a31700
palette = 10=#0a7f3d
palette = 11=#af551d
palette = 12=#006cd8
palette = 13=#583cac
palette = 14=#00798a
palette = 15=#303030
background = #fafaff
foreground = #303030
cursor-color = #303030
cursor-text = #303030
selection-background = #ad95e9
selection-foreground = #fafaff

GitLab Light 色票

色票各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#fafaffrgb(250 250 255)hsl(240 100% 99%)oklch(98.7% 0.007 286.3)—
前景色foreground#303030rgb(48 48 48)hsl(0 0% 19%)oklch(30.9% 0.000 0)12.68 AAA
游標cursor#303030rgb(48 48 48)hsl(0 0% 19%)oklch(30.9% 0.000 0)12.68 AAA
游標文字cursorText#303030rgb(48 48 48)hsl(0 0% 19%)oklch(30.9% 0.000 0)12.68 AAA
選取範圍selection#ad95e9rgb(173 149 233)hsl(257 66% 75%)oklch(72.3% 0.122 296.4)2.45 低於 AA
選取文字selectionText#fafaffrgb(250 250 255)hsl(240 100% 99%)oklch(98.7% 0.007 286.3)1.00 低於 AA
黑color0#303030rgb(48 48 48)hsl(0 0% 19%)oklch(30.9% 0.000 0)12.68 AAA
紅color1#a31700rgb(163 23 0)hsl(8 100% 32%)oklch(45.9% 0.176 31.6)7.53 AAA
綠color2#0a7f3drgb(10 127 61)hsl(146 85% 27%)oklch(52.3% 0.138 150.9)4.90 AA
黃color3#af551drgb(175 85 29)hsl(23 72% 40%)oklch(55.2% 0.135 48.1)4.88 AA
藍color4#006cd8rgb(0 108 216)hsl(210 100% 42%)oklch(54.4% 0.185 255.9)4.88 AA
洋紅color5#583cacrgb(88 60 172)hsl(255 48% 45%)oklch(45.3% 0.170 289.3)7.60 AAA
青color6#00798argb(0 121 138)hsl(187 100% 27%)oklch(52.9% 0.092 211.7)4.92 AA
白color7#303030rgb(48 48 48)hsl(0 0% 19%)oklch(30.9% 0.000 0)12.68 AAA
亮黑color8#303030rgb(48 48 48)hsl(0 0% 19%)oklch(30.9% 0.000 0)12.68 AAA
亮紅color9#a31700rgb(163 23 0)hsl(8 100% 32%)oklch(45.9% 0.176 31.6)7.53 AAA
亮綠color10#0a7f3drgb(10 127 61)hsl(146 85% 27%)oklch(52.3% 0.138 150.9)4.90 AA
亮黃color11#af551drgb(175 85 29)hsl(23 72% 40%)oklch(55.2% 0.135 48.1)4.88 AA
亮藍color12#006cd8rgb(0 108 216)hsl(210 100% 42%)oklch(54.4% 0.185 255.9)4.88 AA
亮洋紅color13#583cacrgb(88 60 172)hsl(255 48% 45%)oklch(45.3% 0.170 289.3)7.60 AAA
亮青color14#00798argb(0 121 138)hsl(187 100% 27%)oklch(52.9% 0.092 211.7)4.92 AA
亮白color15#303030rgb(48 48 48)hsl(0 0% 19%)oklch(30.9% 0.000 0)12.68 AAA

關於 GitLab Light

GitLab Light 採用中性色調的淺色背景(#fafaff),預設前景色為 #303030。內文的 WCAG 對比度為 12.68:1(AAA),12 種 ANSI 彩色槽位平均對比度 5.78:1,最低 4.88:1。

色票整體色彩彩度適中,其中紅色為 #a31700、綠色為 #0a7f3d、藍色為 #006cd8、洋紅為 #583cac。

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

與 GitLab Light 相似的配色

資料來源:iTerm2 Color Schemes (MIT)