Use your own domain
Point a domain at the gateway and it gets its certificate on its own.
Base + Core
Write the HTML you already know and it comes styled: elements, components and layout objects over the tokens, in a cascade layer your CSS always wins.
Try it: the same page, three ways
The page's HTML
<h3>Join the newsletter</h3> <label>Email <input type="email"> </label> <p> <button type="submit">Subscribe</button> <button type="button">Not now</button> </p><span class="luz-tag luz-tag--blue">New</span> <h3>Join the newsletter</h3> <div class="luz-field"> <label class="luz-field__label">Email</label> <input class="luz-input" type="email"> </div> <button class="luz-btn luz-btn--primary">Subscribe</button> <button class="luz-btn luz-btn--outline">Not now</button><span class="luz-tag luz-tag--blue">New</span> <h3>Join the newsletter</h3> <div class="luz-field"> <label class="luz-field__label">Email</label> <input class="luz-input" type="email"> </div> <button class="luz-btn luz-btn--primary">Subscribe</button> <button class="luz-btn luz-btn--outline">Not now</button> /* your own CSS, no !important */ .luz-btn { border-radius: var(--luz-radius-full); text-transform: uppercase; }
1. Install
Tokens and core: two packages, or three links from the CDN.
npm install @luz-ds/tokens @luz-ds/core
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@luz-ds/tokens@0.5.1/dist/luz-tokens.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@luz-ds/core@0.5.1/dist/luz.min.css">
<script type="module" src="https://cdn.jsdelivr.net/npm/@luz-ds/core@0.5.1/dist/luz.min.js"></script>
2. Write HTML, nothing else
Every element already has its style: no class, no setup. The browser keeps the state, the keyboard and the validation.
<form>
<label>Email <input type="email"></label>
<button>Subscribe</button>
</form>
3. Add a class when you need more
A component class for a variant, an object for a layout. Your own CSS comes after and wins.
<button class="luz-btn luz-btn--outline">Cancel</button>
<div class="o-grid o-grid--auto">
<div class="luz-card">…</div>
<div class="luz-card">…</div>
</div>
What you get
One button class: the variants, the states, with an icon or an icon alone, the sizes and the full width, on a native <button> or <a>; a copy button, and a dropdown that is a native popover.
Buttons
<button class="luz-btn luz-btn--primary luz-btn--lg">Copy button
npm install @luz-ds/core<button class="luz-copy-btn" data-copy="npm install">Dropdown
<div class="luz-dropdown">
<button popovertarget="menu">
<div class="luz-dropdown__menu" popover>Fields, text areas, selects and choices are native controls with LUZ's look: the browser keeps the state, the keyboard and the validation.
<form>
<fieldset class="luz-fieldset">
<legend>…</legend>
<div class="luz-field">
<label class="luz-field__label">…</label>
<input class="luz-input">
</div>
</fieldset>
<button class="luz-btn luz-btn--primary">…</button>
</form>
Cards, tags, tables, figures, prose, code and icons, and the way around a page: the skip link, the breadcrumb, the tabs and the pagination. Each one class.
<nav class="luz-tabs">
<a class="luz-tab" aria-current="page">…</a>
</nav>
<div class="luz-card">…</div>
<table class="luz-table">…</table>
<ul class="luz-pagination">…</ul>
The gateway routes every request to its service and keeps a log of each one, so you can see what happened and when.
Each route sets its own rate_limit.
99.9% this month.
In Settings: it is live in a minute.
The members of the project, and no one else.
| Service | Status | CPU use |
|---|---|---|
| api-gateway | Running | 12% |
| data-pipeline | Degraded | 78% |
| mailer | Stopped | 0% |
Point a domain at the gateway and it gets its certificate on its own.
Every route, the logs for a year and support in a day. Most chosen
Now €12 a month Was €15
.route {
rate_limit: 100/min;
}Faster routes and a new view of the logs.
Alerts, progress, dialogs, toasts and tooltips tell the reader what happened and what comes next; the image and the player hold media. Each with the right role for a screen reader.
Alert
<div class="luz-alert luz-alert--error">Progress and meter
<progress class="luz-progress" value="67">Modal
<dialog class="luz-modal">Toast
<div class="luz-toast" role="status">Tooltip
<div class="luz-tooltip">Image
<div class="luz-image luz-image--4x3">Player
<div class="luz-player" data-type="audio">Video
<div class="luz-player" data-type="video">10 objects lay out the page, from the shell with its sidebar to the row of actions, and space their children with one gap; the utilities and the shared animations do the rest. You write the structure, not the margins.
<div class="o-shell">
<aside>…</aside>
<div class="o-main o-page">
<header class="o-sticky">…</header>
<main class="o-container o-stack">
<div class="o-grid o-grid--auto">…</div>
<div class="o-actions">…</div>
</main>
</div>
</div>
o-main · o-pageo-stickyDeployingo-containero-stacko-mediaEvery service of the project, at a glance
o-grido-rowo-actionsCore is what every page needs. The catalog adds what a whole site does: search, cookie consent, charts and the language switch, one stylesheet each.