diff --git a/assets/styles/app.css b/assets/styles/app.css index b5c61c9..46885ee 100755 --- a/assets/styles/app.css +++ b/assets/styles/app.css @@ -1,3 +1,25 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; +@import 'tailwindcss'; + +@plugin 'flowbite/plugin'; + +@source '../../vendor/tales-from-a-dev/flowbite-bundle/templates/**/*.html.twig'; + +@custom-variant dark (@media (prefers-color-scheme: dark)); + +/* + The default border color has changed to `currentColor` in Tailwind CSS v4, + so we've added these compatibility styles to make sure everything still + looks the same as it did with Tailwind CSS v3. + + If we ever want to remove these styles, we need to add an explicit border + color utility to any element that depends on these defaults. +*/ +@layer base { + *, + ::after, + ::before, + ::backdrop, + ::file-selector-button { + border-color: var(--color-gray-200, currentColor); + } +} diff --git a/config/packages/symfonycasts_tailwind.yaml b/config/packages/symfonycasts_tailwind.yaml index ef4e3b9..46640a0 100644 --- a/config/packages/symfonycasts_tailwind.yaml +++ b/config/packages/symfonycasts_tailwind.yaml @@ -1,2 +1,2 @@ symfonycasts_tailwind: - binary_version: 'v3.4.17' \ No newline at end of file + binary_version: 'v4.0.7' \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js deleted file mode 100755 index 64c0637..0000000 --- a/tailwind.config.js +++ /dev/null @@ -1,15 +0,0 @@ -/** @type {import('tailwindcss').Config} */ -module.exports = { - content: [ - "./vendor/tales-from-a-dev/flowbite-bundle/templates/**/*.html.twig", - "./assets/**/*.js", - "./templates/**/*.html.twig", - ], - theme: { - extend: {}, - }, - plugins: [ - require('flowbite/plugin') - ], - darkMode: 'media', -} diff --git a/templates/admin/user_edit.html.twig b/templates/admin/user_edit.html.twig index 138f247..3936c71 100755 --- a/templates/admin/user_edit.html.twig +++ b/templates/admin/user_edit.html.twig @@ -2,7 +2,7 @@ {% block body %}