@fusion.dev/helix-templates 0.138.0 → 0.140.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 (106) hide show
  1. package/README.md +18 -6
  2. package/dist/index.js +24 -0
  3. package/package.json +1 -1
  4. package/templates/angular/angular.json +57 -0
  5. package/templates/angular/package.json +28 -0
  6. package/templates/angular/src/app/app.config.ts +8 -0
  7. package/templates/angular/src/app/app.html +19 -0
  8. package/templates/angular/src/app/app.ts +29 -0
  9. package/templates/angular/src/app/data.ts +81 -0
  10. package/templates/angular/src/app/docs.ts +29 -0
  11. package/templates/angular/src/app/landing.html +77 -0
  12. package/templates/angular/src/app/landing.ts +29 -0
  13. package/templates/angular/src/app/overview.html +49 -0
  14. package/templates/angular/src/app/overview.ts +25 -0
  15. package/templates/angular/src/app/pathname.ts +24 -0
  16. package/templates/angular/src/app/signup-form.html +90 -0
  17. package/templates/angular/src/app/signup-form.ts +65 -0
  18. package/templates/angular/src/app/site-footer.html +10 -0
  19. package/templates/angular/src/app/site-footer.ts +22 -0
  20. package/templates/angular/src/app/site-header.html +30 -0
  21. package/templates/angular/src/app/site-header.ts +57 -0
  22. package/templates/angular/src/app.css +355 -0
  23. package/templates/angular/src/diagnostics.ts +24 -0
  24. package/templates/angular/src/index.html +12 -0
  25. package/templates/angular/src/main.ts +21 -0
  26. package/templates/angular/tsconfig.app.json +9 -0
  27. package/templates/angular/tsconfig.json +34 -0
  28. package/templates/react-nextjs/app/app.css +144 -152
  29. package/templates/react-nextjs/app/data.ts +17 -17
  30. package/templates/react-nextjs/app/diagnostics.ts +19 -0
  31. package/templates/react-nextjs/app/docs.ts +9 -9
  32. package/templates/react-nextjs/app/landing.tsx +63 -121
  33. package/templates/react-nextjs/app/overview.tsx +25 -27
  34. package/templates/react-nextjs/app/signup-form.tsx +36 -39
  35. package/templates/react-nextjs/app/site-footer.tsx +7 -10
  36. package/templates/react-nextjs/app/site-header.tsx +17 -21
  37. package/templates/react-nextjs/helix-jsx.d.ts +5 -7
  38. package/templates/react-nextjs/instrumentation-client.ts +6 -0
  39. package/templates/react-nextjs/package.json +1 -0
  40. package/templates/react-nextjs/tsconfig.json +1 -0
  41. package/templates/react-vite/helix-jsx.d.ts +5 -7
  42. package/templates/react-vite/package.json +1 -0
  43. package/templates/react-vite/src/app.css +144 -152
  44. package/templates/react-vite/src/data.ts +17 -17
  45. package/templates/react-vite/src/diagnostics.ts +24 -0
  46. package/templates/react-vite/src/docs.ts +9 -9
  47. package/templates/react-vite/src/landing.tsx +63 -121
  48. package/templates/react-vite/src/main.tsx +6 -0
  49. package/templates/react-vite/src/overview.tsx +24 -26
  50. package/templates/react-vite/src/routes.tsx +11 -13
  51. package/templates/react-vite/src/signup-form.tsx +36 -39
  52. package/templates/react-vite/src/site-footer.tsx +7 -10
  53. package/templates/react-vite/src/site-header.tsx +15 -19
  54. package/templates/react-vite/tsconfig.json +1 -0
  55. package/templates/solid-vite/helix-solid.d.ts +14 -0
  56. package/templates/solid-vite/index.html +12 -0
  57. package/templates/solid-vite/package.json +22 -0
  58. package/templates/solid-vite/src/App.tsx +35 -0
  59. package/templates/solid-vite/src/app.css +355 -0
  60. package/templates/solid-vite/src/data.ts +81 -0
  61. package/templates/solid-vite/src/diagnostics.ts +24 -0
  62. package/templates/solid-vite/src/docs.ts +29 -0
  63. package/templates/solid-vite/src/landing.tsx +130 -0
  64. package/templates/solid-vite/src/main.tsx +23 -0
  65. package/templates/solid-vite/src/overview.tsx +78 -0
  66. package/templates/solid-vite/src/routes.ts +22 -0
  67. package/templates/solid-vite/src/signup-form.tsx +151 -0
  68. package/templates/solid-vite/src/site-footer.tsx +34 -0
  69. package/templates/solid-vite/src/site-header.tsx +76 -0
  70. package/templates/solid-vite/tsconfig.json +27 -0
  71. package/templates/solid-vite/vite.config.ts +7 -0
  72. package/templates/svelte-vite/helix-svelte.d.ts +9 -0
  73. package/templates/svelte-vite/index.html +12 -0
  74. package/templates/svelte-vite/package.json +23 -0
  75. package/templates/svelte-vite/src/App.svelte +35 -0
  76. package/templates/svelte-vite/src/Landing.svelte +100 -0
  77. package/templates/svelte-vite/src/Overview.svelte +67 -0
  78. package/templates/svelte-vite/src/SignupForm.svelte +147 -0
  79. package/templates/svelte-vite/src/SiteFooter.svelte +26 -0
  80. package/templates/svelte-vite/src/SiteHeader.svelte +71 -0
  81. package/templates/svelte-vite/src/app.css +355 -0
  82. package/templates/svelte-vite/src/data.ts +81 -0
  83. package/templates/svelte-vite/src/diagnostics.ts +24 -0
  84. package/templates/svelte-vite/src/docs.ts +29 -0
  85. package/templates/svelte-vite/src/main.ts +23 -0
  86. package/templates/svelte-vite/src/routes.svelte.ts +19 -0
  87. package/templates/svelte-vite/tsconfig.json +28 -0
  88. package/templates/svelte-vite/vite.config.ts +7 -0
  89. package/templates/vue-vite/helix-vue.d.ts +8 -0
  90. package/templates/vue-vite/index.html +12 -0
  91. package/templates/vue-vite/package.json +23 -0
  92. package/templates/vue-vite/src/App.vue +39 -0
  93. package/templates/vue-vite/src/LandingPage.vue +102 -0
  94. package/templates/vue-vite/src/OverviewPage.vue +69 -0
  95. package/templates/vue-vite/src/SignupForm.vue +149 -0
  96. package/templates/vue-vite/src/SiteFooter.vue +28 -0
  97. package/templates/vue-vite/src/SiteHeader.vue +71 -0
  98. package/templates/vue-vite/src/app.css +355 -0
  99. package/templates/vue-vite/src/data.ts +81 -0
  100. package/templates/vue-vite/src/diagnostics.ts +24 -0
  101. package/templates/vue-vite/src/docs.ts +29 -0
  102. package/templates/vue-vite/src/main.ts +23 -0
  103. package/templates/vue-vite/src/routes.ts +26 -0
  104. package/templates/vue-vite/tsconfig.json +26 -0
  105. package/templates/vue-vite/vite.config.ts +13 -0
  106. package/templates.json +41 -0
@@ -0,0 +1,102 @@
1
+ <script setup lang="ts">
2
+ import { roster } from './data.ts'
3
+ import { DOCS } from './docs.ts'
4
+
5
+ /* **A locale named, so the number reads the same everywhere.**
6
+ `toLocaleString()` with no argument reads the machine's locale, so the same
7
+ number is grouped two ways on two machines. */
8
+ const figure = new Intl.NumberFormat('en-US')
9
+ </script>
10
+
11
+ <!--
12
+ The first screen, and the only page here about the starter itself.
13
+
14
+ Delete it once you know your way around: nothing else imports it, and the
15
+ route it answers becomes yours.
16
+
17
+ **The calls to action are anchors.** A button that navigates is a link
18
+ dressed as a button, and the two are different things to a keyboard and to
19
+ a screen reader. The base stylesheet styles an anchor that asks with
20
+ `data-button`, so a link can look like one and stay a link.
21
+ -->
22
+ <template>
23
+ <div class="stack">
24
+ <header class="first-screen">
25
+ <!-- **The light behind the first screen**: a helix, drawn by the library in
26
+ the theme's colors, so a new brand color relights it. It shows one still
27
+ frame where motion is reduced, and a gradient where the browser draws
28
+ without a GPU. -->
29
+ <helix-aura class="first-light" data-layer :speed="0.4" :terminus="0.8" variant="braid" />
30
+ <div class="hero">
31
+ <helix-tag emphasis="subtle" tone="primary">Starter</helix-tag>
32
+ <helix-text as="h1" variant="display">Helix design system</helix-text>
33
+ <helix-text as="p" class="lede" variant="body">
34
+ Web components in your brand's colors, drawn from one set of tokens.
35
+ </helix-text>
36
+ <div class="actions">
37
+ <a data-button="solid" data-button-tone="primary" href="#/overview">See the data view</a>
38
+ <a data-button href="#/join">Open the form</a>
39
+ </div>
40
+ </div>
41
+
42
+ <!-- **The library at work, on the first screen.** The figures are the roster
43
+ the data view draws, read from the same module, so the panel is the app
44
+ itself, on glass over the light. -->
45
+ <helix-card class="specimen" material="glass" separation="outlined">
46
+ <helix-text as="h2" slot="header" variant="title">The roster, in three figures</helix-text>
47
+ <helix-stat-group divided>
48
+ <helix-stat>
49
+ {{ roster.people }}
50
+ <span slot="label">People</span>
51
+ </helix-stat>
52
+ <helix-stat>
53
+ {{ roster.teams }}
54
+ <span slot="label">Teams</span>
55
+ </helix-stat>
56
+ <helix-stat>
57
+ {{ figure.format(roster.reviews) }}
58
+ <span slot="label">Reviews</span>
59
+ </helix-stat>
60
+ </helix-stat-group>
61
+ <a data-link href="#/overview" slot="footer">Open the data view</a>
62
+ </helix-card>
63
+ </header>
64
+
65
+ <section class="section">
66
+ <helix-text as="h2" variant="subheading">What you have</helix-text>
67
+ <!-- **Each tile is a link, which is what `data-card` is for.** The base layer
68
+ draws the ring, moves the card's border to the brand on hover, and leaves
69
+ focus alone. Nothing inside may be interactive, since a link inside a link
70
+ is neither valid nor reachable. -->
71
+ <div class="features">
72
+ <a class="feature" data-card :href="DOCS.elements">
73
+ <helix-card separation="outlined">
74
+ <span class="feature-mark"><helix-icon name="cube" /></span>
75
+ <helix-text as="h3" variant="title">Custom elements</helix-text>
76
+ <helix-text as="p" emphasis="muted" variant="body">
77
+ One import in <helix-code>src/main.ts</helix-code> registers every tag.
78
+ </helix-text>
79
+ </helix-card>
80
+ </a>
81
+ <a class="feature" data-card :href="DOCS.tokens">
82
+ <helix-card separation="outlined">
83
+ <span class="feature-mark"><helix-icon name="palette" /></span>
84
+ <helix-text as="h3" variant="title">One set of tokens</helix-text>
85
+ <helix-text as="p" emphasis="muted" variant="body">
86
+ Every color, size, and space, in light and dark.
87
+ </helix-text>
88
+ </helix-card>
89
+ </a>
90
+ <a class="feature" data-card :href="DOCS.parts">
91
+ <helix-card separation="outlined">
92
+ <span class="feature-mark"><helix-icon name="sliders-horizontal" /></span>
93
+ <helix-text as="h3" variant="title">Parts to style</helix-text>
94
+ <helix-text as="p" emphasis="muted" variant="body">
95
+ Reach inside a component with <helix-code>::part()</helix-code>.
96
+ </helix-text>
97
+ </helix-card>
98
+ </a>
99
+ </div>
100
+ </section>
101
+ </div>
102
+ </template>
@@ -0,0 +1,69 @@
1
+ <script setup lang="ts">
2
+ import { members } from './data.ts'
3
+ import { DOCS } from './docs.ts'
4
+ </script>
5
+
6
+ <!--
7
+ The data view.
8
+
9
+ **The schema is markup and the data is a property.** The columns are
10
+ elements you can read in the HTML, and `rows` is the whole result handed over
11
+ at once, since a table of ten thousand rows cannot be written out as
12
+ elements. The table sorts, pages, and selects out of that array on its own.
13
+
14
+ **Selection is keyed on `row-key`, so it survives a sort and a page.**
15
+ `app.css` paints the chosen row through the parts the table names for it.
16
+ -->
17
+ <template>
18
+ <div class="stack">
19
+ <header class="hero">
20
+ <helix-text emphasis="muted" variant="label">Data view</helix-text>
21
+ <helix-text as="h1" variant="heading">Roster</helix-text>
22
+ <helix-text as="p" class="lede" emphasis="muted" variant="body">
23
+ Twelve people from a local module. Sort a column, turn a page, or tick a row and watch the
24
+ rule in <helix-code>src/app.css</helix-code> paint it.
25
+ </helix-text>
26
+ </header>
27
+
28
+ <section class="section">
29
+ <helix-data-table
30
+ default-sort="name:asc"
31
+ label="Roster"
32
+ :page-size="6"
33
+ row-key="id"
34
+ :rows="members"
35
+ selectable
36
+ >
37
+ <!-- **Every column declares what it may give up.** A floor and a share:
38
+ the floor is what the words need, and the share is how the slack is
39
+ divided. At 390 the four columns and the checkboxes fit the box, and
40
+ below 376 the table scrolls its own box. -->
41
+ <helix-table-column field="name" sortable width="minmax(5.5rem, 1.6fr)">
42
+ Name
43
+ </helix-table-column>
44
+ <helix-table-column field="team" sortable width="minmax(4.5rem, 1fr)">
45
+ Team
46
+ </helix-table-column>
47
+ <helix-table-column field="role" width="minmax(4.5rem, 1fr)">Role</helix-table-column>
48
+ <!-- `end` lines the digits up under each other. `max-content`, since a
49
+ column of numerals has one right width. -->
50
+ <helix-table-column field="reviews" sortable text-align="end" width="max-content">
51
+ Reviews
52
+ </helix-table-column>
53
+
54
+ <!-- The footer is a row across the table: anything you slot goes at the
55
+ start, and the table's own pagination sits at the end. -->
56
+ <helix-text emphasis="subtle" slot="footer" variant="caption">
57
+ {{ members.length }} people
58
+ </helix-text>
59
+ </helix-data-table>
60
+
61
+ <!-- A footnote to the table, so it takes the section's gap. -->
62
+ <helix-text as="p" emphasis="muted" variant="caption">
63
+ Filtering, column reordering, resizing, virtualized rows, and a server mode for large
64
+ results are on
65
+ <a data-link :href="DOCS.table">the component's own page</a>.
66
+ </helix-text>
67
+ </section>
68
+ </div>
69
+ </template>
@@ -0,0 +1,149 @@
1
+ <script setup lang="ts">
2
+ import type { HelixInputHelixBeforeChangeElementEvent } from '@fusion.dev/helix/vue'
3
+ import { ref } from 'vue'
4
+ import { teams } from './data.ts'
5
+ import { DOCS } from './docs.ts'
6
+
7
+ /** One message in the toast region, and what it says. */
8
+ interface Message {
9
+ readonly id: number
10
+ readonly text: string
11
+ }
12
+
13
+ const handle = ref('')
14
+ const messages = ref<readonly Message[]>([])
15
+
16
+ /**
17
+ * The page takes the submit, so nothing navigates. Remove `preventDefault()`
18
+ * and the form posts to the server like any other, with the same names.
19
+ */
20
+ const join = (event: Event) => {
21
+ event.preventDefault()
22
+ const answers = [...new FormData(event.currentTarget as HTMLFormElement).entries()]
23
+ .map(([field, value]) => `${field}=${value}`)
24
+ .join(' ')
25
+ messages.value = [...messages.value, { id: Date.now(), text: answers }]
26
+ }
27
+
28
+ /**
29
+ * **A controlled value, which is the one habit to unlearn.** A Helix element
30
+ * is not read-only: writing `value` seeds it, and the element goes on applying
31
+ * its own changes. So taking the decision means refusing the change with
32
+ * `preventDefault()`, then setting the value you want. Leaving `handle` as it
33
+ * was does not refuse anything.
34
+ */
35
+ const takeHandle = (event: HelixInputHelixBeforeChangeElementEvent) => {
36
+ event.preventDefault()
37
+ handle.value = event.detail.value.toLowerCase().replaceAll(/[^a-z0-9-]/g, '')
38
+ }
39
+
40
+ const dismiss = (id: number) => {
41
+ messages.value = messages.value.filter((one) => one.id !== id)
42
+ }
43
+ </script>
44
+
45
+ <!--
46
+ The form.
47
+
48
+ **Every control here is a form-associated custom element**, so a `<form>`
49
+ collects them, resets them, and validates them the way it does an `<input>`.
50
+ The submit proves it: it reads the answers with `new FormData(form)`, and
51
+ nothing gathers them by hand.
52
+
53
+ There is no wrapping `Field` component. A label in one shadow root cannot
54
+ name a control in another, so every control renders its own `label`, `hint`,
55
+ and `feedback`.
56
+ -->
57
+ <template>
58
+ <div class="stack">
59
+ <header class="hero">
60
+ <helix-text emphasis="muted" variant="label">Form</helix-text>
61
+ <helix-text as="h1" variant="heading">Join the roster</helix-text>
62
+ <helix-text as="p" class="lede" emphasis="muted" variant="body">
63
+ Five controls, and a <helix-code>&lt;form&gt;</helix-code> reads every one of them the way
64
+ it reads an <helix-code>input</helix-code>.
65
+ </helix-text>
66
+ </header>
67
+
68
+ <!-- The form takes a column of its own and the notes take what is left. At
69
+ 390 the two stack, and the notes read as a postscript. -->
70
+ <div class="split">
71
+ <form class="form" @submit="join">
72
+ <helix-input autocomplete="name" label="Name" name="name" required />
73
+
74
+ <!-- Validation is the platform's: `type` and `required` are set on the
75
+ real input inside, and its own message shows once the field has been
76
+ touched. Set `feedback` to say it in your own words. -->
77
+ <helix-input
78
+ hint="Where we send the welcome note."
79
+ label="Email"
80
+ name="email"
81
+ required
82
+ type="email"
83
+ />
84
+
85
+ <!-- `@helix-before-change` binds with `addEventListener`, so it takes
86
+ the event's own name. -->
87
+ <helix-input
88
+ hint="Lowercase and hyphens, whatever you type."
89
+ label="Handle"
90
+ name="handle"
91
+ :value="handle"
92
+ @helix-before-change="takeHandle"
93
+ />
94
+
95
+ <helix-select label="Team" name="team" placeholder="Pick one" required>
96
+ <helix-option v-for="team in teams" :key="team" :value="team">{{ team }}</helix-option>
97
+ </helix-select>
98
+
99
+ <!-- A switch is a thing happening now, which is why it says on and off.
100
+ It still submits, as `on`. -->
101
+ <helix-switch label="Send me the weekly digest" name="digest" />
102
+
103
+ <helix-button emphasis="solid" tone="primary" type="submit">Join</helix-button>
104
+ </form>
105
+
106
+ <aside class="notes">
107
+ <!-- The one fact you need before typing your name into a page you have
108
+ had for five minutes, so it is a callout. `tone` is the meaning,
109
+ and the component draws it with a tint and a bar on the inline
110
+ start, so it survives being read in grayscale. -->
111
+ <helix-callout tone="info">
112
+ The form posts nothing. Submit it, and a message shows exactly what a server would
113
+ receive.
114
+ </helix-callout>
115
+ <helix-text as="h2" variant="title">What the form shows</helix-text>
116
+ <helix-text as="p" emphasis="muted" variant="body">
117
+ Every control is a form-associated custom element, so the submit reads them all with
118
+ <helix-code>new FormData(form)</helix-code>. Reset the form and they all go back,
119
+ the way an <helix-code>input</helix-code> does.
120
+ </helix-text>
121
+ <helix-text as="p" emphasis="muted" variant="body">
122
+ Leave the email wrong and the browser shows its own message, in your language. Handle is
123
+ the controlled field: the page refuses each change and writes back a cleaned value.
124
+ </helix-text>
125
+ <a data-link :href="DOCS.forms">Forms</a>
126
+ </aside>
127
+ </div>
128
+
129
+ <!-- **The region is rendered whether or not there is anything in it.**
130
+ Assistive technology subscribes to a live region, and one that arrives
131
+ already holding its message is often never announced. A dismissed
132
+ message asks to go through `helix-dismiss`. -->
133
+ <helix-toast>
134
+ <helix-toast-item
135
+ v-for="message in messages"
136
+ :key="message.id"
137
+ dismissible
138
+ :duration="8000"
139
+ tone="success"
140
+ @helix-dismiss="dismiss(message.id)"
141
+ >
142
+ <helix-flex direction="column" gap="2xs">
143
+ <helix-text variant="body-strong">Read by the form</helix-text>
144
+ <helix-text variant="code">{{ message.text }}</helix-text>
145
+ </helix-flex>
146
+ </helix-toast-item>
147
+ </helix-toast>
148
+ </div>
149
+ </template>
@@ -0,0 +1,28 @@
1
+ <script setup lang="ts">
2
+ import { DOCS } from './docs.ts'
3
+ </script>
4
+
5
+ <!--
6
+ The bar's counterpart, on every route.
7
+
8
+ **It puts a floor under the content.** The overview is a heading, a table,
9
+ and a caption, which on a tall window left the bottom third of the screen
10
+ empty. The footer is also where the links you want once belong.
11
+
12
+ `data-link="subtle"` reads as body text until it is hovered, which suits a
13
+ row of links under a rule.
14
+ -->
15
+ <template>
16
+ <footer class="site-footer">
17
+ <div class="footer-row">
18
+ <helix-text as="p" emphasis="subtle" variant="caption">
19
+ Every component here has a page, with its API, its parts, and its examples.
20
+ </helix-text>
21
+ <div class="footer-links">
22
+ <a data-link="subtle" :href="DOCS.gallery">Components</a>
23
+ <a data-link="subtle" :href="DOCS.elements">Documentation</a>
24
+ <a data-link="subtle" :href="DOCS.vue">Vue</a>
25
+ </div>
26
+ </div>
27
+ </footer>
28
+ </template>
@@ -0,0 +1,71 @@
1
+ <script setup lang="ts">
2
+ import { ref } from 'vue'
3
+ import { usePathname } from './routes.ts'
4
+
5
+ /** What the page can follow, in the order the control cycles them. */
6
+ const MODES = ['system', 'light', 'dark'] as const
7
+
8
+ type Mode = (typeof MODES)[number]
9
+
10
+ /** The glyph each mode is announced and drawn with. */
11
+ const MARKS: Record<Mode, string> = { dark: 'moon', light: 'sun', system: 'monitor' }
12
+
13
+ const path = usePathname()
14
+ /* `system` is the resting state, the mode the page follows until the control is pressed. */
15
+ const mode = ref<Mode>('system')
16
+
17
+ /**
18
+ * One attribute, two modes, and no second stylesheet.
19
+ *
20
+ * Every Helix token is written once as a `light-dark()` pair, so `color-scheme`
21
+ * decides which half resolves. `data-color-mode` sets it, and since
22
+ * `color-scheme` inherits, the attribute works on any element: put it on a
23
+ * panel for a light preview inside a dark page.
24
+ *
25
+ * `system` removes the attribute. Writing out whichever mode is current would
26
+ * hold the page there when the system's own setting changed.
27
+ */
28
+ const cycle = () => {
29
+ const next = MODES[(MODES.indexOf(mode.value) + 1) % MODES.length] ?? 'system'
30
+ mode.value = next
31
+ if (next === 'system') {
32
+ delete document.documentElement.dataset.colorMode
33
+ return
34
+ }
35
+ document.documentElement.dataset.colorMode = next
36
+ }
37
+ </script>
38
+
39
+ <!-- The bar across the top: the wordmark, the destinations, and the color mode. -->
40
+ <template>
41
+ <helix-app-header material="glass" sticky>
42
+ <!-- The wordmark is the way back to the first page, so there is no third
43
+ destination in the bar saying the same thing. It is also the only name
44
+ of the project on the screen. The mark is a placeholder for your own,
45
+ drawn in `--helix-color-brand-mark`, the token for the brand as a
46
+ graphic. -->
47
+ <a class="wordmark" data-link="quiet" href="#/" slot="start">
48
+ <helix-icon name="cube" />
49
+ <helix-text variant="body-strong">__PROJECT_NAME__</helix-text>
50
+ </a>
51
+
52
+ <!-- The links are yours. Navigation owns the marker that travels between
53
+ them and renders no anchors of its own. The base layer styles them,
54
+ `aria-current="page"` included. -->
55
+ <helix-navigation label="Pages">
56
+ <a :aria-current="path === '/overview' ? 'page' : undefined" href="#/overview">Overview</a>
57
+ <a :aria-current="path === '/join' ? 'page' : undefined" href="#/join">Join</a>
58
+ </helix-navigation>
59
+
60
+ <!-- An icon with no words has no accessible name until it is given one,
61
+ which is why this is its own element. -->
62
+ <helix-icon-button
63
+ :label="`Color mode: ${mode}`"
64
+ slot="end"
65
+ :title="`Color mode: ${mode}`"
66
+ @click="cycle"
67
+ >
68
+ <helix-icon :name="MARKS[mode]" />
69
+ </helix-icon-button>
70
+ </helix-app-header>
71
+ </template>