1. Quick Start
Zero Dependencies
Drop aero-ui.css into any HTML, React, or Vite project and add class="aero-theme" to your <body> for the sky & aurora background.
<link rel="stylesheet" href="aero-ui.css" />
<body class="aero-theme">
<button class="btn btn-primary">Glossy Button</button>
</body>
Vista Glass Cards
Frosted Glass Card
Combine .card with an inner recessed .aero-box for profile bios, shoutbox feeds, or post containers.
<div class="card">
<h3 class="card-title">Frosted Glass Card</h3>
<div class="aero-box">
<p>Recessed content container inside a glass card.</p>
</div>
<div style="display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px;">
<button class="btn btn-sm">Cancel</button>
<button class="btn btn-success btn-sm">Publish</button>
</div>
</div>
Badges & Water-Droplet Pills
Default Tag
Aqua Tag
Online
Frutiger Aero
<span class="badge">Default Tag</span>
<span class="badge badge-primary">Aqua Tag</span>
<span class="badge badge-success">Online</span>
<span class="badge">
<span class="badge-dot"></span>
Frutiger Aero
</span>
Inputs, File Pickers & Drop Zones
+
Drag & drop an image here, or browse
<input type="text" class="input" placeholder="Search or enter text..." />
<textarea class="textarea" rows="2" placeholder="Write a message..."></textarea>
<input type="file" class="file-input" />
<label class="drop-zone">
<span>Drop an image here or click to browse</span>
<input type="file" hidden />
</label>
How to Configure Drag & Drop
Include aero-ui.css and aero-ui.js, then add the data-aero-dropzone attribute to any .drop-zone container.
1. HTML Markup
<div class="drop-zone" data-aero-dropzone>
<input type="file" name="imageFile" accept="image/*" hidden>
<div class="drop-zone-prompt">
<span class="orb">+</span>
<span>Drag & drop an image here, or <u>browse</u></span>
</div>
<div class="drop-zone-preview" style="display: none; flex-direction: column; align-items: center; gap: 8px;">
<img src="" alt="Preview" style="max-height: 140px; border-radius: 8px;">
<button type="button" class="btn btn-error btn-xs" data-dropzone-clear>Remove</button>
</div>
</div>
2. Include the Helper Script (Before </body>)
<script src="js/aero-ui.js"></script>
3. Optional: Full
aero-ui.js Source
document.addEventListener('DOMContentLoaded', () => {
document.querySelectorAll('[data-aero-dropzone]').forEach((zone) => {
const input = zone.querySelector('input[type="file"]');
const promptEl = zone.querySelector('.drop-zone-prompt');
const previewWrap = zone.querySelector('.drop-zone-preview');
const previewImg = zone.querySelector('.drop-zone-preview img');
const clearBtn = zone.querySelector('[data-dropzone-clear]');
if (!input) return;
function handleFile(file) {
if (!file) return;
if (previewImg && file.type.startsWith('image/')) {
const reader = new FileReader();
reader.onload = (e) => {
previewImg.src = e.target.result;
if (promptEl) promptEl.style.display = 'none';
if (previewWrap) previewWrap.style.display = 'flex';
};
reader.readAsDataURL(file);
}
}
zone.addEventListener('click', (e) => {
if (clearBtn && clearBtn.contains(e.target)) return;
input.click();
});
input.addEventListener('change', () => {
if (input.files && input.files.length > 0) handleFile(input.files.item(0));
});
zone.addEventListener('dragover', (e) => {
e.preventDefault();
zone.classList.add('drag-over');
});
zone.addEventListener('dragleave', () => zone.classList.remove('drag-over'));
zone.addEventListener('drop', (e) => {
e.preventDefault();
zone.classList.remove('drag-over');
if (e.dataTransfer.files && e.dataTransfer.files.length > 0) {
input.files = e.dataTransfer.files;
handleFile(e.dataTransfer.files.item(0));
}
});
if (clearBtn) {
clearBtn.addEventListener('click', (e) => {
e.stopPropagation();
input.value = '';
if (previewImg) previewImg.src = '';
if (previewWrap) previewWrap.style.display = 'none';
if (promptEl) promptEl.style.display = 'flex';
});
}
});
});
Media Player & Equalizer Widget
Aqua Horizon
Windows Media 2007
▶
2:14
<div class="media-player">
<div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
<div>
<strong>Aqua Horizon</strong>
<div>Windows Media 2007</div>
</div>
<span class="eq-bars"><i></i><i></i><i></i></span>
</div>
<div style="display: flex; align-items: center; gap: 10px;">
<span class="orb" style="background: var(--aero-gel-blue); color: #fff;">▶</span>
<div class="progress-track">
<div class="progress-fill" style="width: 62%;"></div>
</div>
</div>
</div>