• Provider component for managing application theme state

    Features:

    • Persistent theme storage in localStorage
    • System theme preference detection
    • Smooth transition animations
    • Automatic class management

    Theme Management:

    • Detects and applies system preference
    • Persists user preference
    • Handles theme transitions
    • Manages dark mode classes

    Parameters

    • props: { children: ReactNode }

      Component properties

      • children: ReactNode

        Child components to wrap with theme context

    Returns Element

    The theme provider component