Next.js Discord

Discord Forum

Shadcn button is still black in dark mode

Unanswered
Hackberry nipple gall parasitoid posted this in #help-forum
Open in Discord
Hackberry nipple gall parasitoidOP
In light mode the button stays the same and in dark mode it stays same in BG black and text white which is hard for dark mode users to read. I tried to google around but couldn't find any solutions and I tried to add dark:bg-white in default variant and still it didnt work

13 Replies

Hackberry nipple gall parasitoidOP
Default, I specified nothing
@@ts-ignore what is the `variant` of the button?
Hackberry nipple gall parasitoidOP
<div className="w-full flex justify-center">
                <Button type="submit" disabled={isPending} className="w-full py-2">
                    {isPending ? "Submitting" : "Submit"}
                </Button>
            </div>
Hackberry nipple gall parasitoidOP
And just for clarification I didnt implement a theme toggled just theme of users device
did you follow the installation insturctions?
Hackberry nipple gall parasitoidOP
For what?
I actually did proper installation from initializing shadcn to installing buttons and other components
can you create a minimal reproduction repo so we can test
Hackberry nipple gall parasitoidOP
OK, I ll share it in few moments
Hackberry nipple gall parasitoidOP
Hackberry nipple gall parasitoidOP
@@ts-ignore hey sorry for the ping, but any updates ?
I didn't get time to test it out
@@ts-ignore I didn't get time to test it out
Hackberry nipple gall parasitoidOP
nw, I used theme toggler and now it seems to work