A named colors approach for color palettes from Color And Fonts by Michael Andreuzza to be used with TailwindCSS
// tailwind.config.js
A named colors approach for color palettes from Color And Fonts by Michael Andreuzza to be used with TailwindCSS
// tailwind.config.js
module.exports = { | |
theme: { | |
extend: { | |
transitionTimingFunction: { | |
'in-cubic': 'cubic-bezier(0.55, 0.055, 0.675, 0.19)', | |
'out-cubic': 'cubic-bezier(0.215, 0.61, 0.355, 1)', | |
'in-out-cubic': 'cubic-bezier(0.645, 0.045, 0.355, 1)', | |
'in-circ': 'cubic-bezier(0.6, 0.04, 0.98, 0.335)', | |
'out-circ': 'cubic-bezier(0.075, 0.82, 0.165, 1)', | |
'in-out-circ': 'cubic-bezier(0.785, 0.135, 0.15, 0.86)', |
Route::get('/', function (\Illuminate\Http\Request $request) { | |
$initialSearch = $request->query('search', ''); | |
$userQuery = User::query() | |
->when($request->filled('search'),function($query) use ($initialSearch){ | |
$query->where('name','LIKE','%'.$initialSearch.'%') | |
->orWhere('email','LIKE','%'.$initialSearch.'%'); | |
}); |