Veylo is a stylesheet. Add it to a page, wrap your content in .veylo, and plain HTML elements already look right. A small optional script adds behaviour such as the theme switcher, sorting and keyboard selection.
<link rel="stylesheet" href="https://veylo.ar0.eu/cdn/css">
<script src="https://veylo.ar0.eu/cdn/js" defer></script>Both URLs are served with CORS enabled. You can also download the files and host them yourself: veylo.css and veylo.js have no dependencies and need no build step.
<div class="veylo" data-theme="graphite">
<div class="veylo-win">
<h1 class="veylo-title"><span>Hello</span></h1>
<div class="veylo-body">
<p>Plain elements are styled for you.</p>
<button class="primary">Click me</button>
</div>
</div>
</div>Everything is scoped to .veylo, so Veylo never touches the rest of your page. You can put it around the whole body or around one section.
| Kind | Looks like | Examples |
|---|---|---|
| Plain elements | no class needed | button, input, select, table, h2, details |
| Components | veylo-name | veylo-win, veylo-card, veylo-tabbar |
| Modifiers | bare words | primary, sm, on, dis, sunk |
| Utilities | short bare classes | flex, grid cols-3, gap2, mt2, cluster, dim, b, mono |
| Colour | CSS variables | --face, --field, --acc, --text |
Next: Themes and tokens, or browse everything running in the showcase.