#Trouble with Tailwind V4 & Shadcn Components on a custom field

3 messages · Page 1 of 1 (latest)

random flame
#

I added the below content to my custom.scss file to attempt to fix it, it did change some thing and it looks better, but the correct styles are still not applying

@layer theme, base, components, utilities;

/* Import the Tailwind theme styles */
@import "tailwindcss/theme.css" layer(theme);

/* Skip the preflight reset to avoid conflicts with Payload's admin styles */
/* @import 'tailwindcss/preflight.css' layer(base); */

/* Import Tailwind utilities */
@import "tailwindcss/utilities.css" layer(utilities);

/* Support Payload’s dark mode toggle by adding a custom variant */
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
brave flaxBOT
random flame
#

I just opted to use Payload primitives to build my component, better anyway so it matches the rest of the admin dashboard.