Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

luigircruz/next-tailwind-preset

Repository files navigation

A starter preset for NextJS and TailwindCSS, jumpstarting your application's development.

Homepage View

This preset includes Prettier for code formatting and the jsconfig.json have been configured for importing from path purposes.

Getting Started

  1. First, you'll need to clone this repo. NOTE that you have to replace the "project-name" with the name of your project.
git clone --depth=1 https://github.com/luigircruz/next-tailwind-preset.git project-name
  1. Change directory to your project.
cd project-name
  1. Install the project's dependencies.
npm install
# or
yarn
  1. Run your development server:
npm run dev
# or
yarn dev
  1. Open http://localhost:3000 with your browser to see the result.

And that's it! You now have a starter project with tailwind support in less than a minute.

Tips

To format your codes via Prettier, just use the format command.

yarn format

To build and run your application, just use the build-start command.

yarn build-start

Instead of figuring out the path of your imports, just prefix your directory paths to @/directory.

Examples:

import '@/styles/globals.css'
import MyComponent from '@/components/MyComponent'

You can find all of the configured paths on the jsconfig.json file.

About

A starter preset for NextJS and TailwindCSS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published