Skip to content

revickulous2001/phxtailwindui-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phxtailwindui

Get tailwind UI in phoenix

Steps Taken:

  • mix phx.new phxtailwindui
  • cd assets
  • npm install tailwindcss @tailwindcss/ui --save-dev
  • npm install postcss-loader --save-dev
  • Added assets/postcss.config.js:
module.exports = {
    plugins: [
      require('tailwindcss'),
      require('@tailwindcss/ui'),
      require('autoprefixer')
    ]
  }
  • Replace assets/webpack.config.js use section below test: /\.css$/, with:
          MiniCssExtractPlugin.loader,
          { loader: 'css-loader', options: { importLoaders: 1 } },
          'postcss-loader'
        ]
  • Add tailwind directives to assets/css/app.css:
@tailwind base;
@tailwind components;
@tailwind utilities;

About

Get tailwind UI in phoenix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 63.7%
  • CSS 23.0%
  • JavaScript 8.5%
  • HTML 4.8%