本文へスキップ

One Dark Two

One Dark Two はダーク系のターミナル配色(寒色)。背景色 #21252b、文字色 #e6e6e6、コントラスト比 12.3:1

設定を取得
背景色
#21252b
前景色
#e6e6e6
文字のコントラスト
12.33:1AAA
アクセントのコントラスト
7.60:1最小 5.31
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
❯

One Dark Two の設定ファイル

16 種類の形式を、ひとつのパレットから生成

One Dark Two

~/.config/ghostty/themes/One Dark Two に保存し、config または config.ghostty に theme = One Dark Two を書く

Ghostty の配色をもっと見る
元ファイル
# Theme: One Dark Two (Ghostty)
# Preview & customize online: https://tintdex.afengim.com/ja/schemes/one-dark-two?format=ghostty

palette = 0=#1d1f23
palette = 1=#e27881
palette = 2=#98c379
palette = 3=#eac786
palette = 4=#71b9f4
palette = 5=#c88bda
palette = 6=#62bac6
palette = 7=#c9ccd3
palette = 8=#4a505a
palette = 9=#e68991
palette = 10=#a8cc8e
palette = 11=#edcf97
palette = 12=#8dc7f6
palette = 13=#d3a2e2
palette = 14=#78c4ce
palette = 15=#e6e6e6
background = #21252b
foreground = #e6e6e6
cursor-color = #e6e6e6
cursor-text = #1d1f23
selection-background = #393e47
selection-foreground = #e6e6e6

One Dark Two のパレット

パレット各スロットの色値と背景に対する WCAG コントラスト比
カラースロットHEXRGBHSLOKLCHコントラスト
背景色background#21252brgb(33 37 43)hsl(216 13% 15%)oklch(26.3% 0.013 258.4)—
前景色foreground#e6e6e6rgb(230 230 230)hsl(0 0% 90%)oklch(92.5% 0.000 0)12.33 AAA
カーソルcursor#e6e6e6rgb(230 230 230)hsl(0 0% 90%)oklch(92.5% 0.000 0)12.33 AAA
カーソルの文字cursorText#1d1f23rgb(29 31 35)hsl(220 9% 13%)oklch(23.9% 0.008 264.4)1.07 AA 未満
選択範囲selection#393e47rgb(57 62 71)hsl(219 11% 25%)oklch(36.3% 0.017 262.3)1.43 AA 未満
選択範囲の文字selectionText#e6e6e6rgb(230 230 230)hsl(0 0% 90%)oklch(92.5% 0.000 0)12.33 AAA
黒color0#1d1f23rgb(29 31 35)hsl(220 9% 13%)oklch(23.9% 0.008 264.4)1.07 AA 未満
赤color1#e27881rgb(226 120 129)hsl(355 65% 68%)oklch(69.4% 0.131 15.7)5.31 AA
緑color2#98c379rgb(152 195 121)hsl(95 38% 62%)oklch(76.8% 0.110 133.0)7.64 AAA
黄color3#eac786rgb(234 199 134)hsl(39 70% 72%)oklch(84.5% 0.092 82.4)9.54 AAA
青color4#71b9f4rgb(113 185 244)hsl(207 86% 70%)oklch(76.2% 0.112 244.7)7.29 AAA
マゼンタcolor5#c88bdargb(200 139 218)hsl(286 52% 70%)oklch(72.5% 0.129 318.3)5.98 AA
シアンcolor6#62bac6rgb(98 186 198)hsl(187 47% 58%)oklch(73.9% 0.086 207.1)6.86 AA
白color7#c9ccd3rgb(201 204 211)hsl(222 10% 81%)oklch(84.5% 0.010 267.3)9.57 AAA
明るい黒color8#4a505argb(74 80 90)hsl(218 10% 32%)oklch(43.0% 0.018 260.7)1.90 AA 未満
明るい赤color9#e68991rgb(230 137 145)hsl(355 65% 72%)oklch(73.0% 0.114 14.7)6.12 AA
明るい緑color10#a8cc8ergb(168 204 142)hsl(95 38% 68%)oklch(80.3% 0.093 132.7)8.57 AAA
明るい黄color11#edcf97rgb(237 207 151)hsl(39 70% 76%)oklch(86.7% 0.080 82.7)10.24 AAA
明るい青color12#8dc7f6rgb(141 199 246)hsl(207 85% 76%)oklch(80.7% 0.090 243.6)8.53 AAA
明るいマゼンタcolor13#d3a2e2rgb(211 162 226)hsl(286 52% 76%)oklch(77.9% 0.103 318.1)7.36 AAA
明るいシアンcolor14#78c4cergb(120 196 206)hsl(187 47% 64%)oklch(77.5% 0.077 206.4)7.76 AAA
明るい白color15#e6e6e6rgb(230 230 230)hsl(0 0% 90%)oklch(92.5% 0.000 0)12.33 AAA

One Dark Two について

One Dark Two は寒色寄りのダーク背景(#21252b)を採用し、標準の前景色に #e6e6e6 を使ったターミナル配色です。本文の WCAG コントラスト比は 12.33:1(AAA)、12 色の ANSI カラーは平均 7.60:1、最小 5.31:1 です。

パレット全体は適度な彩度で、赤 #e27881、緑 #98c379、青 #71b9f4、マゼンタ #c88bda を基調としています。One Dark & One Light テーマファミリーに属する配色です。

Ghostty、iTerm2、Kitty、Alacritty、WezTerm、Windows Terminal、Warp、foot、Rio、XFCE4 Terminal、Xresources 向けの設定ファイルを書き出せるほか、VS Code・Zed の統合ターミナル、CSS 変数、Tailwind CSS、JSON 形式にも対応しています。

One Dark Two に似た配色

データ出典:iTerm2 Color Schemes (MIT)