Getting started

Project structure

What lives in each folder and where to look when you want to change something.

The template follows the standard Nuxt layout at the project root. Nuxt scans pages/, layouts/, components/, composables/, middleware/ and plugins/ automatically, so files there need no registration.

text
melsami-ui/
├─ assets/          Styles, fonts overrides, images and your SVG icons
├─ components/
│  ├─ ui/           Base* primitives: props and slots only
│  ├─ layout/       App* shell pieces: sidebar, navbar, customizer…
│  ├─ landing/      Landing* blocks rendered from /content
│  └─ pages/        Components used by a single page
├─ composables/     Shared logic (navigation, theme, data providers…)
├─ config/          Plain TypeScript configuration: theme, icons, app settings
├─ content/         Landing page copy and data, one folder per landing
├─ docs/            Short Markdown guides that ship with the code
├─ docs-site/       This documentation, a separate Nuxt app
├─ env/             Environment files loaded by nuxt.config.ts
├─ layouts/         default, auth, blank and landing-page
├─ locales/         UI translations, one folder per language
├─ middleware/      Global auth and permission guards
├─ mocks/           Typed demo data and mock providers
├─ pages/           File-based routes
├─ plugins/         Vuetify registration
├─ public/          Static files served as they are
├─ scripts/         Starter generator, icon sync and screenshots
├─ server/          Nitro server (empty, ready for API routes)
├─ stores/          Pinia stores: auth and preferences
├─ tests/           Vitest unit tests and Playwright end-to-end tests
├─ types/           Component, layout and model types
├─ utils/           Pure functions, all unit tested
├─ app.vue          Root component: layout, page title and appearance
├─ i18n.config.ts   vue-i18n options and Vuetify messages
├─ nuxt.config.ts   Modules, fonts, translations and build options
└─ vuetify.config.ts Vuetify defaults, theme and icon sets

Where to change things

I want to…
Look at
Change the namecolours
Add or reorder menu itemscomposables/useNavigation.ts
Change the logocomponents/ui/BaseAppLogo.vue and public/favicon.svg
Add a translationlocales/<code>/*.json
Connect a real APIcomposables/useApi.ts and the providers in mocks/
Change default props of every Vuetify componentvuetify.config.ts
Edit the landing page copycontent/template/en.ts and content/template/es.ts
Add a pagepages/ plus a menu entry in useNavigation.ts
Protect a page with a permissiondefinePageMeta({ permission }) and types/models/permissions.ts

The three component tiers

Components are split by how much they know about the application. This keeps the primitives reusable and makes it obvious where a new component belongs.

Folder
Prefix
Can read
Example
components/ui/BaseOnly its props and slotsBaseButton, BaseDataTable, BaseChart
components/layout/AppStores, the route and the navigationAppSidebar, AppUserMenu, AppToast
components/landing/LandingProps fed from /contentLandingHero, LandingPricing
components/pages/Page nameAnything the page needsOrderQuickView, KanbanCard

Components are registered without a path prefix, so components/ui/form/BaseForm.vue is used as <BaseForm>.

Chrome and content

Two kinds of text live in two places:

  • locales/ holds the interface: button labels, menu items, validation messages and accessibility labels. It is translated with $t().
  • content/ holds marketing copy for the landing pages. You rewrite it for your product, so it is plain TypeScript data, one module per language.

Keep them apart. A label that appears in the app shell belongs in locales/; a headline on your sales page belongs in content/.

© 2026 melsami UI.
Developer documentation for melsami UI.