#mode toggle

9 messages · Page 1 of 1 (latest)

noble topaz
#

I want to add mode toggle. However when I install the dependencies like the drop-down-menu and button from shadcn, the website's UI get messy. Any solution please?

vagrant juniper
# noble topaz I want to add mode toggle. However when I install the dependencies like the drop...

Check if you still have Tailwind classes. Shadcn overwrites tailwind.config.ts, so it might have removed your styles. You can check out full file here: https://github.com/adrianhajdin/portfolio/blob/main/tailwind.config.ts

GitHub

Modern & Minimal JS Mastery Portfolio. Contribute to adrianhajdin/portfolio development by creating an account on GitHub.

noble topaz
vagrant juniper
noble topaz
vagrant juniper
noble topaz
#

Thanks a lot

vagrant juniper
# noble topaz sorry. here: https://github.com/moutaouakkil/portfolio

You applied the "heading" class to testimonials, but it was missing from you /app/globals.css

The text colours, and styling in general will require some work. You will have to go through all the elements which aren't looking good, and add default and dark: classes to classNames - https://tailwindcss.com/docs/dark-mode
In the original project there is only a dark theme, so the classes are missing the dark: prefix, since they don't need it. You can add it where it is needed, and provide additional styles for the default (light) mode.

I added examples of the above in /app/page.tsx and /components/Hero.tsx and created a pull request, you can check it out here - https://github.com/moutaouakkil/portfolio/pull/1

noble topaz
#

Thanks a lot, I will go through everything