F
Filament2mo ago
Hasith

Form css not working

I created a fresh laravel app using Jetstream as starter kit and then installed MaryUi Library. After that i installed theFilament Form package for use it for my forms. Everything mostly working fine. But i can not see Validation messages in red color. Also Input fields border not showing any color like usual filament inputs. This is my tailwind.config
import preset from "./vendor/filament/support/tailwind.config.preset";
import defaultTheme from "tailwindcss/defaultTheme";
import forms from "@tailwindcss/forms";
import typography from "@tailwindcss/typography";

/** @type {import('tailwindcss').Config} */
export default {
presets: [preset],
content: [
"./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php",
"./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php",
"./vendor/laravel/jetstream/**/*.blade.php",
"./storage/framework/views/*.php",
"./resources/views/**/*.blade.php",
"./vendor/robsontenorio/mary/src/View/Components/**/*.php",
"./app/Filament/**/*.php",
"./resources/views/filament/**/*.blade.php",
"./vendor/filament/**/*.blade.php",
],

darkMode: "class",

theme: {
extend: {
fontFamily: {
sans: ["Figtree", ...defaultTheme.fontFamily.sans],
},
},
},

plugins: [forms, typography, require("daisyui")],
};
import preset from "./vendor/filament/support/tailwind.config.preset";
import defaultTheme from "tailwindcss/defaultTheme";
import forms from "@tailwindcss/forms";
import typography from "@tailwindcss/typography";

/** @type {import('tailwindcss').Config} */
export default {
presets: [preset],
content: [
"./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php",
"./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php",
"./vendor/laravel/jetstream/**/*.blade.php",
"./storage/framework/views/*.php",
"./resources/views/**/*.blade.php",
"./vendor/robsontenorio/mary/src/View/Components/**/*.php",
"./app/Filament/**/*.php",
"./resources/views/filament/**/*.blade.php",
"./vendor/filament/**/*.blade.php",
],

darkMode: "class",

theme: {
extend: {
fontFamily: {
sans: ["Figtree", ...defaultTheme.fontFamily.sans],
},
},
},

plugins: [forms, typography, require("daisyui")],
};
No description
Solution:
TextInput::make('title')->rules(['required']) use this method to avoid browser validation messages........
Jump to solution
1 Reply
Solution
Hasith
Hasith2mo ago
TextInput::make('title')->rules(['required']) use this method to avoid browser validation messages.....