dark-mode-legibility

dark-mode-legibility is a skill for Claude Code, Codex from troyjthomas/ios-agent-skills. It costs 84 tokens per session (1,776 once invoked), scanned A, original, MIT.

A testing checklist for checking that every iOS screen remains readable in both light and dark appearance modes. Dark mode is a darker color scheme used by the operating system.

In plain words
What is it for?
Use it during each color or button change and during final polish to inspect screens in both appearances.
Why use it?
It helps find contrast and visibility problems that may appear only in one mode, especially on tinted glass-style controls.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md.

Good fit Use it during each color or button change and during final polish to inspect screens in both appearances.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/troyjthomas/ios-agent-skills/dark-mode-legibility
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add troyjthomas/ios-agent-skills --skill dark-mode-legibility
Clone the repo
git clone --depth 1 https://github.com/troyjthomas/ios-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dark-mode-legibility

README.md
[![agentmods](https://agentmods.dev/badge/skills/troyjthomas/ios-agent-skills/dark-mode-legibility/github.svg)](https://agentmods.dev/skills/troyjthomas/ios-agent-skills/dark-mode-legibility)
Your own site
<a href="https://agentmods.dev/skills/troyjthomas/ios-agent-skills/dark-mode-legibility"><img src="https://agentmods.dev/badge/skills/troyjthomas/ios-agent-skills/dark-mode-legibility/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dark-mode-legibility

Your own site · 80×15
<a href="https://agentmods.dev/skills/troyjthomas/ios-agent-skills/dark-mode-legibility"><img src="https://agentmods.dev/badge/skills/troyjthomas/ios-agent-skills/dark-mode-legibility.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,776 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.01776
Opus 5 $0.00042 $0.00888
Sonnet 5 $0.00017 $0.00355
Haiku 4.5 $0.00008 $0.00178

Measured 11d ago against content hash 643a4ff9dd38, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

dark-mode-legibility scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dark-mode-legibility/SKILL.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Dark Mode Legibility

Dark mode isn't a polish-pass nice-to-have — it's a correctness concern. The most common dark-mode bugs:

  • Are invisible in light mode (you'll never spot them eyeballing the simulator with default appearance)
  • Only show on specific tint colors (often pale pastels, especially cream / yellow / pale orange)
  • Slip through code review because the code looks identical to the light-mode case that works

This skill is a checklist for catching them.

When to Use

  • Every iteration that touches colors, tints, glass surfaces, or button styles
  • Once during the polish phase as a deliberate full-app pass
  • After any user reports "this looks wrong" — first question: was it light or dark mode?

The First Rule

Test every screen in BOTH modes every iteration. Toggle dark mode in the simulator (Shift + Cmd + A) before claiming any UI fix is done.

If your verification loop only checks one mode, half your screens are unverified.

The Vibrancy-on-Pale-Tint Pitfall

This one is responsible for more "the Continue button is unreadable in dark mode" bugs than any other cause.

The failure mode:

  1. You apply .glassProminent button style with .tint(SomePaleColor) — e.g. cream, pale yellow, pale orange
  2. In light mode, the system's vibrancy treatment picks a darker contrast color for the label — looks great
  3. In dark mode, the system's vibrancy picks a tinted-white — which against a cream / yellow / pale-orange pill is illegible

The fix is NOT to force .foregroundStyle(.white) everywhere — that kills vibrancy and produces flat painted-on glyphs (see the polish-and-refinement skill's glass-button rules). The fix is to override the foreground in dark mode only:

Group {
    if systemColorScheme == .dark {
        Text("Continue")
            .foregroundStyle(Color.black)
    } else {
        Text("Continue")
        // light mode: no override, system vibrancy handles it
    }
}
.font(.headline)
.frame(maxWidth: .infinity)

Read the full file on GitHub · 138 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 138 lines · 84 tokens per session scan A 643a4ff9dd38

Subscribe to this mod's changes

dark-mode-legibility is a skill published in the GitHub repository troyjthomas/ios-agent-skills (2 stars, last pushed 3mo ago), licensed MIT. It adds 84 tokens to every session and 1,776 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

iOS Testing

Unit testing, UI testing, TDD patterns, mocking, and test doubles for VIP+W architecture.

JordanCoin/ios-skills-collection · 24 tokens

swift-testing

Write and migrate tests using the Swift Testing framework with @Test, @Suite, #expect, #require, confirmation, parameterized tests, test tags, traits, withKnownIssue, XCTest UI testing, XCUITest, test plan, mocking, test doubles, testable architecture, snapshot testing, async test patterns, test organization, and…

JordanCoin/ios-skills-collection · 113 tokens

ios-simulator-skill

21 production-ready scripts for iOS app testing, building, and automation. Provides semantic UI navigation, build automation, accessibility testing, and simulator lifecycle management. Optimized for AI agents with minimal token output.

JordanCoin/ios-skills-collection · 47 tokens

ios-simulator

Manages iOS Simulator devices and app tests with xcrun simctl: lifecycle, install/launch, push and location simulation, privacy permissions, deep links, status-bar overrides, screenshots/video, log streaming, app containers, and targetEnvironment(simulator). Use when scripting Simulator workflows, debugging…

dpearson2699/swift-ios-skills · 88 tokens

xcodebuildmcp

Official skill for XcodeBuildMCP. Use when doing iOS/macOS/watchOS/tvOS/visionOS work (build, test, run, debug, log, UI automation).

JordanCoin/ios-skills-collection · 45 tokens

xcodebuildmcp-cli

Official skill for the XcodeBuildMCP CLI. Use when doing iOS/macOS/watchOS/tvOS/visionOS work (build, test, run, debug, log, UI automation).

JordanCoin/ios-skills-collection · 48 tokens