satnaing / shadcn-admin

Admin Dashboard UI built with Shadcn and Vite.
https://shadcn-admin.netlify.app/
MIT License
902 stars 185 forks source link

Update light/dark theme button to light/dark/system theme dropdown #29 #30

Closed RachanaRane closed 2 months ago

RachanaRane commented 2 months ago

This PR introduces a theme dropdown menu to replace the existing theme button. The dropdown allows users to select between Light, Dark, and System theme options. The following updates have been made:

  1. Theme Dropdown Menu: Replaces the previous theme button with a dropdown menu.
  2. Icons:
    • Sun icon for Light theme
    • Moon icon for Dark theme
  3. Functionality:
    • Light Mode: Switches to light mode and closes the dropdown upon selection.
    • Dark Mode: Switches to dark mode and closes the dropdown upon selection.
    • System Mode: Adapts to the system's theme settings.
  4. Dropdown Behavior: The dropdown closes automatically after a selection is made.

Changes Made

Related Issues

Screenshots

image image image

Testing

Additional Notes

Thank you for reviewing this PR!


Author: Rachana Rane Date: 27-08-24

satnaing commented 2 months ago

This issue has been closed due to inactivity. If you believe this was done by mistake or would like to continue the discussion, please feel free to leave a comment or reopen it. Thank you for your understanding!