@mdkva/themekit
v1.4.0
Published
MDKVA ThemeKit provides simple, fast, and developer-friendly utilities for theme switching — including dark mode, light mode, and system-mode detection — designed for modern web applications.
Readme
MDKVA ThemeKit — Smart Theme & Mode API
Overview
ThemeKit is a professional-grade utility designed for managing UI visual states and theme transitions. It provides a dependency-free API to handle light and dark mode logic, custom color themes, and environment-aware styling with technical precision.
Available Methods
ThemeKit.setTheme(theme): Applies a specific visual theme to the application.- Supported Themes:
light,dark,blue,gold,red,green,pink,sky,orange,yellow,indigo,purple. ThemeKit.toggleTheme(): Cycles through all available themes in a sequential loop.ThemeKit.getTheme(): Retrieves the active theme by checking saved preferences, the DOM state, or system defaults.ThemeKit.systemPrefers(): Detects the OS-level preference for light or dark mode.ThemeKit.timePrefers(): Automatically suggests a theme based on the time of day (Light: 6 AM – 5:59 PM; Dark: 6 PM – 5:59 AM).
Technical Standards
- Dependency-Free: A lightweight utility that operates without external libraries or complex logic tangles.
- Environment Aware: Capable of synchronizing application appearance with both system settings and real-world time.
- Storage Consistency: Ensures theme persistence across sessions by managing local state and DOM attributes.
- Performance: Optimized for fast theme switching with minimal impact on UI rendering.
Support & Inquiry
For inquiries and feedback, please reach out via:
- Official Site: MDKVA.com
- Direct Email: [email protected]
- Personal Blog: MDanyalKayani.com
"Simplifying Life with Human-Centered Tech." — Danyal
