next-base Tailwind Templates

Next Base

Base app for Next.js with Tailwind, SASS, and SVG support

next-base

This is the Next.js starter template for Space Type projects.

Developing

You will need to have npm installed. I recommend a version manager like asdf.

Once you've got that ready, you can spin up local dev:

npm install && npm run dev

High-Level Architecture

Template Foundations: Next.js 14, Typescript, Tailwind CSS, PostCSS (SASS support), SVGR

Directory Structure

React Fundamentals
└── pages           šŸ¤– Individual website pages, routed based on their filename.
    └── _app.tsx       Defines the "wrapper" layout for all other pages.
└── contexts        šŸŒŽ Global site contexts for sharing data/events across components
└── components      šŸ—‚ Individual React components, used within pages. Helpful for breaking down your code :)

Styling and Assets
└── public          šŸ”‘ Raw HTML/CSS/JS and asset files
└── styles          šŸ”€ Globally-imported CSS files

Logical Organization
└── util            šŸ”Ø Small functional utilities
└── lib             šŸ› ļø Larger logical services and models

Deployment

Next.js is built by Vercel and I recommend deploying on their system. Their free tier is forgiving and allows you to deploy lightweight frontends and APIs.

Top categories

Loading Svelte Themes