Skip to content

feat: Dynamic Role-Based Dashboard Themes (#3875)#3880

Open
anshika1179 wants to merge 1 commit into
Premshaw23:masterfrom
anshika1179:feature/dynamic-dashboard-themes-3875
Open

feat: Dynamic Role-Based Dashboard Themes (#3875)#3880
anshika1179 wants to merge 1 commit into
Premshaw23:masterfrom
anshika1179:feature/dynamic-dashboard-themes-3875

Conversation

@anshika1179

Copy link
Copy Markdown
Contributor

Description

This PR addresses issue #3875 by introducing Dynamic Role-Based Dashboard Themes.
It implements a new RoleThemeProvider wrapper (integrated within AllProviders) that hooks into useAuth to determine the user's role and automatically applies a tailored data-role-theme attribute to the root HTML document.

CSS variables in globals.css have been seamlessly updated to respond to this data attribute, ensuring that themes instantly switch:

  • Admin: A sleek, professional corporate-blue theme.
  • Teacher: A calming professional teal.
  • Super-Admin: An elegant gold/dark theme.
  • Student: Retains the vibrant, gamified purple Learnova aesthetic.

Fixes #3875

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Interactive Seating Chart Dashboard

1 participant