Whenever switching to dark mode, it's a mix between the light theme and dark mode for payload.
Light theme looks perfectly fine...
Oh and good to mention, console doesn't show a thing, no errors loading anything on the network tab either.
Not sure buy maybe we also have to load in the css in withPayload as it accepts a cssConfig aswell
Are you loading your own css? Is it overwriting payloads css?
For me both light and dark are not working properly, not loading any custom
Does the demo load properly for you?
https://demo.payloadcms.com/admin/accountye it does
Yup!
Only css im using is tailwind
So let me try to disable that.
Yup! it's tailwind!
🙂
you're using Tailwind as well?
Okay, managed to fix it. I was trying to make the admin page work for the
pagesdirectory instead of the
appdirectory. The
pagesdirectory always loads the
_app.tsxfile and the stylesheets registered in there.
Apparently you can use both the
appdirectory and the
pagesdirectory along each other, so moving the payload pages back to the
appdirectory seems to work just fine 🙂
Ah yes, i am using tailwind aswell. Created a new nextjs with tailwind flag
I am on the same boat guys here.
Switching the operating system (mac os) to the dark mode make a lot of page elements disappear.
How did you manage to solve this?
Star
Discord
online
Get dedicated engineering support directly from the Payload team.