Safvan-tsy / blogx

📚Blogx is an open-source, self-hosting blogging platform where a single admin can manage blogs, offering visitors access to blog lists, individual posts, and the admin's profile, with support for both dark and light themes. Designed for ease of self-hosting, enabling users to fork the repository and set up their personal blogging site .
https://blogx.safvan.dev/
Apache License 2.0
0 stars 3 forks source link

persist the selected theme #26

Open Safvan-tsy opened 4 months ago

Safvan-tsy commented 4 months ago

Current behavior Currently by default we serve the system theme. user can switch between dark and cupcake theme .

Problem Suppose the users system default theme is dark and switched it to cupcake in our website but if reloaded the website it switch back to the default dark theme. Screencast from 28-04-24 08:20:46 PM IST.webm

Expected solution Users choice should be stored.

We are using daisyui cupcake , dark themes as light and dark theme for out website. I suggest using theme-change, so user can switch themes and save selected theme in local storage.

Nitin1-singh commented 3 months ago

/ attempt persist the selected theme #26