• Stars
    star
    1,147
  • Rank 40,499 (Top 0.9 %)
  • Language Blade
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Tailwind CSS frontend preset for the Laravel Framework

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

Welcome

Register

Login

Reset Password

Dashboard

Verify

More Repositories

1

tall

A TALL (Tailwind CSS, Alpine.js, Laravel and Livewire) Preset for Laravel
Blade
2,414
star
2

material-dashboard

Material Frontend Preset For Laravel Framework 9.x and Up
CSS
259
star
3

argon

Argon Frontend Preset For Laravel Framework 9.x and Up
HTML
230
star
4

now-ui-dashboard

CSS
226
star
5

bulma

Bulma Frontend Preset For Laravel Framework 5.5 and Up
HTML
171
star
6

inertiajs

An Inertia.js frontend preset for the Laravel Framework
PHP
145
star
7

black-dashboard

Black Frontend Preset For Laravel Framework 9.x and Up
CSS
85
star
8

laravel-vuetify

A Vuetify frontend preset for the Laravel Framework
HTML
80
star
9

zurb-foundation

Zurb Foundation Frontend Preset For Laravel Framework 5.5 and Up
SCSS
52
star
10

paper-dashboard

CSS
49
star
11

white-dashboard

CSS
48
star
12

uikit3

Laravel 5.5+ Front-end preset for UIKit 3.
HTML
44
star
13

laravel-preset-bootstrap4

HTML
39
star
14

light-bootstrap-dashboard

Blade
34
star
15

skeleton

A skeleton repository to help users to create their own presets.
PHP
13
star
16

stimulus

Laravel 5.5+ frontend preset for Stimulus
PHP
10
star
17

tachyons

Laravel 5.5.x front-end preset for Tachyons scaffolding
HTML
8
star
18

tabler

Laravel 7.x Front-end preset for Tabler UI
HTML
7
star
19

laravel-frontend-presets.github.io

The Laravel Frontend Presets' Website
HTML
7
star
20

w3css

Laravel 5.5.x Front-end Preset For W3CSS
HTML
4
star
21

karma-eslint

Laravel Preset for using Karma, ESLint (Airbnb), along with your built in laravel-mix & Vue.js setup, to get a working unit testing & code coverage for your JS assets.
JavaScript
3
star
22

internals

For Internal Discussion
2
star
23

primercss

Laravel 5.5.x front-end preset for Primer CSS scaffolding
PHP
1
star