mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-10-12 04:29:51 +08:00
The shell (packages/mcp-server/shell) renders DrawioFrame inside the shared providers without the chat: its config comes from window.__MCP_CONFIG__, the four dictionaries ship in the bundle, the theme is kept under an mcp: localStorage key, and system fonts stand in for the web fonts. scripts/build-shell.mjs bundles it into dist/shell with the root's esbuild and Tailwind; check-package caps shell.js at 1.5 MB and shell.css at 300 KB.
19 lines
729 B
CSS
19 lines
729 B
CSS
/*
|
|
* Stylesheet of the MCP's canvas shell: the web app's theme and Tailwind,
|
|
* with the utility classes of the shared components the shell bundles.
|
|
* Built by scripts/build-shell.mjs; Tailwind scans this directory on its
|
|
* own, and the shared components through the @source lines.
|
|
*/
|
|
@import "../../../app/globals.css";
|
|
@source "../../../components/canvas";
|
|
@source "../../../components/ui";
|
|
@source "../../../components/ai-elements";
|
|
|
|
/* System fonts stand in for the web fonts the Next.js layout loads */
|
|
:root {
|
|
--font-latin:
|
|
ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
|
|
"Helvetica Neue", Arial, sans-serif;
|
|
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
}
|