Repository navigation
残りの 7 テーマを upstream の下の段で作る - #591
Merged
Merged
Conversation
v4.4 で「正」だった側を先に並べる。派生の側は色を機械的に決めているので、正の側より典型度が低い。 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011xMtgprNrDKwTew3mZLwLa
色は v4.4 の bg・本文・accent をそのまま引き継ぎ、カラムの外側は bg を一段暗くした色にした。 upstream もライト・ダークとも外側を一段暗くしている。 ライト側のリンクは Lc 54 しかなく、シンデレラで「コントラストが足りない」とされたのと同じ状態なので、Lc 60 まで暗くした。 三次テキストは upstream の 70% 透過だと Lc 60 を僅かに割るので、届く最小の濃さで不透明にした。 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011xMtgprNrDKwTew3mZLwLa
ダーク側の背景は中間の明るさで、upstream の半透明の二次テキストは Lc 58・49 まで落ちる。 シンデレラと同じく不透明にし、選択中の項目も 8% では背景と見分けにくいので 30% にした。 v4.4 はボタンの文字を背景色にしていたが、明るい accent の上では Lc 39 しかなく、ライト側の本文色に替えた。 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011xMtgprNrDKwTew3mZLwLa
ライト側のリンクは Lc 42 しかなかったので Lc 60 まで暗くした。 ダーク側はどちらも派生のガクマスのダークと、同じ明度の暗い茶色で見分けがつかなかった。 正の側どうしの色相差(約 20°)を広げて、こちらは黄緑寄りにした。 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011xMtgprNrDKwTew3mZLwLa
765pro-allstars と同じく、ダーク側の背景が中間の明るさなので、二次テキストを不透明にし、選択中の項目を 30% にした。 ボタンの文字も背景色では Lc 45 しかなく、ライト側の本文色に替えた。 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011xMtgprNrDKwTew3mZLwLa
v4.4 の色のままで本文・二次テキスト・リンクとも Lc 60 を超えるので、上の段の上書きは無い。 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011xMtgprNrDKwTew3mZLwLa
ライト側は背景の明度が L 0.80 と低めで、upstream の半透明の二次テキストは Lc 59・53 になる。 二次と三次を同じ不透明色にしたのは、v4.4 でも二次テキストを本文と同じ色にしていて、区別より読めることを優先していたため。 リンクは Lc 43 しかなかったので Lc 61 まで暗くした。 ダーク側はミリオンのダークと見分けられるよう、赤寄りにした。 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011xMtgprNrDKwTew3mZLwLa
ライト側は v4.4 の淡い青灰色のままだと、シャイニーカラーズのライトと並べて見分けがつかなかった。 派生の側なので、テーマ色の silver に合わせてほぼ無彩色にした。 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011xMtgprNrDKwTew3mZLwLa
全テーマが下の段で作られるようになり、tokens の利用箇所が無くなった。 二次・三次テキストを上書きする基準は、7 テーマで実際に使った「Lc 60 を割るとき」に書き直した。 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011xMtgprNrDKwTew3mZLwLa
#590 はリンクの基準を決める前に手で調整していて、Lc 58 だった。 他の 7 テーマは Lc 60 を割るリンクを明るくしているので、シンデレラだけ例外にしない。 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011xMtgprNrDKwTew3mZLwLa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
#590 でシンデレラに適用した作り方(upstream の下の段
--base-color-*だけを決める)を、残りの 7 テーマにも適用する。全テーマが移ったので、旧 mixin の
theme.tokensは消した。写し方の規則
v4.4 の配色から、次の規則で下の段を決めた。
各テーマの「正」の側(v4.4 までの見た目)を変えないことを優先し、変えたのはコントラストが足りない所と、他のテーマと見分けがつかない所だけ。
bg/fg/bg-accentbg-desktopbgを OKLCH で暗くした色(ダークは L −0.07、ライトは −0.04)fg-accentfg-on-accentfg-secondary/fg-tertiaryhighlight-strength規則から外れて色を変えたもの
#2b1d00→#282200)#311800→#361101)#e3e8f4→#d5d8db)idolmaster、millionlive、shinycolors のダークは、ボタン文字の Lc が 56〜59 で 60 にわずかに届かない。
ボタンの文字は太字で、どの候補色に替えてもこれ以上は上がらないので、そのままにした。
スクリーンショット
左がライト、右がダーク。上から idolmaster / 765pro-allstars / millionlive / sidem / shinycolors / gakumas / va-liv。
テスト
spec/imastodon/system/color_theme_spec.rbに、7 テーマ × ライト・ダークで「カラムの外側とボタンがテーマの色相になる」を足した。旧 mixin のままだとカラムの外側に upstream 既定の indigo が出るので、どのテーマでも RED になることを確かめてから移している。
残り
color-theme skill の手順と、e2e の
themes.spec.tsのスナップショットは、coding-agent-workspace 側の別 PR で直す。🤖 Generated with Claude Code
https://claude.ai/code/session_011xMtgprNrDKwTew3mZLwLa