跳到主要內容

Flat

Flat 是一套深色終端機配色(冷色),背景色 #002240,文字色 #2cc55d,對比度 7.1:1

取得設定檔
背景色
#002240
前景色
#2cc55d
文字對比度
7.10:1AAA
強調色對比度
4.26:1最低 1.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
❯

Flat 的設定檔

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

Flat

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

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

palette = 0=#222d3f
palette = 1=#a82320
palette = 2=#32a548
palette = 3=#e58d11
palette = 4=#3167ac
palette = 5=#781aa0
palette = 6=#2c9370
palette = 7=#b0b6ba
palette = 8=#212c3c
palette = 9=#d4312e
palette = 10=#2d9440
palette = 11=#e5be0c
palette = 12=#3c7dd2
palette = 13=#8230a7
palette = 14=#35b387
palette = 15=#e7eced
background = #002240
foreground = #2cc55d
cursor-color = #e5be0c
cursor-text = #ffffff
selection-background = #792b9c
selection-foreground = #ffffff

Flat 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#002240rgb(0 34 64)hsl(208 100% 13%)oklch(24.7% 0.069 249.3)—
前景色foreground#2cc55drgb(44 197 93)hsl(139 63% 47%)oklch(72.4% 0.191 148.8)7.10 AAA
光標cursor#e5be0crgb(229 190 12)hsl(49 90% 47%)oklch(81.2% 0.165 93.8)8.98 AAA
光標文字cursorText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.12 AAA
選取範圍selection#792b9crgb(121 43 156)hsl(281 57% 39%)oklch(45.7% 0.180 313.1)2.03 低於 AA
選取文字selectionText#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.12 AAA
黑color0#222d3frgb(34 45 63)hsl(217 30% 19%)oklch(29.6% 0.036 260.1)1.16 低於 AA
紅color1#a82320rgb(168 35 32)hsl(1 68% 39%)oklch(47.9% 0.170 27.4)2.25 低於 AA
綠color2#32a548rgb(50 165 72)hsl(131 53% 42%)oklch(63.7% 0.167 146.5)5.07 AA
黃color3#e58d11rgb(229 141 17)hsl(35 86% 48%)oklch(71.9% 0.157 66.0)6.26 AA
藍color4#3167acrgb(49 103 172)hsl(214 56% 43%)oklch(51.2% 0.124 255.7)2.81 低於 AA
洋紅color5#781aa0rgb(120 26 160)hsl(282 72% 36%)oklch(44.4% 0.200 312.6)1.88 低於 AA
青color6#2c9370rgb(44 147 112)hsl(160 54% 37%)oklch(59.6% 0.108 166.1)4.23 AA 大字體
白color7#b0b6bargb(176 182 186)hsl(204 7% 71%)oklch(77.3% 0.009 236.6)7.86 AAA
亮黑color8#212c3crgb(33 44 60)hsl(216 29% 18%)oklch(29.0% 0.033 257.7)1.14 低於 AA
亮紅color9#d4312ergb(212 49 46)hsl(1 66% 51%)oklch(57.1% 0.200 27.1)3.28 AA 大字體
亮綠color10#2d9440rgb(45 148 64)hsl(131 53% 38%)oklch(58.9% 0.154 146.4)4.16 AA 大字體
亮黃color11#e5be0crgb(229 190 12)hsl(49 90% 47%)oklch(81.2% 0.165 93.8)8.98 AAA
亮藍color12#3c7dd2rgb(60 125 210)hsl(214 62% 53%)oklch(58.9% 0.146 256.2)3.88 AA 大字體
亮洋紅color13#8230a7rgb(130 48 167)hsl(281 55% 42%)oklch(48.2% 0.187 313.1)2.25 低於 AA
亮青color14#35b387rgb(53 179 135)hsl(159 54% 45%)oklch(68.7% 0.127 165.2)6.10 AA
亮白color15#e7ecedrgb(231 236 237)hsl(190 14% 92%)oklch(94.0% 0.006 211.0)13.52 AAA

關於 Flat

Flat 採用冷色調的深色背景(#002240),預設前景色為 #2cc55d。正文的 WCAG 對比度為 7.10:1(AAA),12 種 ANSI 彩色槽位平均對比度 4.26:1,最低 1.88:1。

色板整體色彩飽和度適中,其中紅色為 #a82320、綠色為 #32a548、藍色為 #3167ac、洋紅為 #781aa0。

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

與 Flat 相似的配色

資料來源:iTerm2 Color Schemes (MIT)