Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/renatoxm/nuxt-starter
A Nuxt template and boilerplate with a lot of useful features. Nuxt 3 + Tailwindcss + Nuxt Layer
https://github.com/renatoxm/nuxt-starter
nuxt nuxt3 nuxtjs tailwindcss vuejs3
Last synced: 2 days ago
JSON representation
A Nuxt template and boilerplate with a lot of useful features. Nuxt 3 + Tailwindcss + Nuxt Layer
- Host: GitHub
- URL: https://github.com/renatoxm/nuxt-starter
- Owner: renatoxm
- License: mit
- Created: 2024-02-17T10:16:06.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-20T12:27:56.000Z (9 months ago)
- Last Synced: 2024-02-20T13:36:19.633Z (9 months ago)
- Topics: nuxt, nuxt3, nuxtjs, tailwindcss, vuejs3
- Language: Vue
- Homepage: https://nuxt-starter-orpin.vercel.app
- Size: 299 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Nuxt Starter
A Nuxt 3 starter template or boilerplate with a lot of useful features. and integrated with TailwindCSS 3.
## Features
- [x] π¨ [Tailwind CSS v3](https://tailwindcss.com/)
- [x] β¨ [Headless UI](https://headlessui.dev/)
- [x] π [Icon Pack Component (unplugin-icons)](https://icones.js.org/)
- [x] πΉ [State & Store Management (Pinia)](https://pinia.vuejs.org/)
- [x] π© [Localization (i18n) by @intlify](https://github.com/intlify/nuxt3) & Auto Generate Locales
- [x] π¦ [Vue Composition Collection (Vueuse)](https://vueuse.org/)
- [x] π [Content Management System (Nuxt Content)](https://content.nuxtjs.org/) [SSR]
- [x] π Switch Theme (light, dark, system, realtime)
- [x] π [Prettier](https://prettier.io/)
- [x] π» [Consola](https://github.com/unjs/consola)
- [x] π [Release It](https://github.com/release-it/)
- [x] π [Vue I18n Internationalization](https://vue-i18n.intlify.dev/)
- [x] βοΈ Contact form
- [x] Configurable Theme (Easy to change)
- [x] Primary Colors
- [x] Font
- [ ] π [Nuxt Layer Support](https://nuxt.com/docs/getting-started/layers#layers)## Preview
## Table of Contents
- [Nuxt 3 Starter](#nuxt-starter)
- [Features](#features)
- [Preview](#preview)
- [Table of Contents](#table-of-contents)
- [Quick Start](#quick-start)
- [Start with this template](#start-with-this-template)
- [Deploy as Static Site](#deploy-as-static-site)
- [Built-in Components](#built-in-components)
- [Notes](#notes)
- [Nuxt Content](#nuxt-content)
- [Custom Workspace Snippets](#custom-workspace-snippets)
- [Styles](#styles)
- [Localization](#localization)
- [Contact Form](#contact-form)
- [License](#license)## Quick Start
For detail information, go here [Getting Started](https://nuxt-starter-renatoxm.vercel.app/)
### Start with this template
- This project using `pnpm` as package manager.
- Clone this project to your computer `git clone https://github.com/renatoxm/nuxt-starter`
- Install dependencies `pnpm install --shamefully-hoist`
- Run `pnpm dev` to start development server and open `http://localhost:3000` in your browser### Deploy as Static Site
- Run `pnpm generate` to build the project
- Serve `dist/` folder
Checkout the [deployment documentation](https://v3.nuxtjs.org/docs/deployment).## Built-in Components
- [x] Footer
- [x] Button
- [x] Anchor (link)
- [x] Alert
- [x] Card
- [x] Action Sheet
- [x] Theme Toggle / Switcher
- [x] Navbar
- [x] Navbar Builder
- [x] Drawer (on mobile)
- [x] Options (on mobile)
- [x] Page Layout
- [x] Wrapper
- [x] Header
- [x] Title
- [x] Body
- [x] Section
- [x] Section Wrapper
- [x] Section Title
- [x] Dashboard Layout
- [x] Sidebar
- [x] Contact Form
- [ ] Modal## Notes
### Nuxt Content
With Nuxt Content, you can just create markdown file (recommended) inside `content` folder.
But this is only available for SSR (Server Side Rendering) mode. Static mode still not working, you can see the issue https://github.com/nuxt/content/issues/1202
For now, you can follow### Custom Workspace Snippets
This workspace including custom snippets for VSCode.
- **n3:content**
content template with markdown
- **n3:page**
page template### Styles
Tailwindcss import managed by windicss.
and you can add custom styles in :```css
/path/to/assets/sass/app.scss
```### Localization
This project uses [nuxt/i18n](https://i18n.nuxtjs.org/) to translate links and content.
To add a new language, or change default language, you need to edit `nuxt.config.ts` and add a new locale in `locales` array.
```ts
// module::i18n
i18n: {
strategy: 'no_prefix',
defaultLocale: 'en',
langDir: 'locales',
detectBrowserLanguage: {
useCookie: true,
fallbackLocale: 'en',
redirectOn: 'root',
},
locales: [
{
code: 'en',
iso: 'en-US',
name: 'English',
file: 'en.yml',
flag: 'πΊπΈ',
},
... add other languages here!
],
},
```You also need to add a locale `.yml` file in `./locales` and also ad them in `app.config.ts`
```ts
locales: {
en: {
name: 'English',
iso: 'en',
flag: 'πΊπΈ',
},
... add other locales
```### Contact Form
In order to use the contact form component `LayoutPageContact`, you need to create a `.env` file and add your key to it. To get the access key, visit [Static Forms Website](https://www.staticforms.xyz) and follow the instructions. Then paste it in place of `YOR_ACCESS_KEY` like bellow.
```bash
# Contact form component your access key. Get yours here https://www.staticforms.xyz
ACCESS_KEY=YOUR_ACCESS_KEY
```## License
This project is licensed under the MIT license, Copyright (c) 2023 Renato Nabinger. For more information see the [LICENSE](LICENSE.md) file.