@codemonster-ru/vueforge-layouts
v2.1.2
Published
Layout primitives, shell components, and responsive composables for Vue 3 applications.
Maintainers
Readme
VueForge Layouts
Responsive layout primitives and application shells for VueForge-based Vue 3 applications.
Coordinated release: @codemonster-ru/[email protected].
Requirements
- Node.js 18 or newer for consumer tooling and SSR.
- Vue
^3.5.0. @codemonster-ru/vueforge-core^2.1.0.
Install
npm install vue@^3.5.0 @codemonster-ru/vueforge-core@^2.1.0 @codemonster-ru/vueforge-layoutspnpm add vue@^3.5.0 @codemonster-ru/vueforge-core@^2.1.0 @codemonster-ru/vueforge-layoutsyarn add vue@^3.5.0 @codemonster-ru/vueforge-core@^2.1.0 @codemonster-ru/vueforge-layoutsQuick start
import { createApp } from 'vue';
import VueForgeLayouts, { VfAppShell } from '@codemonster-ru/vueforge-layouts';
import '@codemonster-ru/vueforge-core/styles.css';
import '@codemonster-ru/vueforge-layouts/styles.css';
const app = createApp({});
app.use(VueForgeLayouts);
app.component('VfAppShell', VfAppShell);The Layouts plugin installs the Core theme plugin and applies layout theme configuration. It does not globally register layout components.
Granular setup
import '@codemonster-ru/vueforge-core/tokens.css';
import '@codemonster-ru/vueforge-core/theme.css';
import '@codemonster-ru/vueforge-core/base.css';
import '@codemonster-ru/vueforge-layouts/tokens.css';
import '@codemonster-ru/vueforge-layouts/theme.css';
import '@codemonster-ru/vueforge-layouts/base.css';
import VfAppShell from '@codemonster-ru/vueforge-layouts/app-shell';
import VfContainer from '@codemonster-ru/vueforge-layouts/container';Browser component subpaths auto-load their component CSS, but not the Core or Layouts shared foundation entries shown above. Node ESM subpath conditions are CSS-free for SSR.
For fully manual browser delivery, import named components from the CSS-free package root and add
their component CSS explicitly; do not combine explicit component CSS with a browser component
subpath. auth-layout, document-layout, and setup-layout also require container.css. Their
browser subpaths include it automatically.
Public entries
- Root plugin, layout components, responsive composables, and theme helpers.
- Seventeen component subpaths, including
./container,./grid,./app-shell, and shell areas. - Full and granular CSS entries, including
./styles.css,./breakpoints.css, and component CSS. - ESM and CommonJS root entries for SSR.
More documentation
For full documentation, visit docs.codemonster.net/vueforge/layouts. See the repository installation guide and CHANGELOG.md.
