You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the [UI Components Example](./examples/ui-components-example.html) for a complete demonstration.
220
+
163
221
### Adding Sounds
164
222
165
223
To add spatial audio:
@@ -205,6 +263,24 @@ import { integrateWebXR } from './webxr/hono-integration.js';
205
263
integrateWebXR(app);
206
264
```
207
265
266
+
### Theme Integration
267
+
268
+
The WebXR UI components use the main application's theme.css file to ensure a consistent look and feel. The UI components automatically adapt to theme changes, including dark mode support.
269
+
270
+
```css
271
+
/* WebXR UI components use the main application's theme variables */
272
+
@importurl('/public/css/theme.css');
273
+
274
+
.vr-panel {
275
+
background-color: var(--card-background);
276
+
color: var(--text-primary);
277
+
border: 2pxsolidvar(--primary-color);
278
+
/* ... */
279
+
}
280
+
```
281
+
282
+
This ensures that the WebXR experience looks and feels like a natural extension of the main application, with consistent colors, typography, and styling.
0 commit comments