Dark Mode Cards - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Dark Mode Cards</title> <style> body { font-family: 'Arial', sans-serif; background-color: #121212; color: white; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 0; padding: 20px; } .dark-card { background: #1e1e1e; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); width: 300px; padding: 20px; transition: transform 0.3s ease, box-shadow 0.3s ease; } .dark-card:hover { transform: translateY(-10px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6); } .dark-card h3 { margin: 0 0 10px; font-size: 24px; } .dark-card p { color: #aaa; font-size: 16px; } </style> </head> <body> <!-- Dark Mode Card --> <div class="dark-card"> <h3>Dark Mode Card</h3> <p>This is an example of a card styled with Dark Mode.</p> </div> </body> </html>