-
Notifications
You must be signed in to change notification settings - Fork 994
Open
Labels
Description
Proposal: Improve Theming and Attribution
Reason
The A2UI Protocol v0.9 mandates sub-agent attribution (agentDisplayName, iconUrl) and highlights branding via primaryColor. Current React implementations use hardcoded or haphazard styling, failing to meet these identity requirements.
Design
- Theme Context: Create a React
ThemeContextin thereact_prototypepackage. - Surface Wrapper:
A2uiSurfaceshould wrap the rendered tree in aThemeContext.Providerusing the theme data fromSurfaceModel. - Attribution Component: Add an optional header component to
A2uiSurfacethat displays the agent's icon and name if provided in the theme. - CSS Variables: The theme provider should inject CSS custom properties (e.g.,
--a2ui-primary-color) into the surface's root DOM element, allowing widgets to use semantic colors.
Key Files
renderers/react_prototype/src/A2uiSurface.tsxrenderers/react_prototype/src/adapter.tsx
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo