Package

Laravel Frontend Presets Tailwindcss

Laravel frontend preset for Tailwind CSS

Package

laravel-frontend-presets/tailwindcss

View on GitHub →

Laravel 7.0+ Frontend preset for Tailwind CSS

A Laravel front-end scaffolding preset for Tailwind CSS - a Utility-First CSS Framework for Rapid UI Development.

Usage

  1. Fresh install Laravel >= 7.0 and cd to your app.
  2. Install this preset via composer require laravel-frontend-presets/tailwindcss --dev. Laravel will automatically discover this package. No need to register the service provider.

a. For Presets without Authentication

  1. Use php artisan ui tailwindcss for the basic Tailwind CSS preset
  2. npm install && npm run dev
  3. php artisan serve (or equivalent) to run server and test preset.

b. For Presets with Authentication

  1. Use php artisan ui tailwindcss --auth for the basic preset, auth route entry, and Tailwind CSS auth views in one go. (NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries in routes/web.php)
  2. npm install && npm run dev
  3. Configure your favorite database (mysql, sqlite etc.)
  4. php artisan migrate to create basic user tables.
  5. php artisan serve (or equivalent) to run server and test preset.

Config

The default tailwind.config.js configuration file included by this package simply uses the config from the Tailwind vendor files. Should you wish to make changes, you should remove the file and run node_modules/.bin/tailwind init, which will generate a fresh configuration file for you, which you are free to change to suit your needs.

Add a new i18n string in the resources/lang/XX/pagination.php file for each language that your app uses:

'previous' => '« Previous',
'next' => 'Next »',
'goto_page' => 'Goto page #:page', // Add this line

This should help with accessibility

<li>
    <a href="https://github.com/laravel-frontend-presets/tailwindcss/blob/main/URL?page=2" class="..."
       aria-label="Goto page #2"
    >
        2
    </a>
</li>
Pagination

Laravel now supports Tailwind CSS pagination directly. If you would like to use these views in your app, you can refer to docs.

Screenshots

Laravel Frontend Presets Tailwindcss Related Articles

Tailwind CSS 2.2 is Now Here With a New CLI and JIT Features image

Tailwind CSS 2.2 is Now Here With a New CLI and JIT Features

Read article
Tailwind CSS v2.0 is now released image

Tailwind CSS v2.0 is now released

Read article
Tailwind 1.0.0 Beta Release image

Tailwind 1.0.0 Beta Release

Read article
Laravel 5.5 Adds Frontend Presets image

Laravel 5.5 Adds Frontend Presets

Read article
Preset – A command line tool for applying existing presets to your freshly scaffolded projects image

Preset – A command line tool for applying existing presets to your freshly scaffolded projects

Read article
Tailwind 1.2 Brings Support for CSS Grid, Transitions, and Transforms image

Tailwind 1.2 Brings Support for CSS Grid, Transitions, and Transforms

Read article

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

Let your users buy domains without leaving your app

If your Laravel app gives users a site, a storefront, or a workspace, they’ll eventually want their own domain. The name.com API lets them search, register, and connect one without leaving your product. It’s a clean REST API, so Laravel’s HTTP client is all you need.

Let your users buy domains without leaving your app

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing