Comprehensive Test Suite
This test suite provides comprehensive testing for all BlackMagic framework settings and configurations. Each test file focuses on specific functionality to help you validate that your dark mode implementation works correctly across different scenarios.
The BlackMagic framework supports the following configuration options:
themeClass - CSS class to toggle instead of dynamic color conversionfactor - Intensity of color changes (0.1 = subtle, 0.8 = dramatic)backgroundColor - Custom dark mode background colorautoSwitch - Automatically apply saved theme on page loadcookieDuration - How long to remember user's theme preferencecookieName - Custom cookie name for theme storageComplete testing environment with extensive UI elements, colors, and interactive components to thoroughly test the framework's color conversion capabilities.
Tests using predefined CSS classes instead of dynamic color conversion. Perfect for testing when you have existing dark mode CSS.
Tests dramatic color changes with high factor values. See how extreme color shifts affect readability and visual appeal.
Tests subtle color adjustments with low factor values. Ideal for gentle theme changes that maintain high readability.
Tests manual theme control without automatic application of saved preferences. Useful for custom theme logic implementation.
Tests various dark mode background colors to find the perfect tone. Includes pure black, grays, and colored dark themes.
Tests different cookie expiration times from minutes to years. Verify theme persistence across browser sessions.
Debug tool for testing theme persistence with real-time cookie and localStorage monitoring. Perfect for troubleshooting storage issues.
Simple implementation example showing minimal setup and basic usage. Great starting point for new implementations.