Index of every page on this site: llms.txt
All skills
david-evans03 avatar

/expo-light-dark-mode

@6465931
Run it yourself

Prevents light/dark appearance mismatches in Expo apps, especially iOS liquid glass headers, status bars, and safe-area backgrounds.

  • 1 file
  • 2.5 KB
  • Updated 9 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/david-evans03/skills/expo-light-dark-mode

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈39 tokens for metadata: the name and description. ≈591 when used: this file.

Description uses 1.9% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈155 characters, or 1.9%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

expo-light-dark-mode

Use this skill to keep app theme behavior consistent across Expo Router, status bar, headers, and iOS liquid glass materials.

When to use

Use this skill when:

  • the app supports light/dark mode,
  • headers use native-stack glass/translucent styles,
  • users report a brief wrong color flash in top bars,
  • status bar and header contrast look inconsistent during transitions,
  • userInterfaceStyle is set to "automatic" and the app looks different from expected design intent.

Instructions

  1. Identify the appearance source of truth

    • Check app.json expo.userInterfaceStyle.
    • "automatic" means the app follows device preference.
    • If device is dark but screen design is light, iOS liquid glass can initially tint from dark system appearance and then look wrong during transitions.
  2. Understand the liquid glass mismatch pitfall

    • Native glass/translucent header areas are influenced by system appearance and what is behind the header.
    • If your app forces light-looking screens while system preference is dark (or vice versa), the glass region can show an incorrect tint first, then settle, creating a visible "weird" flash.
    • Treat this as a major UX consistency error, not a minor visual detail.
  3. Apply a consistent strategy across the whole app

    • Keep status bar, navigator header options, and screen backgrounds aligned with the same theme decision.
    • Avoid mixing transparent headers with undefined top backgrounds.
    • Ensure safe-area top region has an intentional background.
  4. If the product should always look bright

    • Set expo.userInterfaceStyle to "light" in app.json.
    • Keep header/status bar settings consistent with light mode.
    • Do not rely on "automatic" if you do not actually want device-driven dark behavior.
  5. If the product supports both light and dark

    • Keep "automatic", but ensure every route has explicit top background and matching header/status bar contrast.
    • Verify transitions on iOS with both device appearances enabled.

Quick checks before merge

  • app.json appearance setting matches product intent.
  • No screen has theme-opposite header/status bar values.
  • Transparent/glass header flows have explicit safe-area top backgrounds.
  • iOS light and dark transitions do not flash incorrect tint at the top bar.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 6465931. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 9 months ago

README badge

README badge for david-evans03/skills/expo-light-dark-mode