laravel-frontend-presets/tailwindcss
关于
适用于 Laravel Framework 的 Tailwind CSS 前端预设
网站与应用实测星标增长
- 24小时
- 0
- 7天
- -2
- 15天
- -3
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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
- Fresh install Laravel >= 7.0 and
cdto your app. - 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
- Use
php artisan ui tailwindcssfor the basic Tailwind CSS preset npm install && npm run devphp artisan serve(or equivalent) to run server and test preset.
b. For Presets with Authentication
- Use
php artisan ui tailwindcss --authfor 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 inroutes/web.php) npm install && npm run dev- Configure your favorite database (mysql, sqlite etc.)
php artisan migrateto create basic user tables.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






探索相关项目
加载中…