<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
muratcakmak/shipwright/verify-dark-mode
──Details
PublishedOctober 23, 2026 at 08:39 PM
Content Hashsha256:7c27a0b78cbd20a9...
Git SHAb1ab83155278
──Files
Files (1 file, 4.1 KB)
SKILL.md4.1 KBactive
SKILL.md · 122 lines · 4.1 KB

version: "1.0.0" name: verify-dark-mode description: Verify light and dark mode rendering by switching iOS Simulator appearance and comparing screenshots. Checks text readability, background adaptation, image treatment, and color token correctness across both modes. allowed-tools: mcp__ios-simulator__get_booted_sim_id mcp__ios-simulator__open_simulator mcp__ios-simulator__launch_app mcp__ios-simulator__screenshot mcp__ios-simulator__ui_describe_all mcp__ios-simulator__ui_tap mcp__ios-simulator__ui_swipe Bash Read Glob Grep Agent argument-hint: [ScreenName]


Verify Dark Mode

Compare a screen in both light and dark mode using the iOS Simulator.

Target screen: $ARGUMENTS

MANDATORY PREPARATION

  1. Read Shipwright Context from CLAUDE.md
  2. Read the design tokens — check that light/dark color pairs are defined
  3. Read the screen source code — verify it uses the theme/color system (not hardcoded colors)

VERIFICATION PROTOCOL

Step 1: Capture Light Mode

  1. Set simulator to light mode:

``bash xcrun simctl ui booted appearance light ``

  1. Wait 1-2 seconds for the UI to update
  2. Navigate to the target screen
  3. Take a screenshot with mcp__ios-simulator__screenshot
  4. Capture accessibility tree with mcp__ios-simulator__ui_describe_all

Step 2: Capture Dark Mode

  1. Switch to dark mode:

``bash xcrun simctl ui booted appearance dark ``

  1. Wait 1-2 seconds for the UI to update
  2. Take a screenshot (same screen, same state)
  3. Capture accessibility tree

Step 3: Compare

Text Readability

  • Is all text visible in both modes?
  • Does text contrast meet WCAG AA? (4.5:1 for body, 3:1 for large)
  • Are secondary/placeholder texts still readable in dark mode?
  • Do text colors properly invert (dark→light text, light→dark text)?

Background Adaptation

  • Does the primary background change from light to dark?
  • Do cards/containers use elevated dark colors (not pure black)?
  • Are section backgrounds distinguishable from the primary background?
  • Do grouped/inset backgrounds differ from the main background?

Image & Icon Treatment

  • Do icons change tint color appropriately?
  • Do images with white backgrounds have proper treatment (rounded corners, borders)?
  • Are logos readable against the dark background?
  • Do decorative images work in both modes?

Color Token Verification

  • Do all semantic colors map correctly (e.g., systemBackground → white in light, near-black in dark)?
  • Are accent/brand colors adjusted for dark mode contrast?
  • Do separator colors adapt?
  • Are status colors (success green, error red, warning yellow) visible in both modes?

Element Consistency

  • Are all the same elements visible in both modes?
  • Do interactive states (pressed, disabled) work in both modes?
  • Are badges and indicators visible in both modes?
  • Do shadows adapt (shadows don't work well on dark backgrounds — use elevation instead)?

Step 4: Generate Report

## Dark Mode Verification Report: [Screen Name]
**Device:** [simulator device]
**Date:** [date]
### Text Readability: [PASS/FAIL]
| Element | Light Mode | Dark Mode | Status |
|---|---|---|---|
| Title text | [color] on [bg] | [color] on [bg] | PASS/FAIL |
| Body text | ... | ... | ... |
### Background Adaptation: [PASS/FAIL]
- Primary background: [PASS/FAIL]
- Card/container backgrounds: [PASS/FAIL]
- Section backgrounds: [PASS/FAIL]
### Image & Icon Treatment: [PASS/FAIL]
- [details]
### Color Token Usage: [PASS/FAIL]
- Hardcoded colors found: [count] — [list]
- Token colors working correctly: [count]
### Issues Found
1. [Severity] — [description + fix]
### Overall: [PASS/NEEDS WORK/FAIL]

Step 5: Reset Appearance

Restore the simulator to the user's preferred appearance:

bash
xcrun simctl ui booted appearance light

CHECKLIST

  • [ ] Light mode screenshot captured
  • [ ] Dark mode screenshot captured
  • [ ] Text readability verified in both modes
  • [ ] Background adaptation checked
  • [ ] Images and icons checked
  • [ ] Color tokens verified (no hardcoded colors)
  • [ ] Report generated
  • [ ] Simulator appearance restored
All versions