Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
feat(show-pages): import the show-ui theme in the scaffold + note utility overrides (#811)
Call White6aca47d43762
diff --git a/core/show_pages.py b/core/show_pages.pyindex 9774cdd03..3ed83546f 100644--- a/core/show_pages.py+++ b/core/show_pages.py@@ -945,6 +945,7 @@ export default function App() {def _default_styles_css() -> str:return """@import "tailwindcss";+@import "@avibe/show-ui/theme.css";:root {color-scheme: light;diff --git a/core/system_prompt_injection.py b/core/system_prompt_injection.pyindex 03c5cedda..0a71d2c9c 100644--- a/core/system_prompt_injection.py+++ b/core/system_prompt_injection.py@@ -93,7 +93,7 @@ Guidance:- The standard structure is `index.html`, `src/main.tsx`, `src/App.tsx`, `src/styles.css`, and optional `api/*.ts`; treat `index.html` and `src/main.tsx` as the runtime-owned app shell.- Hot reload is available while `/show/<session-id>/` is open. Users will see page changes live. Prefer component-level changes that preserve React state.- Built-in UI imports include shadcn-style aliases such as `@/components/ui/button`, `@/components/ui/card`, `@/components/ui/badge`, `@/components/ui/dialog`, `@/components/ui/input`, `@/components/ui/progress`, plus `@avibe/show-ui/theme` for theme presets and CSS variables.-- Tailwind CSS v4 utility classes are built in and work in any `className`. `src/styles.css` is the CSS entry and must keep `@import "tailwindcss";` at the top; theme through the `@avibe/show-ui/theme` CSS variables.+- Tailwind CSS v4 utility classes are built in and work in any `className`, including to restyle the built-in `@/components/ui/*` components (a utility overrides the component default). `src/styles.css` is the CSS entry and must keep `@import "tailwindcss";` and `@import "@avibe/show-ui/theme.css";` at the top; theme through the `@avibe/show-ui/theme` CSS variables.- Prefer the built-in UI primitives over hand-rolled controls. They include Show Page motion for changed text, numbers, badges, cards, and progress without extra animation calls.- Optional server handlers live under `api/` and run only when requested. Export functions named like HTTP methods, for example `export async function GET(request) { return Response.json({ ok: true }) }`.- Design for user understanding, not just for moving text onto a webpage. Choose the visual form that best helps the user inspect, compare, confirm, and continue the discussion.diff --git a/tests/test_reply_enhancer_platform.py b/tests/test_reply_enhancer_platform.pyindex f07df0ba3..8f5953adf 100644--- a/tests/test_reply_enhancer_platform.py+++ b/tests/test_reply_enhancer_platform.py@@ -311,7 +311,8 @@ class ReplyEnhancerPlatformTests(unittest.IsolatedAsyncioTestCase):self.assertIn("Make the page work reasonably on mobile", prompt)self.assertIn("managed React/Vite apps", prompt)self.assertIn("Tailwind CSS v4 utility classes are built in", prompt)- self.assertIn('must keep `@import "tailwindcss";` at the top', prompt)+ self.assertIn("restyle the built-in `@/components/ui/*` components", prompt)+ self.assertIn('must keep `@import "tailwindcss";` and `@import "@avibe/show-ui/theme.css";` at the top', prompt)self.assertNotIn("Ready to visualize", prompt)self.assertIn("@/components/ui/progress", prompt)self.assertNotIn("Excalidraw-style static SVG/PNG diagrams", prompt)diff --git a/tests/test_ui_show_pages.py b/tests/test_ui_show_pages.pyindex cef02c323..fba490562 100644--- a/tests/test_ui_show_pages.py+++ b/tests/test_ui_show_pages.py@@ -261,6 +261,7 @@ def test_private_show_page_materializes_workspace_before_runtime_proxy(monkeypatassert (page_dir / "src" / "App.tsx").exists()styles_css = (page_dir / "src" / "styles.css").read_text(encoding="utf-8")assert styles_css.startswith('@import "tailwindcss";'), styles_css[:60]+ assert '@import "@avibe/show-ui/theme.css";' in styles_css, styles_css[:90]assert manager.calls[0][1] == "/sessions/ses123/app/"