Dark Mode Modal Component
A simple and responsive dark mode modal component designed for reading and content consumption. It features a complementary color scheme and minimal layout, suitable for blog or content-driven websites.
HTML Code
<div class="fixed inset-0 z-50 flex items-center justify-center bg-gray-800 bg-opacity-75 dark:bg-gray-900" role="dialog" aria-modal="true">
<div class="bg-gray-900 rounded-lg shadow-lg max-w-sm w-full p-6">
<button class="absolute top-3 right-3 text-gray-500 hover:text-gray-300 dark:text-gray-400 dark:hover:text-gray-200" aria-label="Close">×</button>
<h2 class="text-xl text-white font-semibold mb-4">Blog Post Title</h2>
<img class="w-full h-32 object-cover rounded-lg mb-4" src="https://picsum.photos/400/200" alt="Random Image">
<p class="text-gray-300 dark:text-gray-200 mb-4">This is a simple modal component designed for displaying content in dark mode. It is responsive and features a clean layout that aids in reading.</p>
<div class="flex items-center">
<img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/men/32.jpg" alt="User Avatar">
<div>
<p class="text-sm text-gray-400 dark:text-gray-300">Posted by John Doe</p>
<p class="text-xs text-gray-500 dark:text-gray-400">3 minutes ago</p>
</div>
</div>
</div>
</div>
Related Components
Memphis_Dating_Modal
A complex, responsive modal component designed in a Memphis/Retro style for dating and social platforms, featuring bold colors, geometric shapes, interactive elements, and dark mode support.
Complex Earthy Business Modal with Microinteractions
A complex, responsive, earth-toned Modal Component with microinteractions, suitable for business websites, supporting dark mode.
Cyberpunk Learning Modal
A responsive, cyberpunk-themed modal component for educational platforms, featuring dark backgrounds, neon accents, and interactive elements. Supports dark mode.