Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

tailwind nodejs

First add tailwind and postcss
npm install tailwindcss postcss autoprefixer postcss-cli

Initialize tailwindcss
npx tailwindcss init

Create a "postcss.config.js" and paste the following in it
module.exports = {
  plugins: [
    require('tailwindcss'),
    require('autoprefixer'),
  ]
}

Create the necessary files
mkdir public
mkdir public/styles
touch public/styles/tailwind.css
touch public/styles/style.css

Paste the following in public/styles/tailwind.css
@tailwind base;
@tailwind components;
@tailwind utilities;

The last thing is to add this to the scripts in package.json
"tailwind:css": "postcss public/styles/tailwind.css -o public/styles/style.css"
Comment

tailwind js

// tailwind.config.js
module.exports = {
  purge: [],
  darkMode: false, // or 'media' or 'class'
  theme: {
    extend: {},
  },
  variants: {},
  plugins: [],
}
Comment

PREVIOUS NEXT
Code Example
Shell :: Create And Restore MongoDB Backups 
Shell :: fzf install 
Shell :: wlan code cmd 
Shell :: remove last space from line 
Shell :: scp all files in directory 
Shell :: mac check command line tools version 
Shell :: Add Subtitles (.SRT file) To MP4 With FFMPEG 
Shell :: docker fatal: not a git repository (or any of the parent directories): .git 
Shell :: cannot find module json-loader 
Shell :: gcc on ubuntu 20.04 
Shell :: find image size terminal 
Shell :: task manager linux 
Shell :: nuxt install pug 
Shell :: ping in cmd 
Shell :: how to install imagick 
Shell :: nuget equivalent of npm install 
Shell :: get all branches from remote 
Shell :: linux delete user password 
Shell :: git cheatsheet 
Shell :: unzip to directory 
Shell :: cd /usr/local/bin/composer 
Shell :: start xampp 
Shell :: remove old version of node and install new 
Shell :: ubuntu terminal network monitor 
Shell :: open finder from terminal 
Shell :: recover lost file git 
Shell :: Ubuntu free ports in use 
Shell :: jupyter python downkload 
Shell :: bash for loop string 
Shell :: Add RPM Fusion Fedora 36 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =