Veylo Docs

HomeDocsFeedback and status

Feedback and status

Notes

Info note.
OK note.
Warning note.
Error note.
<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).

Toast

Update readyRestart to finish installing.
<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.

Tags, badges, counts, chips

defaultaccentokwarnerror new3 design locked
<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>
ClassUse
veylo-tag (acc ok no err)Small bevelled label
veylo-badgeCompact status pill (square, like everything else)
veylo-countNumber bubble, for example an unread count
veylo-chipRemovable item; the button draws its own cross
veylo-avatarInitials in a circle: <span class="veylo-avatar">AB</span>

Progress bars

<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.

ModifierEffect
(none)Classic Win98 blocks
smoothContinuous gradient fill
solidFlat fill in the accent colour
stripeAnimated diagonal stripes
thin, fatHeight
ok, no, errColour: success, warning, error (combine with smooth)
busyIndeterminate: a marquee that repeats
bounceIndeterminate: a block that bounces
vertVertical bar (inline-block, fills from the bottom)
cells, cells lowBattery-style cells; low turns them red

Animations stop when the user prefers reduced motion.

Native progress and meter

progress and meter are styled with no class. A progress with no value is indeterminate and animates.

Spinner and dots

Working

<span class="veylo-spin"></span> Working<span class="veylo-dots"></span>

Skeleton and empty state

Nothing here yet.
<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.

Tooltips

hover or focus me
<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.