Pasfica
Nuxt 3 & Tailwind CSS Admin/Front UI Boilerplate & Component Kit

Project at a Glance
- Problem: Starting every new Nuxt 3 admin dashboard or storefront project from scratch repeatedly burns time rebuilding the same form inputs, modals, paginated tables, auth stores, and API repository layers.
- Deliverables: A reusable Nuxt 3 + Tailwind CSS starter kit (
2023-2025, maintained up to Nuxt3.16) containing dual Admin and Front layouts, 28+ custom base UI components, a centralized$apiFetcherRepository Pattern plugin, Pinia persisted auth state, and a rule-based form validator. - Core Stack: Nuxt 3, Vue 3, Tailwind CSS, Pinia (
@pinia-plugin-persistedstate/nuxt), JavaScript, FontAwesome 6, V-Calendar, Vue Multiselect, Vue3-Toastify, VueDraggable, Nuxt-Swiper. - Practical Value: Built solo as an open-source starter template and reused across real admin/dashboard builds to accelerate project bootstrapping with consistent UI and API conventions.
Project Overview
Pasfica is a personal open-source Nuxt 3 and Tailwind CSS boilerplate originally created in August 2023 and continuously updated through late 2025. Rather than relying on a heavy external UI library, Pasfica provides a transparent, customizable set of custom Vue 3 base components alongside a clean frontend architecture for real-world CRUD dashboards and public storefronts.
A live interactive showcase of the layouts and components is hosted at pasfica.vercel.app.
Interface Specimens

Admin Dashboard Layout (/admin): Collapsible grouped sidebar (Input, Card, Modal, Button, Badge, Other Components, Layouts, Tables), breadcrumb navigation header, and user profile menu.

Front Storefront / Portal Layout (/front/layout-1): Top utility bar, global search header, Login/Register actions, full-width nuxt-swiper hero carousel, and horizontal card listing.

Authentication Template (/front/login-1): Split-column login card with password visibility toggle, forgot-password link, and dual Register/Login actions.
Starter Architecture & Core Building Blocks
+-------------------------------------------------------------+
| LAYOUTS & PAGE TEMPLATES |
| layouts/admin.vue | layouts/front.vue | Login 1/2 |
+------------------------------+------------------------------+
|
+---------------------+---------------------+
| |
v v
+-----------------------------+ +-----------------------------+
| CUSTOM BASE COMPONENTS | | DATA & STATE LAYER |
| - 13 Form Input Controls | | - $apiFetcher Nuxt Plugin |
| - Tables & Pagination | | - Standard & Custom Repos |
| - Modals (Default/Confirm/ | | - useApiFetch + JWT/Refresh|
| Side) & Toast Alerts | | Token Scaffolding |
| - Kanban (VueDraggable) | | - Pinia Persisted Auth |
| - Calendar & Swiper | | - Rule-Based useValidator |
+-----------------------------+ +-----------------------------+
1. 28+ Custom Base UI Components (components/base/)
- Form Input Suite (13 components):
Default,Textarea,Number,Currency,Phone,Date,DateRange,Checkbox,Radio,Select,Select2(vue-multiselect),File, andImage. - Data & Navigation:
Table/Default,Table/Pagination,Breadcrumb,MenuTab,Card,Badge,Button, andLoading. - Modals & Interactive Patterns:
Modal/Default,Modal/Confirm,Modal/Side,vue3-toastifynotifications,v-calendardate pickers,nuxt-swipersliders, and a drag-and-drop Kanban board (pages/admin/kanban.vueviavuedraggable). - API-Backed CRUD Reference: Includes working CRUD page examples (
pages/admin/tables/with-api/) demonstrating list, create, and edit flows against repository endpoints.
2. Centralized $apiFetcher Repository Pattern (plugins/ & repositories/)
- Exposes domain repositories (
auth,category,customProduct) through a Nuxt plugin ($apiFetcher) so pages never scatter raw$fetchURLs across components. - Wraps Nuxt's
useFetchinrepositories/repository.jswithruntimeConfig.public.baseAPI, custom-URL bypass mode, and ready-to-enable Bearer token + refresh-token expiration checks.
3. Persisted Auth State & Custom Validator (stores/ & utils/)
- Pinia Auth Store (
stores/auth.js): Managestoken,refreshToken, andexpiredcookies alongside persisteduserDatavia@pinia-plugin-persistedstate/nuxt. - Rule-Based Validator (
utils/useValidator.js): Lightweight Laravel-style string rule evaluator supportingrequired,min,max,numeric, andemailchecks without heavy third-party form libraries.