See the Pen Tailwind Menu by Zeeshan Hayat (@zeenux) on CodePen.
Discover the latest in technology news and insights at Code Chronicles - your go-to source for coding tutorials, tech reviews, and more
Tailwind with Laravel 8
Install Tailwind in Laravel 8
Install Laravel
laravel new tailwindcss-demo
Fetch Dependencies
npm install
Install tailwindcss
This will fetch the required dependencies and will install tailwindcss on your project
npm install tailwindcss
Add Tailwindcss
Add the following to resources/css/app.css
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
Create your tailwindcss config file
npx tailwindcss init
Add the following to webpack.mix.js file
mix.js('resources/js/app.js', 'public/js')
.postCss('resources/css/app.css', 'public/css', [
require('tailwindcss'),
]);
Compile
npm run dev
Add the style sheet to your blade file
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
That's it. Now you can start using tailwindcss in your laravel blade files
Subscribe to:
Posts (Atom)
Running Drupal in Docker
I will assume that you have already installed docker. If you haven't installed docker please visit https://www.docker.com/ to download a...
-
Here is a simple way to load and Update data using Datagridview in C#. 1) Drag a datagridview on your form. 2) Drag two buttons one butt...
-
At the top of your page add the following. <?php error_reporting ( E_ALL ); ini_set ( 'display_errors' , 1 ); ?> ...
-
Summary Statistics are used to summarize information regarding a sample. Important tools in Summary Statistics are Mean Variance Eff...