@luz-ds/ai 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/README.md +8 -6
  2. package/dist/skills/luz/SKILL.md +14 -10
  3. package/dist/skills/luz/assets/examples/landing-service/app.js +51 -0
  4. package/dist/skills/luz/assets/examples/landing-service/index.html.tpl +83 -0
  5. package/dist/skills/luz/assets/facts.json +5 -5
  6. package/dist/skills/luz/assets/templates/app.html.tpl +31 -28
  7. package/dist/skills/luz/assets/templates/blog.html.tpl +19 -19
  8. package/dist/skills/luz/assets/templates/docs.html.tpl +18 -18
  9. package/dist/skills/luz/assets/templates/landing.html.tpl +19 -19
  10. package/dist/skills/luz/references/components/accordion.md +16 -0
  11. package/dist/skills/luz/references/components/alert.md +13 -0
  12. package/dist/skills/luz/references/components/app-bar.md +34 -0
  13. package/dist/skills/luz/references/components/badge.md +7 -0
  14. package/dist/skills/luz/references/components/bar-list.md +18 -0
  15. package/dist/skills/luz/references/components/breadcrumb.md +13 -0
  16. package/dist/skills/luz/references/components/button-link.md +7 -0
  17. package/dist/skills/luz/references/components/button.md +7 -0
  18. package/dist/skills/luz/references/components/card.md +10 -0
  19. package/dist/skills/luz/references/components/checkbox.md +10 -0
  20. package/dist/skills/luz/references/components/code-block.md +9 -0
  21. package/dist/skills/luz/references/components/copy.md +8 -0
  22. package/dist/skills/luz/references/components/dashboard.md +27 -0
  23. package/dist/skills/luz/references/components/date.md +11 -0
  24. package/dist/skills/luz/references/components/dropdown.md +17 -0
  25. package/dist/skills/luz/references/components/email.md +11 -0
  26. package/dist/skills/luz/references/components/faq.md +38 -0
  27. package/dist/skills/luz/references/components/fieldset.md +17 -0
  28. package/dist/skills/luz/references/components/figure.md +12 -0
  29. package/dist/skills/luz/references/components/hero.md +24 -0
  30. package/dist/skills/luz/references/components/meter.md +8 -0
  31. package/dist/skills/luz/references/components/modal.md +26 -0
  32. package/dist/skills/luz/references/components/navbar.md +23 -0
  33. package/dist/skills/luz/references/components/number.md +11 -0
  34. package/dist/skills/luz/references/components/objects-actions.md +20 -0
  35. package/dist/skills/luz/references/components/objects-grid.md +15 -0
  36. package/dist/skills/luz/references/components/objects-list.md +10 -0
  37. package/dist/skills/luz/references/components/objects-media.md +12 -0
  38. package/dist/skills/luz/references/components/objects-page.md +18 -0
  39. package/dist/skills/luz/references/components/objects-shell.md +15 -0
  40. package/dist/skills/luz/references/components/page-header.md +12 -0
  41. package/dist/skills/luz/references/components/pagination.md +15 -0
  42. package/dist/skills/luz/references/components/progress.md +8 -0
  43. package/dist/skills/luz/references/components/prose.md +19 -0
  44. package/dist/skills/luz/references/components/radio.md +13 -0
  45. package/dist/skills/luz/references/components/range.md +10 -0
  46. package/dist/skills/luz/references/components/section.md +26 -0
  47. package/dist/skills/luz/references/components/select.md +14 -0
  48. package/dist/skills/luz/references/components/sidebar.md +23 -0
  49. package/dist/skills/luz/references/components/site-footer.md +17 -0
  50. package/dist/skills/luz/references/components/site-header.md +26 -0
  51. package/dist/skills/luz/references/components/skip-link.md +11 -0
  52. package/dist/skills/luz/references/components/stat.md +17 -0
  53. package/dist/skills/luz/references/components/switch.md +11 -0
  54. package/dist/skills/luz/references/components/table-sort.md +23 -0
  55. package/dist/skills/luz/references/components/table.md +17 -0
  56. package/dist/skills/luz/references/components/tabs.md +12 -0
  57. package/dist/skills/luz/references/components/tag.md +7 -0
  58. package/dist/skills/luz/references/components/text.md +11 -0
  59. package/dist/skills/luz/references/components/textarea.md +11 -0
  60. package/dist/skills/luz/references/components/toast.md +15 -0
  61. package/dist/skills/luz/references/components/tool.md +38 -0
  62. package/dist/skills/luz/references/components.md +101 -0
  63. package/dist/skills/luz/references/design.md +204 -0
  64. package/dist/skills/luz/references/done.md +45 -0
  65. package/dist/skills/luz/references/kinds/app.md +8 -1
  66. package/dist/skills/luz/references/kinds/landing.md +2 -2
  67. package/dist/skills/luz/references/magic.md +84 -0
  68. package/dist/skills/luz/references/reviewers.md +12 -2
  69. package/dist/skills/luz/scripts/luz.mjs +275 -8
  70. package/package.json +1 -1
@@ -0,0 +1,34 @@
1
+ # app-bar
2
+
3
+ The bar at the top of an app: the product and the account.
4
+
5
+ Needs `components/app-bar.css` and `components/dashboard.css` and `components/sidebar.css` of catalog.
6
+
7
+ ```html
8
+ <div class="o-shell">
9
+ <nav class="luz-sidebar" id="app-nav" aria-label="Main" popover>…</nav>
10
+ <div class="o-main">
11
+ <header class="luz-app-bar o-sticky">
12
+ <div class="o-row">
13
+ <button class="luz-nav-toggle" type="button" popovertarget="app-nav" aria-label="Menu">
14
+ <svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 6h16M4 12h16M4 18h16"/></g></svg>
15
+ </button>
16
+ <p class="luz-app-bar__product">Bodega</p>
17
+ <div class="o-row luz-app-bar__actions">
18
+ <luz-search>…</luz-search>
19
+ <div class="luz-dropdown">
20
+ <button class="luz-btn luz-btn--ghost luz-app-bar__account" type="button" popovertarget="account-menu"><span class="luz-avatar luz-avatar--sm">AM</span> <span class="luz-app-bar__account-name">Ana Martín</span></button>
21
+ <div class="luz-dropdown__menu" id="account-menu" popover>
22
+ <ul class="luz-dropdown__list">
23
+ <li><a class="luz-dropdown__item" href="/account/">Account settings</a></li>
24
+ <li><a class="luz-dropdown__item" href="/logout/">Sign out</a></li>
25
+ </ul>
26
+ </div>
27
+ </div>
28
+ </div>
29
+ </div>
30
+ </header>
31
+ <main class="luz-dashboard" id="main-content" tabindex="-1">…</main>
32
+ </div>
33
+ </div>
34
+ ```
@@ -0,0 +1,7 @@
1
+ # badge
2
+
3
+ A count or a status next to a name.
4
+
5
+ ```html
6
+ <a href="/inbox/">Inbox <span class="luz-badge luz-badge--primary">3</span><span class="u-sr-only"> unread</span></a>
7
+ ```
@@ -0,0 +1,18 @@
1
+ # bar-list
2
+
3
+ Named values compared as bars.
4
+
5
+ Needs `components/bar-list.css` of catalog.
6
+
7
+ ```html
8
+ <figure class="luz-bar-list">
9
+ <ul class="luz-bar-list__rows">
10
+ <li class="luz-bar-list__row">
11
+ <span class="luz-bar-list__name">Sevilla to Madrid</span>
12
+ <span class="luz-bar-list__figure">1,204</span>
13
+ <meter class="luz-bar-list__meter" max="1500" value="1204" aria-hidden="true">1,204 of 1,500</meter>
14
+ </li>
15
+ </ul>
16
+ <figcaption>Parcels per route, this week</figcaption>
17
+ </figure>
18
+ ```
@@ -0,0 +1,13 @@
1
+ # breadcrumb
2
+
3
+ Where the page is in a tree of three levels or more.
4
+
5
+ ```html
6
+ <nav aria-label="Breadcrumb">
7
+ <ol class="luz-breadcrumb">
8
+ <li><a class="luz-breadcrumb__item" href="/">Home</a></li>
9
+ <li><a class="luz-breadcrumb__item" href="/settings/">Settings</a></li>
10
+ <li><span class="luz-breadcrumb__item" aria-current="page">Billing</span></li>
11
+ </ol>
12
+ </nav>
13
+ ```
@@ -0,0 +1,7 @@
1
+ # button-link
2
+
3
+ A link that looks like a button: it goes somewhere, it does not act.
4
+
5
+ ```html
6
+ <a class="luz-btn luz-btn--outline" href="/pricing/">See the plans</a>
7
+ ```
@@ -0,0 +1,7 @@
1
+ # button
2
+
3
+ The one main action of the view: primary. The others are secondary, outline or ghost.
4
+
5
+ ```html
6
+ <button class="luz-btn luz-btn--primary" type="button">Save changes</button>
7
+ ```
@@ -0,0 +1,10 @@
1
+ # card
2
+
3
+ One item of a set: a title, a short text, an action.
4
+
5
+ ```html
6
+ <article class="luz-card">
7
+ <h3 class="luz-card__title">Database</h3>
8
+ <p class="luz-card__body">48 active connections.</p>
9
+ </article>
10
+ ```
@@ -0,0 +1,10 @@
1
+ # checkbox
2
+
3
+ Several options of a short list, in a group.
4
+
5
+ ```html
6
+ <div class="luz-check-group" role="group" aria-labelledby="notify-label">
7
+ <div class="luz-check-item"><input type="checkbox" id="notify-email" checked><label for="notify-email">Email</label></div>
8
+ <div class="luz-check-item"><input type="checkbox" id="notify-push"><label for="notify-push">Push</label></div>
9
+ </div>
10
+ ```
@@ -0,0 +1,9 @@
1
+ # code-block
2
+
3
+ A block of code or of generated text.
4
+
5
+ ```html
6
+ <pre class="luz-code-block" data-lang="css" tabindex="0" role="region" aria-label="Panel styles"><code>.panel {
7
+ color: var(--luz-text-primary);
8
+ }</code></pre>
9
+ ```
@@ -0,0 +1,8 @@
1
+ # copy
2
+
3
+ Copies a text, and says it did.
4
+
5
+ ```html
6
+ <code class="luz-code-inline">npm install @luz-ds/core</code>
7
+ <button class="luz-copy-btn" type="button" data-copy="npm install @luz-ds/core" aria-label="Copy the install command">Copy</button>
8
+ ```
@@ -0,0 +1,27 @@
1
+ # dashboard
2
+
3
+ Panels of figures and data.
4
+
5
+ Needs `components/dashboard.css` of catalog.
6
+
7
+ ```html
8
+ <main class="luz-dashboard" id="main-content" tabindex="-1">
9
+ <div class="luz-dashboard__head">
10
+ <h1 class="luz-dashboard__title">Overview</h1>
11
+ <div class="o-actions">
12
+ <a class="luz-btn luz-btn--primary" href="/reports/new/">New report</a>
13
+ <a class="luz-btn luz-btn--secondary" href="/export/">Export data</a>
14
+ </div>
15
+ </div>
16
+ <ul class="o-grid o-grid--auto">
17
+ <li class="luz-card luz-dashboard__panel luz-dashboard__panel--wide">
18
+ <h2 class="luz-card__title">Sales this month</h2>
19
+ <p class="luz-card__body">…</p>
20
+ </li>
21
+ <li class="luz-card luz-dashboard__panel">
22
+ <h2 class="luz-card__title">Stock alerts</h2>
23
+ <p class="luz-card__body">…</p>
24
+ </li>
25
+ </ul>
26
+ </main>
27
+ ```
@@ -0,0 +1,11 @@
1
+ # date
2
+
3
+ A date.
4
+
5
+ ```html
6
+ <div class="luz-field">
7
+ <label class="luz-field__label" for="date">Start date</label>
8
+ <input class="luz-input" id="date" type="date" min="2026-01-01" max="2026-12-31" aria-describedby="date-hint">
9
+ <div class="luz-field__helper" id="date-hint">Pick a day in 2026.</div>
10
+ </div>
11
+ ```
@@ -0,0 +1,17 @@
1
+ # dropdown
2
+
3
+ A menu of actions behind one button.
4
+
5
+ ```html
6
+ <div class="luz-dropdown">
7
+ <button class="luz-btn luz-btn--secondary" type="button" popovertarget="project-actions">Actions</button>
8
+ <div class="luz-dropdown__menu" id="project-actions" popover>
9
+ <ul class="luz-dropdown__list">
10
+ <li><a class="luz-dropdown__item" href="/project/edit/">Edit</a></li>
11
+ <li><button class="luz-dropdown__item" type="button">Duplicate</button></li>
12
+ <li><hr class="luz-dropdown__separator"></li>
13
+ <li><button class="luz-dropdown__item luz-dropdown__item--danger" type="button">Delete project</button></li>
14
+ </ul>
15
+ </div>
16
+ </div>
17
+ ```
@@ -0,0 +1,11 @@
1
+ # email
2
+
3
+ An e-mail address.
4
+
5
+ ```html
6
+ <div class="luz-field">
7
+ <label class="luz-field__label" for="email">Email</label>
8
+ <input class="luz-input" id="email" type="email" autocomplete="email" required aria-describedby="email-hint">
9
+ <div class="luz-field__helper" id="email-hint">We send your receipt here.</div>
10
+ </div>
11
+ ```
@@ -0,0 +1,38 @@
1
+ # faq
2
+
3
+ Questions and answers.
4
+
5
+ Needs `components/faq.css` of catalog.
6
+
7
+ ```html
8
+ <luz-faq>
9
+ <h2 class="luz-faq__title">Questions about renting a bike</h2>
10
+ <p class="luz-faq__lead">What to know before you pick up your bike.</p>
11
+ <nav class="luz-faq__nav" aria-label="In this FAQ">
12
+ <ul>
13
+ <li><a href="#booking">Booking and pickup</a></li>
14
+ <li><a href="#road">On the road</a></li>
15
+ </ul>
16
+ </nav>
17
+ <section class="luz-faq__group" aria-labelledby="booking">
18
+ <h3 class="luz-faq__group-title" id="booking">Booking and pickup</h3>
19
+ <details class="luz-faq__item">
20
+ <summary class="luz-faq__question">Can I cancel a booking?</summary>
21
+ <div class="luz-faq__answer" id="faq-cancel">
22
+ <p>Yes, free of charge until 24 hours before pickup.</p>
23
+ </div>
24
+ </details>
25
+ <details class="luz-faq__item">
26
+ <summary class="luz-faq__question">What do I need to bring?</summary>
27
+ <div class="luz-faq__answer" id="faq-bring">
28
+ <p>Bring a photo ID and the confirmation e-mail.</p>
29
+ </div>
30
+ </details>
31
+ </section>
32
+ <section class="luz-faq__group" aria-labelledby="road">
33
+ <h3 class="luz-faq__group-title" id="road">On the road</h3>
34
+ …
35
+ </section>
36
+ <p class="luz-faq__more">Not here? <a href="/contact/">Write to the shop</a></p>
37
+ </luz-faq>
38
+ ```
@@ -0,0 +1,17 @@
1
+ # fieldset
2
+
3
+ Related fields under one legend.
4
+
5
+ ```html
6
+ <fieldset class="luz-fieldset">
7
+ <legend>Shipping address</legend>
8
+ <div class="luz-field">
9
+ <label class="luz-field__label" for="street">Street</label>
10
+ <input class="luz-input" id="street" type="text">
11
+ </div>
12
+ <div class="luz-field">
13
+ <label class="luz-field__label" for="city">City</label>
14
+ <input class="luz-input" id="city" type="text">
15
+ </div>
16
+ </fieldset>
17
+ ```
@@ -0,0 +1,12 @@
1
+ # figure
2
+
3
+ A picture, a chart or a code sample with its caption.
4
+
5
+ ```html
6
+ <figure class="luz-figure">
7
+ <div class="luz-figure__media">
8
+ <img src="requests.png" width="640" height="192" alt="Bar chart: requests rise every day, from 1,200 on Monday to 3,400 on Saturday.">
9
+ </div>
10
+ <figcaption class="luz-figure__caption">Requests per day, last six days.</figcaption>
11
+ </figure>
12
+ ```
@@ -0,0 +1,24 @@
1
+ # hero
2
+
3
+ The top of a landing page: the headline, the benefit, one action.
4
+
5
+ Needs `components/hero.css` of catalog.
6
+
7
+ ```html
8
+ <section class="luz-hero o-grid o-grid--split" aria-labelledby="hero-title">
9
+ <div class="luz-hero__copy">
10
+ <p class="luz-hero__eyebrow">12 and 13 May 2027 · Seville</p>
11
+ <h1 class="luz-hero__title" id="hero-title">Acme Summit 2027</h1>
12
+ <p class="luz-hero__lead">Two days of talks and workshops for retail teams.</p>
13
+ <div class="o-actions">
14
+ <a class="luz-btn luz-btn--primary" href="#register">Register</a>
15
+ <a class="luz-btn luz-btn--outline" href="#programme">See the programme</a>
16
+ </div>
17
+ </div>
18
+ <div class="luz-hero__media">
19
+ <div class="luz-image luz-image--4x3">
20
+ <img src="/img/venue-1280.jpg" width="1280" height="960" alt="The main hall, full, before the opening talk" fetchpriority="high" decoding="async">
21
+ </div>
22
+ </div>
23
+ </section>
24
+ ```
@@ -0,0 +1,8 @@
1
+ # meter
2
+
3
+ A measure within a known range.
4
+
5
+ ```html
6
+ <label for="storage">Storage used, 6 of 10 GB</label>
7
+ <meter class="luz-meter" id="storage" value="6" min="0" max="10">6 of 10 GB</meter>
8
+ ```
@@ -0,0 +1,26 @@
1
+ # modal
2
+
3
+ A question that must be answered before going on. Rarely the right choice.
4
+
5
+ ```html
6
+ <button class="luz-btn luz-btn--primary" type="button" commandfor="rename" command="show-modal">Rename project</button>
7
+
8
+ <dialog class="luz-modal" id="rename" aria-labelledby="rename-title">
9
+ <div class="luz-modal__header">
10
+ <button class="luz-modal__close" type="button" commandfor="rename" command="close" aria-label="Close dialog">×</button>
11
+ <h2 class="luz-modal__title" id="rename-title">Rename project</h2>
12
+ </div>
13
+ <form method="dialog">
14
+ <div class="luz-modal__body">
15
+ <div class="luz-field">
16
+ <label class="luz-field__label" for="rename-name">New name</label>
17
+ <input class="luz-input" id="rename-name" type="text" autofocus>
18
+ </div>
19
+ </div>
20
+ <div class="luz-modal__footer">
21
+ <button class="luz-btn luz-btn--ghost" type="button" commandfor="rename" command="close">Cancel</button>
22
+ <button class="luz-btn luz-btn--primary" value="rename">Rename project</button>
23
+ </div>
24
+ </form>
25
+ </dialog>
26
+ ```
@@ -0,0 +1,23 @@
1
+ # navbar
2
+
3
+ The links of the header, folded behind a button on a phone.
4
+
5
+ Needs `components/navbar.css` and `components/sidebar.css` of catalog.
6
+
7
+ ```html
8
+ <header class="o-sticky">
9
+ <div class="o-container o-container--inline o-row">
10
+ <button class="luz-nav-toggle" type="button" popovertarget="site-nav" aria-label="Menu">
11
+ <svg viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 6h16M4 12h16M4 18h16"/></g></svg>
12
+ </button>
13
+ <a href="/">Acme</a>
14
+ <nav class="luz-navbar" id="site-nav" aria-label="Main" popover>
15
+ <ul class="luz-navbar__list">
16
+ <li><a class="luz-navbar__link" href="/products/" aria-current="page">Products</a></li>
17
+ <li><a class="luz-navbar__link" href="/pricing/">Pricing</a></li>
18
+ <li><a class="luz-navbar__link" href="/support/">Support</a></li>
19
+ </ul>
20
+ </nav>
21
+ </div>
22
+ </header>
23
+ ```
@@ -0,0 +1,11 @@
1
+ # number
2
+
3
+ A number, with its unit in the label.
4
+
5
+ ```html
6
+ <div class="luz-field">
7
+ <label class="luz-field__label" for="number">Quantity</label>
8
+ <input class="luz-input" id="number" type="number" min="1" max="10" step="1" value="1" aria-describedby="number-hint">
9
+ <div class="luz-field__helper" id="number-hint">From 1 to 10.</div>
10
+ </div>
11
+ ```
@@ -0,0 +1,20 @@
1
+ # objects-actions
2
+
3
+ Two columns that stack on a phone, and a row of two or three actions.
4
+
5
+ ```html
6
+ <section class="o-grid o-grid--split">
7
+ <div class="o-stack">
8
+ <h1>…</h1>
9
+ <div class="o-actions">
10
+ <a class="luz-btn luz-btn--primary" href="/register/">Register now</a>
11
+ <a class="luz-btn luz-btn--outline" href="/programme/">See the programme</a>
12
+ </div>
13
+ </div>
14
+ <div class="luz-image">…</div>
15
+ </section>
16
+
17
+ <!-- two columns only when each gets 24 rem -->
18
+ <section class="o-grid o-grid--split hero">…</section>
19
+ <style>.hero { --luz-grid-min: 24rem; }</style>
20
+ ```
@@ -0,0 +1,15 @@
1
+ # objects-grid
2
+
3
+ As many equal columns as fit, none narrower than 16rem.
4
+
5
+ ```html
6
+ <!-- as many columns as fit, each at least 16 rem -->
7
+ <div class="o-grid o-grid--auto">…cards…</div>
8
+
9
+ <!-- at least 12 rem: set the property in your own CSS -->
10
+ <div class="o-grid o-grid--auto gallery">…</div>
11
+ <style>.gallery { --luz-grid-min: 12rem; }</style>
12
+
13
+ <!-- three columns above 768 px, one below -->
14
+ <div class="o-grid o-grid--3">…</div>
15
+ ```
@@ -0,0 +1,10 @@
1
+ # objects-list
2
+
3
+ A list of cards laid out as a grid.
4
+
5
+ ```html
6
+ <ul class="o-grid o-grid--auto">
7
+ <li class="luz-card">…</li>
8
+ <li class="luz-card">…</li>
9
+ </ul>
10
+ ```
@@ -0,0 +1,12 @@
1
+ # objects-media
2
+
3
+ An icon or a picture next to its text.
4
+
5
+ ```html
6
+ <div class="o-media">
7
+ <span class="luz-avatar luz-avatar--md" aria-hidden="true">AB</span>
8
+ <div class="o-media__body">
9
+ <p>Ana Belén</p>
10
+ </div>
11
+ </div>
12
+ ```
@@ -0,0 +1,18 @@
1
+ # objects-page
2
+
3
+ A page: the header, the main content in a centred column, the footer.
4
+
5
+ ```html
6
+ <body>
7
+ <a class="luz-skip-link" href="#main-content">Skip to main content</a>
8
+ <div class="o-page">
9
+ <header class="o-sticky">
10
+ <div class="o-container o-container--inline o-row">…</div>
11
+ </header>
12
+ <main id="main-content" class="o-container o-stack" tabindex="-1">…</main>
13
+ <footer>
14
+ <div class="o-container o-container--inline o-row">…</div>
15
+ </footer>
16
+ </div>
17
+ </body>
18
+ ```
@@ -0,0 +1,15 @@
1
+ # objects-shell
2
+
3
+ An app: a sidebar and the main area. Only with four destinations or more.
4
+
5
+ Needs `components/sidebar.css` of catalog.
6
+
7
+ ```html
8
+ <body class="o-shell">
9
+ <nav class="luz-sidebar" aria-label="Main">…</nav>
10
+ <main class="o-main" id="main-content">
11
+ <div class="o-container">…</div>
12
+ </main>
13
+ <footer>…</footer>
14
+ </body>
15
+ ```
@@ -0,0 +1,12 @@
1
+ # page-header
2
+
3
+ The title and the lead of an inner page.
4
+
5
+ Needs `components/page-header.css` of catalog.
6
+
7
+ ```html
8
+ <div class="luz-page-header">
9
+ <h1 class="luz-page-header__title">About the Review</h1>
10
+ <p class="luz-page-header__lead">An independent paper for Vejer and the coast, paid for by its readers.</p>
11
+ </div>
12
+ ```
@@ -0,0 +1,15 @@
1
+ # pagination
2
+
3
+ The pages of a long list.
4
+
5
+ ```html
6
+ <nav aria-label="Pagination">
7
+ <ul class="luz-pagination">
8
+ <li><a class="luz-pagination__link" href="/blog/?page=1" rel="prev">Previous</a></li>
9
+ <li><a class="luz-pagination__link" href="/blog/?page=1" aria-label="Page 1">1</a></li>
10
+ <li><a class="luz-pagination__link" href="/blog/?page=2" aria-label="Page 2" aria-current="page">2</a></li>
11
+ <li><a class="luz-pagination__link" href="/blog/?page=3" aria-label="Page 3">3</a></li>
12
+ <li><a class="luz-pagination__link" href="/blog/?page=3" rel="next">Next</a></li>
13
+ </ul>
14
+ </nav>
15
+ ```
@@ -0,0 +1,8 @@
1
+ # progress
2
+
3
+ How far a task has gone.
4
+
5
+ ```html
6
+ <label for="upload">Uploading report.pdf</label>
7
+ <progress class="luz-progress" id="upload" value="25" max="100">25%</progress>
8
+ ```
@@ -0,0 +1,19 @@
1
+ # prose
2
+
3
+ Running text written elsewhere (Markdown, a CMS).
4
+
5
+ ```html
6
+ <div class="luz-prose">
7
+ <!-- What the editor or the Markdown writes, as it is -->
8
+ <p>Since March 2016, a group of volunteers has read the tide gauge…</p>
9
+ <h2 id="method">How the readings were taken</h2>
10
+ <p>…</p>
11
+ <ul class="wp-block-list">
12
+ <li>…</li>
13
+ </ul>
14
+ <figure>
15
+ <img src="gauge.jpg" width="1200" height="800" alt="The tide gauge in the port, a post marked in centimetres">
16
+ <figcaption>The gauge at low tide.</figcaption>
17
+ </figure>
18
+ </div>
19
+ ```
@@ -0,0 +1,13 @@
1
+ # radio
2
+
3
+ One option of two to five, all visible.
4
+
5
+ ```html
6
+ <fieldset class="luz-fieldset">
7
+ <legend>Plan</legend>
8
+ <div class="luz-check-group">
9
+ <div class="luz-check-item"><input type="radio" name="plan" id="plan-free" checked><label for="plan-free">Free</label></div>
10
+ <div class="luz-check-item"><input type="radio" name="plan" id="plan-team"><label for="plan-team">Team</label></div>
11
+ </div>
12
+ </fieldset>
13
+ ```
@@ -0,0 +1,10 @@
1
+ # range
2
+
3
+ A value on a scale, with its output.
4
+
5
+ ```html
6
+ <div class="luz-field">
7
+ <label class="luz-field__label" for="volume">Volume <output class="luz-output" id="volume-out" for="volume">50</output></label>
8
+ <input class="luz-input" id="volume" type="range" min="0" max="100" value="50">
9
+ </div>
10
+ ```
@@ -0,0 +1,26 @@
1
+ # section
2
+
3
+ A section of a landing page with its title.
4
+
5
+ Needs `components/glow.css` and `components/main.css` and `components/section.css` of catalog.
6
+
7
+ ```html
8
+ <body class="o-page luz-glow">
9
+ <a class="luz-skip-link" href="#main-content">Skip to content</a>
10
+ <!-- the header -->
11
+ <main id="main-content" class="o-container o-stack luz-main" tabindex="-1">
12
+ <!-- the hero -->
13
+ <section class="o-stack luz-section" aria-labelledby="programme-title">
14
+ <h2 id="programme-title">Programme</h2>
15
+ <p>Twelve talks and six workshops over two days.</p>
16
+ </section>
17
+ <section class="o-stack luz-section luz-band" aria-labelledby="last-seats-title">
18
+ <h2 id="last-seats-title">Registration closes on 30 April</h2>
19
+ <div class="o-actions">
20
+ <a class="luz-btn luz-btn--primary" href="#register">Register now</a>
21
+ </div>
22
+ </section>
23
+ </main>
24
+ <!-- the footer -->
25
+ </body>
26
+ ```
@@ -0,0 +1,14 @@
1
+ # select
2
+
3
+ One option of a list longer than five.
4
+
5
+ ```html
6
+ <div class="luz-field">
7
+ <label class="luz-field__label" for="country">Country</label>
8
+ <select class="luz-select" id="country" name="country">
9
+ <option value="">Select a country</option>
10
+ <option value="de">Germany</option>
11
+ <option value="es">Spain</option>
12
+ </select>
13
+ </div>
14
+ ```
@@ -0,0 +1,23 @@
1
+ # sidebar
2
+
3
+ The navigation of an app with four views or more.
4
+
5
+ Needs `components/sidebar.css` of catalog.
6
+
7
+ ```html
8
+ <header>
9
+ <button class="luz-nav-toggle" type="button" popovertarget="site-nav" aria-label="Menu">
10
+ <span class="luz-nav-toggle__bar"></span>
11
+ <span class="luz-nav-toggle__bar"></span>
12
+ <span class="luz-nav-toggle__bar"></span>
13
+ </button>
14
+ </header>
15
+
16
+ <nav class="luz-sidebar" id="site-nav" popover aria-label="Main">
17
+ <div class="luz-sidebar__section">
18
+ <div class="luz-sidebar__section-label">Account</div>
19
+ <a class="luz-sidebar__link is-active" href="/profile/" aria-current="page">Profile</a>
20
+ <a class="luz-sidebar__link" href="/billing/">Billing</a>
21
+ </div>
22
+ </nav>
23
+ ```