Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

next js with tailwind css

npx create-next-app -e with-tailwindcss pName
Comment

tailwindcss nextjs setup

npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p

// Remember to add to tailwind.config.js

/** @type {import('tailwindcss').Config} */ 
module.exports = {
  content: [
    "./pages/**/*.{js,ts,jsx,tsx}",
    "./components/**/*.{js,ts,jsx,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}

// and to globals.css

@tailwind base;
@tailwind components;
@tailwind utilities;
Comment

next js with tailwind css

npx create-next-app -e with-tailwindcss projectname
//this will create your nextjs application and integrate JIT engine and Tailwind-CSS in it.
Comment

tailwind content for nextjs

module.exports = {
  content: [
    "./pages/**/*.{js,ts,jsx,tsx}",
    "./components/**/*.{js,ts,jsx,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: document queryselectorall and map javacript 
Javascript :: vue scroll div to bottom 
Javascript :: how to get all the voice channels in discord js 
Javascript :: datatables get all checkboxes with pagination 
Javascript :: body-parser deprecated 
Javascript :: what is normalize in javascript 
Javascript :: minify html using javascript 
Javascript :: for in loop key 
Javascript :: copy to clipboard jquery example 
Javascript :: find a word in string javascript 
Javascript :: what is virtual dom in react 
Javascript :: html onchange call js function 
Javascript :: stylesheet create 
Javascript :: nodemailer, mailer, nodemailer npm 
Javascript :: async await javascript stack overflow 
Javascript :: js date in two weeks 
Javascript :: upload image to firebase 
Javascript :: export table data to excel in jquery 
Javascript :: mongodb replace root 
Javascript :: useeffect react example 
Javascript :: how to convert seaconds into hh:mm:ss in javascript 
Javascript :: create an element jquery 
Javascript :: exporting a class 
Javascript :: remove repetition multidimensional array javascript 
Javascript :: react i18n outside component 
Javascript :: react 18 render 
Javascript :: return a date time object in yyyy-mm-dd hr:min:sec 
Javascript :: reverse array without using another array js 
Javascript :: check time javascript 
Javascript :: base href angular 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =