Added Support for TailwindCSS

This commit is contained in:
Jan_Hill 2024-12-19 07:14:47 +01:00
parent dc04959a56
commit 9233b5ea1b
5 changed files with 3151 additions and 19 deletions

3125
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -9,9 +9,10 @@
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"axios": "^1.7.4", "axios": "^1.7.4",
"concurrently": "^9.0.1", "concurrently": "^9.0.1",
"flowbite": "^2.5.2",
"laravel-vite-plugin": "^1.0", "laravel-vite-plugin": "^1.0",
"postcss": "^8.4.47", "postcss": "^8.4.49",
"tailwindcss": "^3.4.13", "tailwindcss": "^3.4.17",
"vite": "^6.0" "vite": "^6.0"
} }
} }

View File

@ -1 +1 @@
import './bootstrap'; import 'flowbite';

View File

@ -1 +1,12 @@
<!DOCTYPE html>
<html lang="en" class="bg-slate-900">
<head>
@vite(['resources/css/app.css','resources/js/app.js'])
<title>NCORE - Authentication</title>
</head>
<body>
</body>
</html>

View File

@ -1,20 +1,15 @@
import defaultTheme from 'tailwindcss/defaultTheme'; module.exports = {
/** @type {import('tailwindcss').Config} */
export default {
content: [ content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php', "./resources/**/*.blade.php",
'./storage/framework/views/*.php', "./resources/**/*.js",
'./resources/**/*.blade.php', "./resources/**/*.vue",
'./resources/**/*.js', "./node_modules/flowbite/**/*.js"
'./resources/**/*.vue',
], ],
theme: { theme: {
extend: { extend: {},
fontFamily: {
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
},
},
}, },
plugins: [], plugins: [
}; require('flowbite/plugin')
],
darkMode: 'class',
}