Skip to content

Conversation

@antonpk1
Copy link
Collaborator

@antonpk1 antonpk1 commented Dec 5, 2025

Summary

Remove 'system' from the theme type, leaving only 'light' | 'dark'.

Rationale

  1. Spec alignment: The spec already only defines "light" | "dark" (line 402 in apps.mdx)
  2. OpenAI Apps SDK compatibility: Their theme API only supports 'light' | 'dark'
  3. Host responsibility: The host should resolve system preference to an actual theme value before sending to the app

Changes

  • src/types.ts: theme?: "light" | "dark" | "system"theme?: "light" | "dark"

🤖 Generated with Claude Code

Remove 'system' option from theme, leaving only 'light' | 'dark'.

This aligns the SDK with:
- The spec (which already only has light/dark)
- OpenAI Apps SDK compatibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants