“Rückenwind JS” Code-Antworten

Rückenwind CSS NPM

# Using npm
npm install tailwindcss

# Using Yarn
yarn add tailwindcss
Combative Capuchin

Rückenwindknoten

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"
Daneric

Rückenwind JS

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

Ähnliche Antworten wie “Rückenwind JS”

Fragen ähnlich wie “Rückenwind JS”

Weitere verwandte Antworten zu “Rückenwind JS” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen