Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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 :: shorthand if statment in js 
Javascript :: how the filter() function works javascript 
Javascript :: javascript ready state 
Javascript :: react render component after fetch 
Javascript :: uppercase javascript using function 
Javascript :: response.json() promise pending 
Javascript :: mongoose unique validator 
Javascript :: js then 
Javascript :: remove json javascript 
Javascript :: javascript backwards loop array 
Javascript :: get previous year in javascript 
Javascript :: js sort number array 
Javascript :: str replace javascript all 
Javascript :: How to do a timer angular 
Javascript :: addition of all elements of array in js 
Javascript :: Next js window is not defined solution 
Javascript :: javascript class methods 
Javascript :: javascript count digits 
Javascript :: node js response header 
Javascript :: base64 to image nodejs 
Javascript :: jquery wait for function to finish 
Javascript :: generate apk debug react native 
Javascript :: get value of hidden type field 
Javascript :: filter repetition multidimensional array javascript 
Javascript :: reverse text javascript 
Javascript :: regex all 
Javascript :: how to do joins in sequelize and select things from the third table 
Javascript :: jquery compare two arrays return difference 
Javascript :: image react native 
Javascript :: base href 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =