Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Commit 31cf24d

Browse files
committed
Update tailwindcss config & font
1 parent bae5ecf commit 31cf24d

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/Preset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected static function scaffoldAuth()
101101

102102
file_put_contents(
103103
base_path('routes/web.php'),
104-
"Auth::routes();\n\nRoute::get('/home', [\App\Http\Controllers\HomeController::class, 'index'])->name('home');\n\n",
104+
"\n\nAuth::routes();\n\nRoute::get('/home', [\App\Http\Controllers\HomeController::class, 'index'])->name('home');\n\n",
105105
FILE_APPEND
106106
);
107107
}

stubs/resources/views/layouts/app.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
1414

1515
<!-- Fonts -->
16-
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
16+
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900&display=swap" rel="stylesheet">
1717

1818
<!-- Scripts -->
1919
<script src="{{ asset('js/app.js') }}" defer></script>
2020
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.min.js" defer></script>
2121
</head>
22-
<body class="bg-gray-100 font-nunito">
22+
<body class="bg-gray-100 font-roboto">
2323
<div id="app">
2424
<nav x-data="{ dropdownOpen: false }" class="bg-white shadow-sm">
2525
<div class="container flex justify-between items-center mx-auto px-6 py-4">

stubs/tailwind.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ module.exports = {
1010
"resources/**/*.vue",
1111
"resources/**/*.twig"
1212
],
13+
darkMode: false, // or 'media' or 'class'
1314
theme: {
1415
extend: {
1516
fontFamily: {
16-
"nunito": ["Nunito"],
17+
"roboto": ["Roboto"],
1718
},
1819
}
1920
},
20-
variants: {},
21+
variants: {
22+
extend: {},
23+
},
2124
plugins: [
2225
require("@tailwindcss/forms")
2326
]

0 commit comments

Comments
 (0)