Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

nextjs create project with tailwind

npx create-next-app my-app -e with-tailwindcss
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

PREVIOUS NEXT
Code Example
Javascript :: array to dictionary javascript 
Javascript :: jquery validate if field exists 
Javascript :: copy an array without pointer in angular 
Javascript :: coldfusion user defined function 
Javascript :: javascript simulate key press 
Javascript :: twitter icon in next js 
Javascript :: js add value to html input 
Javascript :: javascript truncate with ellipsis 
Javascript :: MIN_SAFE_INTEGER 
Javascript :: laravel ajax csrf 
Javascript :: Delete object in array with filter 
Javascript :: jquery serialize 
Javascript :: react-native loading screen 
Javascript :: how to get first and last name from email js regex 
Javascript :: how to check data type of javascript variable 
Javascript :: ckeditor change value 
Javascript :: get link js 
Javascript :: jquery scroll to element 
Javascript :: javascript get all select options 
Javascript :: loopback geopoint 
Javascript :: javascript after dom ready 
Javascript :: generate random string in javascript 
Javascript :: check if class is active jquery 
Javascript :: check a checkbox jquery 
Javascript :: how to detect a button click in javascript 
Javascript :: convert milit second to date javascript 
Javascript :: ngmodel change 
Javascript :: angular ng build Maximum call stack size exceeded 
Javascript :: uuid for react native 
Javascript :: nodejs readfile 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =