跳到主要內容

Nanosecond

Nanosecond 是一套深色終端機配色(鮮艷、冷色),背景色 #112233,文字色 #fafafa,對比度 15.5:1

取得設定檔
背景色
#112233
前景色
#fafafa
文字對比度
15.47:1AAA
強調色對比度
8.41:1最低 4.04
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
❯

Nanosecond 的設定檔

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

Nanosecond

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

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

palette = 0=#000000
palette = 1=#ff0000
palette = 2=#00aa00
palette = 3=#ffaa00
palette = 4=#00aaff
palette = 5=#ff00ff
palette = 6=#00aaaa
palette = 7=#aaaaaa
palette = 8=#555555
palette = 9=#ff5555
palette = 10=#80ff80
palette = 11=#ffff80
palette = 12=#aaccff
palette = 13=#ffaaff
palette = 14=#80ffff
palette = 15=#ffffff
background = #112233
foreground = #fafafa
cursor-color = #fafafa
cursor-text = #112233
selection-background = #445260
selection-foreground = #fafafa

Nanosecond 色板

色板各槽位的色值及其相對背景的 WCAG 對比度
顏色槽位HEXRGBHSLOKLCH對比度
背景色background#112233rgb(17 34 51)hsl(210 50% 13%)oklch(24.6% 0.040 249.7)—
前景色foreground#fafafargb(250 250 250)hsl(0 0% 98%)oklch(98.5% 0.000 0)15.47 AAA
光標cursor#fafafargb(250 250 250)hsl(0 0% 98%)oklch(98.5% 0.000 0)15.47 AAA
光標文字cursorText#112233rgb(17 34 51)hsl(210 50% 13%)oklch(24.6% 0.040 249.7)1.00 低於 AA
選取範圍selection#445260rgb(68 82 96)hsl(210 17% 32%)oklch(43.2% 0.029 248.5)2.02 低於 AA
選取文字selectionText#fafafargb(250 250 250)hsl(0 0% 98%)oklch(98.5% 0.000 0)15.47 AAA
黑color0#000000rgb(0 0 0)hsl(0 0% 0%)oklch(0.0% 0.000 0)1.30 低於 AA
紅color1#ff0000rgb(255 0 0)hsl(0 100% 50%)oklch(62.8% 0.258 29.2)4.04 AA 大字體
綠color2#00aa00rgb(0 170 0)hsl(120 100% 33%)oklch(63.9% 0.218 142.5)5.19 AA
黃color3#ffaa00rgb(255 170 0)hsl(40 100% 50%)oklch(80.2% 0.171 73.3)8.46 AAA
藍color4#00aaffrgb(0 170 255)hsl(200 100% 50%)oklch(70.7% 0.168 242.0)6.30 AA
洋紅color5#ff00ffrgb(255 0 255)hsl(300 100% 50%)oklch(70.2% 0.322 328.4)5.15 AA
青color6#00aaaargb(0 170 170)hsl(180 100% 33%)oklch(66.8% 0.114 194.8)5.64 AA
白color7#aaaaaargb(170 170 170)hsl(0 0% 67%)oklch(73.8% 0.000 0)6.95 AA
亮黑color8#555555rgb(85 85 85)hsl(0 0% 33%)oklch(45.0% 0.000 0)2.17 低於 AA
亮紅color9#ff5555rgb(255 85 85)hsl(0 100% 67%)oklch(68.2% 0.206 24.4)5.14 AA
亮綠color10#80ff80rgb(128 255 128)hsl(120 100% 75%)oklch(89.9% 0.202 143.7)12.71 AAA
亮黃color11#ffff80rgb(255 255 128)hsl(60 100% 75%)oklch(97.5% 0.149 108.9)15.28 AAA
亮藍color12#aaccffrgb(170 204 255)hsl(216 100% 83%)oklch(83.8% 0.081 258.3)9.84 AAA
亮洋紅color13#ffaaffrgb(255 170 255)hsl(300 100% 83%)oklch(84.8% 0.146 326.8)9.57 AAA
亮青color14#80ffffrgb(128 255 255)hsl(180 100% 75%)oklch(92.8% 0.113 195.4)13.58 AAA
亮白color15#ffffffrgb(255 255 255)hsl(0 0% 100%)oklch(100.0% 0.000 0)16.15 AAA

關於 Nanosecond

Nanosecond 採用冷色調的深色背景(#112233),預設前景色為 #fafafa。正文的 WCAG 對比度為 15.47:1(AAA),12 種 ANSI 彩色槽位平均對比度 8.41:1,最低 4.04:1。

色板整體色彩飽和度較高,其中紅色為 #ff0000、綠色為 #00aa00、藍色為 #00aaff、洋紅為 #ff00ff。

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

與 Nanosecond 相似的配色

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