hemantwasthere / stellar-store

A comprehensive e-commerce app featuring carts, filters, Stripe โ€“ all managed via a Next.js 13 dashboard, powered by its API directory. ๐Ÿš€
https://stellarstore.vercel.app/
4 stars 2 forks source link

Add the dark and light theme functionality using next-themes #1

Open hemantwasthere opened 1 year ago

hemantwasthere commented 1 year ago

You can add the dark and light theme functionality using next-themes and shadcn/ui

We'll get our CSS variables in the globals.css file after setting up the shadcn/ui

You can also refer to this repo to see how we're implementing light & dark theme functionality repo: https://github.com/hemantwasthere/stellar-admin

ivanosquis10 commented 1 year ago

Hi friend, how's it going?? I wanted to try to solve the problem but I got an error from the ".env" and I saw that there is an "admin" version, I got the API from there but I get errors and the app does not load. I don't know if you could tell me how the api url should look or something for it to work, and to be able to implement the dark mode

IrfanshaikH-7 commented 1 year ago

The application has a dashboard backend ! Which Generates API for frontend !

hemantwasthere commented 1 year ago

Hi friend, how's it going?? I wanted to try to solve the problem but I got an error from the ".env" and I saw that there is an "admin" version, I got the API from there but I get errors and the app does not load. I don't know if you could tell me how the api url should look or something for it to work, and to be able to implement the dark mode

you have to get yourself and api url from https://stellaradmin.vercel.app/ and add this url in the .env of stellar store project image

like this and don't copy the URL from the above image :)

ivanosquis10 commented 1 year ago

Yes that's what I did, but it didn't work๐Ÿ˜”

hemantwasthere commented 1 year ago

It should work bro, are you free to connect now?

ivanosquis10 commented 1 year ago

This is the message I get, it's weird lol

image

hemantwasthere commented 1 year ago

Strange, everything is working fine by my side