ext-apps/docs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonathan Hefner 77306d1aaf Complete "Reacting to light/dark theme changes" pattern documentation
Reference existing JSDoc examples instead of maintaining a separate one in
`docs/patterns.ts`:
- Vanilla JS: `applyDocumentTheme_fromHostContext` from `styles.examples.ts`
- React: `useDocumentTheme_conditionalRender` for reactive theme reading

Expand `applyDocumentTheme_fromHostContext` example to show both the
`onhostcontextchanged` handler and initial theme application after `connect()`.

Note in the docs that `useHostStyles()` applies theme automatically, so React
apps don't need additional setup unless they want to read the theme reactively
for conditional rendering.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 13:31:11 -06:00
..
index.html Add API docs (#29) 2025-11-27 22:09:22 +00:00
migrate_from_openai_apps.md Add "Migrate from OpenAI App" skill to Claude Code plugin 2026-01-19 07:59:41 -06:00
patterns.md Complete "Reacting to light/dark theme changes" pattern documentation 2026-01-20 13:31:11 -06:00
patterns.ts Complete "Reacting to light/dark theme changes" pattern documentation 2026-01-20 13:31:11 -06:00
quickstart.md Update quickstart guide 2026-01-08 12:55:01 -06:00