跳到正文

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/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)