import React from 'react' import ReactDOM from 'react-dom/client' import App from './App.jsx' import '@xenia/ui/styles.css' // shared tokens + component styles (.x-*), CS-16 import './index.css' import { applyTheme, getStoredTheme } from '@xenia/ui' // New code uses the tokens only, so every theme works; a per-screen choice comes with each app. applyTheme(getStoredTheme()) // The legacy build only (a TV's older browser): the compatibility layer. Modern browsers never load it. if (import.meta.env.LEGACY) import('./compat.js').then(m => m.startCompat()) ReactDOM.createRoot(document.getElementById('root')).render( )