Theme builder
Design a theme for the AnyDrop interface with a live preview. Change the controls, then press Copy CSS and paste the block into your stylesheet. The theme is only CSS variables; see Themes for what each one does.
How to use the result
- Give your uploader element the class
anydrop, or change the selector in the copied block to your own. - Put the copied CSS after the AnyDrop stylesheet (
style.css), so it wins over the defaults. - If you picked a preset or a layout, copy the options and pass them to the constructor, and import the preset file (see Themes):
js
new AnyDrop('#uploader', { url: '/upload', themePreset: 'glass', layout: 'compact' });The copied block only has the variables you changed. When you edit colours in dark mode, it also has a dark block, which applies when the page prefers a dark scheme or the element has data-ad-theme="dark".
The builder warns when a text and background pair is below the 4.5:1 contrast that WCAG AA asks for.