NextJs
React
Tailwindcss
Aceternity
Sanity
Docstra Tailwind NextJs Template is built with Tailwindcss and Nextjs.
These theme is ready to use and you can totally customize as per your requirement.
For Customize, You should have knowledge of NextJs, sanity.io, ReactJs, Tailwind and JSX to be able to modify these template.
|—
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|—
|—
|
|
|
|
|
|
|
|
|
|
|—
|
|
|
|
|
|
|
|
|
|
|—
|
|
|
|—
|—
|—
|—
|—
|—
global.css|—
layout.tsx|—
not-found.tsx|—
page.tsx|—
|—
next.config.mjs|—
postcss.config.mjs|—
package.json|—
tailwind.config.ts|—
tsconfig.json|—
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|—
|—
|
|—
|—
|—
|
|
|
|
|
|—
|—
|—
|—
|—
sanity.cli.ts|—
sanity.config.tsGo to https://www.sanity.io in your web browser.
On the homepage, click on the "Start building" or "Sign in" button in the top-right corner.
You’ll be redirected to the login/signup page. Choose one of the following sign-up methods:
Recommended: Use your GitHub account for smoother CLI and deployment integration.
After signing up, you’ll be taken to the Sanity Manage Dashboard:
Run the following command in your terminal to install the CLI globally:
npm install -g @sanity/cli
In your Sanity Studio project folder (e.g., studio/), rename .env file at the root level and named it as .env and set environmental variables.
|—
|
|
|
|
|—
.env|—
sanity.config.ts|—
sanity.cli.tsSANITY_STUDIO_PROJECT_ID=your_project_id
SANITY_STUDIO_DATASET=your_dataset_name
In your package project folder (e.g., package/), rename .env.local file at the root level named as .env and set environment variable.
NEXT_PUBLIC_SANITY_PROJECT_ID=your_project_id
NEXT_PUBLIC_SANITY_DATASET=your_dataset_name
Add your Sanity project ID to the.env file:
Add your Sanity Dataset to the.env file:
Demo data is available in .studio/backup/production.tar.gz.
For import dummy dataset go to /studio and in terminal run the following command
sanity dataset import <file> <targetDataset>
eg: npx sanity dataset import ./backup/production.tar.gz production
cd studio
npm install
npm run dev
This will start your Sanity Studio at http://localhost:3333
After Deployment you can set live url into Sanity studios section
Before proceeding, you need to have the latest stable node.js
Open package folder and install its dependencies. We recommanded yarn or npm.
cd package
npm install
cd package
yarn install
Once npm install is done now you an run the app.
npm run dev or yarn run dev
This command will start a local webserver http://localhost:3000:
> docstra@1.0.0 dev
> next dev
-Next.js 15.2.4
-Local: http://localhost:3000
After adding url run below command for build a app.
npm run build or yarn build
Finally, Your webiste is ready to be deployed.🥳
1. Override Colors
For any change in colors : src/app/globals.css
--color-primary: #0F7ED9;--color-secondary: #5E696E;--color-smokyBlack: #131516;--color-paleSlate : #F6F8F9;--color-charcoalDark: #2F3037;
2. Override Theme Colors
For change , go to : src/app/globals.css
--color-primary: #0F7ED9;--color-secondary: #5E696E;
1. Change Font family over here : src/app/layout.tsx
import { Geist, Geist_Mono } from 'next/font/google';
const geistSans = Geist({ variable: '--font-geist-sans', subsets: ['latin'], });
const geistMono = Geist_Mono({ variable: '--font-geist-mono', subsets: ['latin'], });
1. Change Logo over here : src/app/components/layout/header/logo/index.tsx
<Link href="/">
<Image
src="/images/logo/logo.svg"
alt="logo"
width=130
height=40
className='dark:hidden'
/>
<Image
src="/images/logo/logo-white.svg"
alt="logo"
width=130
height=40
className='dark:block hidden'
/>
</Link>