跳到主要內容

Codeschool

Codeschool 是一套深色終端機配色(柔和、冷色),背景色 #232c31,文字色 #9ea7a6,對比度 5.8:1

取得設定檔
背景色
#232c31
前景色
#9ea7a6
文字對比度
5.78:1AA
強調色對比度
2.69:1最低 1.77
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
❯

Codeschool 的設定檔

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

Codeschool

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

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

palette = 0=#232c31
palette = 1=#2a5491
palette = 2=#237986
palette = 3=#a03b1e
palette = 4=#484d79
palette = 5=#c59820
palette = 6=#b02f30
palette = 7=#9ea7a6
palette = 8=#3f4944
palette = 9=#2a5491
palette = 10=#237986
palette = 11=#a03b1e
palette = 12=#484d79
palette = 13=#c59820
palette = 14=#b02f30
palette = 15=#b5d8f6
background = #232c31
foreground = #9ea7a6
cursor-color = #9ea7a6
cursor-text = #232c31
selection-background = #3f484c
selection-foreground = #9ea7a6

Codeschool 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#232c31rgb(35 44 49)hsl(201 17% 16%)oklch(28.7% 0.016 232.4)—
前景色foreground#9ea7a6rgb(158 167 166)hsl(173 5% 64%)oklch(72.1% 0.010 189.0)5.78 AA
光標cursor#9ea7a6rgb(158 167 166)hsl(173 5% 64%)oklch(72.1% 0.010 189.0)5.78 AA
光標文字cursorText#232c31rgb(35 44 49)hsl(201 17% 16%)oklch(28.7% 0.016 232.4)1.00 低於 AA
選取範圍selection#3f484crgb(63 72 76)hsl(198 9% 27%)oklch(39.5% 0.014 226.3)1.52 低於 AA
選取文字selectionText#9ea7a6rgb(158 167 166)hsl(173 5% 64%)oklch(72.1% 0.010 189.0)5.78 AA
黑color0#232c31rgb(35 44 49)hsl(201 17% 16%)oklch(28.7% 0.016 232.4)1.00 低於 AA
紅color1#2a5491rgb(42 84 145)hsl(216 55% 37%)oklch(44.8% 0.111 257.9)1.88 低於 AA
綠color2#237986rgb(35 121 134)hsl(188 59% 33%)oklch(53.2% 0.081 209.7)2.81 低於 AA
黃color3#a03b1ergb(160 59 30)hsl(13 68% 37%)oklch(49.0% 0.141 36.4)2.13 低於 AA
藍color4#484d79rgb(72 77 121)hsl(234 25% 38%)oklch(43.6% 0.073 278.0)1.77 低於 AA
洋紅color5#c59820rgb(197 152 32)hsl(44 72% 45%)oklch(70.3% 0.136 85.8)5.34 AA
青color6#b02f30rgb(176 47 48)hsl(360 58% 44%)oklch(50.6% 0.166 25.0)2.23 低於 AA
白color7#9ea7a6rgb(158 167 166)hsl(173 5% 64%)oklch(72.1% 0.010 189.0)5.78 AA
亮黑color8#3f4944rgb(63 73 68)hsl(150 7% 27%)oklch(39.5% 0.015 164.1)1.52 低於 AA
亮紅color9#2a5491rgb(42 84 145)hsl(216 55% 37%)oklch(44.8% 0.111 257.9)1.88 低於 AA
亮綠color10#237986rgb(35 121 134)hsl(188 59% 33%)oklch(53.2% 0.081 209.7)2.81 低於 AA
亮黃color11#a03b1ergb(160 59 30)hsl(13 68% 37%)oklch(49.0% 0.141 36.4)2.13 低於 AA
亮藍color12#484d79rgb(72 77 121)hsl(234 25% 38%)oklch(43.6% 0.073 278.0)1.77 低於 AA
亮洋紅color13#c59820rgb(197 152 32)hsl(44 72% 45%)oklch(70.3% 0.136 85.8)5.34 AA
亮青color14#b02f30rgb(176 47 48)hsl(360 58% 44%)oklch(50.6% 0.166 25.0)2.23 低於 AA
亮白color15#b5d8f6rgb(181 216 246)hsl(208 78% 84%)oklch(86.7% 0.056 244.4)9.56 AAA

關於 Codeschool

Codeschool 採用冷色調的深色背景(#232c31),預設前景色為 #9ea7a6。正文的 WCAG 對比度為 5.78:1(AA),12 種 ANSI 彩色槽位平均對比度 2.69:1,最低 1.77:1。

色板整體色彩飽和度適中,其中紅色為 #2a5491、綠色為 #237986、藍色為 #484d79、洋紅為 #c59820。

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

與 Codeschool 相似的配色

資料來源:Gogh (MIT OR Apache-2.0)