A standard Vite + Vue 3 app that renders its own data inside the remote
AutoCSS UI — have UI, bring your own data. The app
ships the data; AutoCSS (loaded from https://autocss.com) is the whole UI.
Live: https://autocss-com.github.io/vue/
npm install
npm run devnpm run build # → dist/Pushing to main auto-builds and deploys to GitHub Pages via
.github/workflows/deploy.yml.
Starting from a stock npm create vite Vue app, the whole integration is just a
few small touches:
- Link the AutoCSS styles — add the
https://autocss.com/assets/css/…stylesheets toindex.html. - Make
<app-container>the root — put<app-container></app-container>inindex.htmland mount into it withcreateApp(App).mount('app-container').App.vuerenders the AutoCSS scaffold, with your content inside<article>. - Allow the
app-*custom elements — one line invite.config.js:isCustomElement: (tag) => tag.startsWith('app-'). - Bring your data — fetch it (here
public/data/records.json) and render.
(Full change history: progress/.)