<div class="veylo-note">Info</div>
<div class="veylo-note ok">Saved</div>
<div class="veylo-note no">Careful</div>
<div class="veylo-note err">Failed</div>A boxed message with a drawn icon (info, tick, exclamation or cross). Add ok, no (warning) or err. Put a button.veylo-x with data-veylo-dismiss first inside it to make it dismissible (Buttons).
<div class="veylo-toast"><b>Update ready</b>Restart to finish installing.</div>A small raised message with a bold title. It is plain markup: position it (for example fixed to a corner) and remove it with your own script, or add a button.veylo-x[data-veylo-dismiss] inside.
<span class="veylo-tag ok">ok</span>
<span class="veylo-badge">new</span>
<span class="veylo-count">3</span>
<span class="veylo-chip">design <button data-veylo-dismiss aria-label="remove"></button></span>| Class | Use |
|---|---|
veylo-tag (acc ok no err) | Small bevelled label |
veylo-badge | Compact status pill (square, like everything else) |
veylo-count | Number bubble, for example an unread count |
veylo-chip | Removable item; the button draws its own cross |
veylo-avatar | Initials in a circle: <span class="veylo-avatar">AB</span> |
<div class="veylo-bar" style="--v:60" data-t="60%"><i></i></div>
<div class="veylo-bar smooth ok" style="--v:100" data-t="Done"><i></i></div>Set the fill with the custom property --v (a number from 0 to 100) on the bar. data-t prints text over the bar. Always include the empty <i>; it is the fill.
| Modifier | Effect |
|---|---|
| (none) | Classic Win98 blocks |
smooth | Continuous gradient fill |
solid | Flat fill in the accent colour |
stripe | Animated diagonal stripes |
thin, fat | Height |
ok, no, err | Colour: success, warning, error (combine with smooth) |
busy | Indeterminate: a marquee that repeats |
bounce | Indeterminate: a block that bounces |
vert | Vertical bar (inline-block, fills from the bottom) |
cells, cells low | Battery-style cells; low turns them red |
Animations stop when the user prefers reduced motion.
progress and meter are styled with no class. A progress with no value is indeterminate and animates.
Working
<span class="veylo-spin"></span> Working<span class="veylo-dots"></span><div class="veylo-skel xl"></div><div class="veylo-skel"></div><div class="veylo-skel l"></div>
<div class="veylo-empty">Nothing here yet.</div>.veylo-skel is a loading placeholder line. xl and l change the width. .veylo-empty is a dashed empty-state box.
<span data-tip="Tooltip text" tabindex="0">hover me</span>Add data-tip to any element. The tip appears on hover and on keyboard focus, so add tabindex="0" to non-interactive elements. Native title also works.