Skip to content

LazyCats-dev/ao3-podfic-posting-helper / .agent/skills/light-dark-mode

light-dark-mode

Verified

Load this skill whenever the project supports light/dark mode, colour theme switching, high-contrast mode, or responds to prefers-color-scheme. Under no circumstances hard-code colours that break in alternative themes. Absolutely always test colour contrast in both light and dark themes, and respect user OS-level colour preferences via CSS media queries.

FileKindSize
SKILL.mdskill md24.9 KB
SYNC.mdmarkdown1.4 KB
# Sync Metadata

```yaml
canonical_source: examples/LIGHT_DARK_MODE_ACCESSIBILITY_BEST_PRACTICES.md
last_synced_commit: "1374d8f"
last_synced_date: "2026-07-15"
skill_maintainer: ""
notes: >
  Canonical example file exists in mgifford/ACCESSIBILITY.md.
  DIVERGENCE: Canonical source uses two-option binary toggle with radiogroup.
  This skill uses three-option (System/Light/Dark) with native buttons and
  aria-pressed. The enhanced pattern was adopted to better support user
  personalization (WCAG 1.3.11) and to avoid radiogroup anti-patterns in
  this context. When re-syncing with canonical source, preserve the
  three-option pattern as the authoritative approach.

  2026-07-22: added a reference to examples/MODERN_CSS_THEME_ARCHITECTURE.md,
  a canonical file with no other skill link anywhere in this repo. It covers
  semantic design tokens and theme architecture that complements this
  skill's content; not folded into the skill body itself, just linked.
```

## How to Update This Skill

When the canonical source changes and CI flags drift:

1. Open both files side-by-side
2. Review the diff linked in the GitHub issue/PR comment
3. Update `SKILL.md` to reflect new requirements, changed patterns, or removed guidance
4. Set `last_synced_commit` to the current commit SHA of `mgifford/ACCESSIBILITY.md`
5. Rebuild: `cd skills && zip -r light-dark-mode.skill light-dark-mode/`
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall