Nuxt3-awesome-starter - A Nuxt 3 starter template or boilerplate with a lot of useful features. Nuxt3 + Tailwindcss 3

Overview

Nuxt 3 Awesome Starter

a Nuxt 3 starter template or boilerplate with a lot of useful features. and integrated with TailwindCSS 3.

WARNING
Nuxt 3 is still in beta and is not recommended for production use.

. .
Preview Preview On Mobile

Demo

Demo

Features

Built-in Components

  • Footer
  • Button
  • Anchor (link)
  • Navbar
    • Navbar Builder
    • Drawer (on mobile)
    • Options (on mobile)
  • Action Sheet
  • Theme Toggle / Switcher
  • Modal
  • Alert

Notes

Styles

Tailwindcss import in :

/path/to/assets/sass/vendor.scss

and you can add custom styles in :

/path/to/assets/sass/app.scss

Theme (Dark Mode)

ThemeManager is a plugin that allows you to switch between themes. this lib in :

/path/to/utils/theme.ts

Thememanager is a function-class construct when app.vue before mounted. theme construct inside AppSetup() in /path/to/app.vue :

<!-- /path/to/app.vue -->
<script lang="ts" setup>
import { AppSetup } from '~/utils/app';
// app setup
AppSetup()
</script>

To change theme, you can direct set theme from state theme.setting, example :

<script lang="ts" setup>
import { IThemeSettingOptions } from '~/utils/theme'
const themeSetting = useState<IThemeSettingOptions>('theme.setting')
themeSetting.value = 'dark'
</script>

When you change state theme.setting, it will automatically change theme.

Theme Setting have 4 options :

  • light
  • dark
  • system (operating system theme)
  • realtime (realtime theme, if 05:00 - 17:00, it will change to light theme, otherwise dark)

Icons

This project using unplugin-icons for auto generate and import icon as component.

You can see collection icon list in : https://icones.js.org/

you can use <prefix-collection:icon /> or <PrefixCollection:Icon />.

in this project, configuration prefix as a "icon", you can see in nuxt.config.ts :

export default defineNuxtConfig({
    ...

    vite: {
        plugins: [
            ViteComponents({
                dts: true,
                resolvers: [
                    IconsResolver({
                        prefix: 'Icon',
                    }),
                ],
            }),
        ],
    },

    ...
})

Example :

// use icon from collection "Simple Icons" and name icon is "nuxtdotjs"
<IconSimpleIcons:nuxtdotjs />

// use icon from collection "Unicons" and name icon is "sun"
<IconUil:sun />

Nuxt 3 Development Notes

Setup

Make sure to install the dependencies

# npm
npm install

# yarn
yarn install

Development

Start the development server on http://localhost:3000

# npm
npm run dev

# yarn
yarn dev

Production

Build the application for production:

# npm
npm run build && npm run start

# yarn
yarn build && yarn start

Checkout the deployment documentation.

Comments
  • Vue Router and intlify Warning

    Vue Router and intlify Warning

    this is realy awesome starter for nuxt3 but I am getting Vue Router and intlify Warning etc:

    1. [Vue Router warn]: No match found for location with path "/__webpack_hmr"
    2. [intlify] Not found 'banners.welcome' key in 'ko' locale messages. [intlify] Fall back to translate 'banners.welcome' key with 'en' locale. Could you have solution?
    opened by SuperService 13
  • Vscode bug on pages

    Vscode bug on pages

    On pages inside a subfolder of pages folder (example: pages/post/index.vue) I have a bug with VScode: it says composables functions are not defined, and an error with the import, see the image below: image

    Do you have the same problem? It's a problem I have with my project too, and I didn't find a fix :/

    opened by florealcab 7
  • Where can i remove this startup animation

    Where can i remove this startup animation

    Screen Shot 2022-08-08 at 7 21 37 PM

    Because I will like to speed up my DX, so i will like to remove this animation but I can't find where is the code, even I empty entire APP.vue still the same

    opened by 5SMNOONMS5 4
  • Why slut?

    Why slut?

    Please explain the naming being slut.vue.

    I mean, Github starting using main instead of master coz of the whole slave-master thing despite the context being to computers. This a whole another level.

    Screenshot 2022-12-09 at 21 49 18
    opened by mohsin 2
  • 👀 3 Variable Problems

    👀 3 Variable Problems

    😊 nice to again meet you 🎉

    ✔First Problem const to = toRef(props, 'to') in Anchor.vue const to = props.to in Button.vue 👀 what is best way to get value from props?

    ✔Second Problem const props = defineProps({ type: { type: String, default: 'primary' }, title: { type: String, default: undefined }, text: { type: String, default: undefined } }) in Alert.vue 👀why do you use default = undefined insteadof string empty?

    ✔Third Problem CardTitle.vue

    why do you use tag with {{ text }}? I checked that it don't need right?

    opened by SuperService 2
  • Template is unlicensed

    Template is unlicensed

    Hi there,

    I would love to use this template for my website. Unfortunately, there is no license. Would you be so kind and add one :)

    Thank you in advance

    documentation 
    opened by jonas080301 2
  • How move Global CSS from style tag to css file,

    How move Global CSS from style tag to css file,

    build: { extractCSS: true }

    it's not work !!!!!!!!!!!!!

    https://nuxt3-awesome-starter.vercel.app/ I see is some css inside the style tag on the page

    opened by mgl-pub 1
  • .husky/pre-commit: line 4: yarn: command not found husky - pre-commit hook exited with code 127 (error) husky - command not found in PATH=/Applications/GitHub Desktop.app/Contents/Resources/app/git/libexec/git-core:/usr/bin:/bin:/usr/sbin:/sbin

    .husky/pre-commit: line 4: yarn: command not found husky - pre-commit hook exited with code 127 (error) husky - command not found in PATH=/Applications/GitHub Desktop.app/Contents/Resources/app/git/libexec/git-core:/usr/bin:/bin:/usr/sbin:/sbin

    I have cloned the repository, and made some changes. When I tried to commit, this error appear:

    .husky/pre-commit: line 4: yarn: command not found husky - pre-commit hook exited with code 127 (error) husky - command not found in PATH=/Applications/GitHub Desktop.app/Contents/Resources/app/git/libexec/git-core:/usr/bin:/bin:/usr/sbin:/sbin

    I have done all sorts of stuff, but error consists.. Please kindly help me.. https://dev.to/studiospindle/using-husky-s-pre-commit-hook-with-a-gui-21ch https://stackoverflow.com/questions/67063993/sh-husky-command-not-found

    opened by ChurikiTenna 1
  • Question about some components like PageWrapper

    Question about some components like PageWrapper

    I'm looking at the templates you have in your .vue files and I'm seeing things like PageWrapper and PageBody PageSection PageHeader... where exactly are these things coming from? I can't find any references to them other than their uses.

    opened by funkel1989 1
  • Cannot find package 'c12' imported from

    Cannot find package 'c12' imported from

    after installing node modules i got this error ERROR Cannot start nuxt: Cannot find package 'c12' imported from C:\Users\Moham\Desktop\Git Repos\my-nuxt3-app\node_modules\nuxt-windicss\node_modules@nuxt\kit\dist\index.mjs

    opened by Mohammad-Khayat 1
  • How to fix bug

    How to fix bug

    When I run yarn dev , the project is running but there are some bugs.

    [plugin:unplugin-vue-components] callback.apply is not a function
    

    How to fix them?

    opened by alwayswelcom 1
  • how to disable preflight in this project?

    how to disable preflight in this project?

    I'm new to tailwind and I came across the default style removal from html elements. I found in the documentation how to disable it, but it doesn't work. Captura de Tela 2022-10-24 às 09 46 43 Here the code I put in my project based on yours. Captura de Tela 2022-10-24 às 09 51 22

    opened by dev02iggy 2
  • pnpm dev error

    pnpm dev error

    pnpm install

    ERROR Failed to resolve import "ufo" from "virtual:nuxt:/home/juno/Downloads/nuxt3-awesome-starter/.nuxt/paths.mjs". Does the file exist? 03:20:57

    ERROR Failed to resolve import "defu" from ".nuxt/app.config.mjs". Does the file exist? 03:21:00

    ✔ Nitro built in 1938 ms

    500 [vite-node] Failed to load ufo

    at ViteNodeRunner.directRequest (./node_modules/.pnpm/[email protected][email protected]/node_modules/vite-node/dist/client.mjs:180:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ViteNodeRunner.cachedRequest (./node_modules/.pnpm/[email protected][email protected]/node_modules/vite-node/dist/client.mjs:128:12) at async request (./node_modules/.pnpm/[email protected][email protected]/node_modules/vite-node/dist/client.mjs:151:16) at async virtual:nuxt:./.nuxt/paths.mjs:1:238 at async ViteNodeRunner.directRequest (./node_modules/.pnpm/[email protected][email protected]/node_modules/vite-node/dist/client.mjs:251:5) at async ViteNodeRunner.cachedRequest (./node_modules/.pnpm/[email protected][email protected]/node_modules/vite-node/dist/client.mjs:128:12) at async request (./node_modules/.pnpm/[email protected][email protected]/node_modules/vite-node/dist/client.mjs:151:16) at async ./node_modules/.pnpm/[email protected]_3qgq5m7bqj7palvvc4uezrk4iq/node_modules/nuxt3/dist/app/entry.mjs:5:31 at async ViteNodeRunner.directRequest (./node_modules/.pnpm/[email protected][email protected]/node_modules/vite-node/dist/client.mjs:251:5)

    opened by unnimona 2
Owner
Alfian Dwi Nugraha
Nama Saya Alfian Dwi Nugraha, Seorang anak yang terbatas dengan prasarana teknologinya, tapi punya keinginan kuat untuk belajar terus menerus di dunia IT
Alfian Dwi Nugraha
😍 Awesome Vue Boilerplate 🥳 Vue 🥰 Vuex, vuex-pathify 🤗 element-ui 🤲 tailwindcss

Awesome Vue Boilerplate This is an ever-evolving, very opinionated architecture and dev environment for new Vue SPA projects using Vue CLI 3. Getting

Narek Hakobyan 61 Oct 20, 2022
Nuxt Starter Kit - an opinionated boilerplate based off of Nuxt3

Nuxt.js 3 + Supabase starter for Typescript lovers Nuxt Starter Kit is an opinionated boilerplate based off of Nuxt3(beta), with all the bells and whi

Elia 4 May 21, 2022
Nuxt3 (Nuxt 3) best starter repo, Tailwindcss, Sass, Headless UI, Vue, Pinia, Vite

Nuxt 3 Starter We recommend to look at the documentation. Preview Deploy your own This starter template also includes: Tailwind CSS v3.0.0-alpha ⚠ Hea

Mehmet 386 Dec 28, 2022
A set of awesome starter kits (boilerplate code) for projects based on Bootstrap, Express, React or Vue

The cloudapps-cli offers a set of awesome starter kits (boilerplate code) for projects based on Bootstrap, Express, React or Vue. Tested on Windows, Linux and macOS.

Boyan Kostadinov 2 Mar 2, 2022
Nuxt3 with brilliant bells and useful whistles

Nuxt Starter Kit Nuxt Starter Kit is an opinionated boilerplate based off of Nuxt3(beta), with all the bells and whistles you would want ready, up and

Aftab Alam 120 Dec 27, 2022
tailwindcss + nuxt3.js template

TailNuxt template This is a Nuxt3 port of the Tailnext template. This was my first attempt to translate an existing template from react to vue, so the

Bitkarrot 2 Nov 6, 2022
Full stack Nuxt 3 Template starter with Supabase and Tailwindcss

Top Nuxt 3 Starter Template Fastest and most comfortable development experience started template With ?? from @ctwhome, inspired by @antfu vitesse Fea

J. Gonzalez 95 Dec 28, 2022
Vue project boilerplate with some interesting features included.

vue2-boilerplate Vue project boilerplate with some interesting features included. Features These are the main features that make interesting this proj

allnulled 0 Dec 31, 2021
Starter template for Nuxt3 + Primer CSS

Nuxt3 + Primer CSS Starter Nuxt3 + Primer CSS starter template. Warning Nuxt3 is still in RC version. Nuxt3 (Vue3 Framework) Primer CSS (CSS Framework

Yumamama 2 Jun 23, 2022
nuxt3 boilerplate with tailwind and dynamic routes.

Nuxt 3 Minimal Starter We recommend to look at the documentation.

JDIZM 53 Dec 27, 2022
This is a Nuxt 3 Starter Kit with Vite, Vue 3, TypeScript, SCSS and TailwindCSS!

Nuxt 3 Starter Kit This is a Nuxt 3 Starter Kit with Vite, Vue 3, TypeScript, SCSS and TailwindCSS! We recommend to look at the documentation. Setup M

Ricardo 17 Nov 19, 2022
A simple portfolio starter theme built with Nuxt.js and TailwindCSS

Nuxt.js & TailwindCSS Portfolio - With Dark Mode A simple portfolio starter theme built with Nuxt.js and TailwindCSS. This is the Nuxt version of the

Nangialai Stoman 43 Jan 3, 2023
Vue3-ts-boilerplate - Packed Vue3 boilerplate with storybook, unit testing, generators, typescript, pinia, vue-router

Vue3 TS Boilerplate This template should help get you started developing with Vue 3 in Vite. Recommended IDE Setup VSCode + Volar (and disable Vetur).

Jeff Fasulkey 5 Nov 11, 2022
null 43 Jan 5, 2023
Mohamed Ghoubali 3 Jun 22, 2022
Vue-Boilerplate - This boilerplate was made to simplify working with Vue

Vue-Boilerplate This boilerplate was made to simplify working with Vue Packages: - Vite - Vue3 - Vue-Router - TypeScript - altv/types-webviews Does al

Phill 6 Dec 17, 2022
A boilerplate for vue3 configured with tailwindCSS and vueRouter out of the box.

vue3-tailwind-boilerplate This template should help get you started developing with Vue 3, tailwindcss and vueRouter in Vite. Recommended IDE Setup VS

Kenny 2 Nov 10, 2022
⚡ A starter example with Nuxt3 + Windi CSS + Iconify + Element-plus + Pinia + Docker

Nuxt3 + Windi CSS + iconify + element-plus 创建项目 简介 Nuxt 3 - The Hybrid Vue Framework (nuxtjs.org) Build your next application with Vue 3 and experienc

西北盲流子 8 Dec 14, 2022
A blog application with nuxt3, windicss, nuxt-content

A blog application with nuxt3, windicss, nuxt-content

eggp 3 Aug 16, 2022