@telepath-computer/television 1.5.9 → 1.6.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 (130) hide show
  1. package/dist/THIRD-PARTY-NOTICES.txt +701 -0
  2. package/dist/cli.cjs +9035 -596
  3. package/dist/onboarding/tv-guide/welcome.html +14 -4
  4. package/dist/skills/television/SKILL.md +39 -33
  5. package/dist/skills/television/resources.md +4 -4
  6. package/dist/skills/television/templates.md +77 -0
  7. package/dist/skills/television/theming.md +31 -17
  8. package/dist/templates/calendar/README.md +17 -0
  9. package/dist/{skills/tv-tasks → templates/calendar}/THIRD-PARTY-NOTICES.txt +22 -22
  10. package/dist/templates/calendar/calendar-attendees.js +131 -0
  11. package/dist/templates/calendar/calendar-event.js +22 -0
  12. package/dist/templates/calendar/calendar-motion.js +273 -0
  13. package/dist/templates/calendar/calendar-page.js +403 -0
  14. package/dist/templates/calendar/calendar-time-axis.js +32 -0
  15. package/dist/templates/calendar/calendar-week.js +711 -0
  16. package/dist/templates/calendar/data.json +3 -0
  17. package/dist/templates/calendar/icon.svg +1 -0
  18. package/dist/templates/calendar/index.html +27 -0
  19. package/dist/templates/calendar/manifest.json +148 -0
  20. package/dist/templates/calendar/styles.css +771 -0
  21. package/dist/templates/checklist/README.md +45 -0
  22. package/dist/templates/checklist/THIRD-PARTY-NOTICES.txt +29 -0
  23. package/dist/templates/checklist/data.json +1 -0
  24. package/dist/templates/checklist/icon.svg +8 -0
  25. package/dist/templates/checklist/icons.css +61 -0
  26. package/dist/templates/checklist/index.html +47 -0
  27. package/dist/templates/checklist/manifest.json +49 -0
  28. package/dist/templates/checklist/model.d.ts +30 -0
  29. package/dist/templates/checklist/model.js +60 -0
  30. package/dist/templates/checklist/page.js +425 -0
  31. package/dist/templates/checklist/styles.css +206 -0
  32. package/dist/templates/document/README.md +55 -0
  33. package/dist/templates/document/THIRD-PARTY-NOTICES.txt +1080 -0
  34. package/dist/templates/document/data.json +3 -0
  35. package/dist/templates/document/editor.css +1 -0
  36. package/dist/templates/document/editor.js +37 -0
  37. package/dist/templates/document/icon.svg +6 -0
  38. package/dist/templates/document/index.html +29 -0
  39. package/dist/templates/document/manifest.json +22 -0
  40. package/dist/templates/document/page.js +190 -0
  41. package/dist/templates/document/styles.css +76 -0
  42. package/dist/templates/map/README.md +85 -0
  43. package/dist/templates/map/THIRD-PARTY-NOTICES.txt +84 -0
  44. package/dist/templates/map/data.json +1 -0
  45. package/dist/templates/map/icon.svg +8 -0
  46. package/dist/templates/map/icons.svg +43 -0
  47. package/dist/templates/map/index.html +95 -0
  48. package/dist/templates/map/manifest.json +227 -0
  49. package/dist/templates/map/map-model.js +18 -0
  50. package/dist/templates/map/map.css +202 -0
  51. package/dist/templates/map/map.js +728 -0
  52. package/dist/templates/map/vendor/LICENSE +26 -0
  53. package/dist/templates/map/vendor/README.md +11 -0
  54. package/dist/templates/map/vendor/leaflet.css +661 -0
  55. package/dist/templates/map/vendor/leaflet.js +6 -0
  56. package/dist/templates/map/vendor/lucide/LICENSE +43 -0
  57. package/dist/templates/map/vendor/lucide/README.md +46 -0
  58. package/dist/templates/map/vendor/lucide/icons.js +832 -0
  59. package/dist/templates/map/vendor/lucide/svg/airport.svg +15 -0
  60. package/dist/templates/map/vendor/lucide/svg/bar.svg +17 -0
  61. package/dist/templates/map/vendor/lucide/svg/beach.svg +17 -0
  62. package/dist/templates/map/vendor/lucide/svg/bridge.svg +20 -0
  63. package/dist/templates/map/vendor/lucide/svg/bus.svg +21 -0
  64. package/dist/templates/map/vendor/lucide/svg/church.svg +19 -0
  65. package/dist/templates/map/vendor/lucide/svg/coffee.svg +18 -0
  66. package/dist/templates/map/vendor/lucide/svg/ferry.svg +19 -0
  67. package/dist/templates/map/vendor/lucide/svg/flag.svg +15 -0
  68. package/dist/templates/map/vendor/lucide/svg/heart.svg +15 -0
  69. package/dist/templates/map/vendor/lucide/svg/home.svg +16 -0
  70. package/dist/templates/map/vendor/lucide/svg/hospital.svg +19 -0
  71. package/dist/templates/map/vendor/lucide/svg/hotel.svg +24 -0
  72. package/dist/templates/map/vendor/lucide/svg/info.svg +17 -0
  73. package/dist/templates/map/vendor/lucide/svg/landmark.svg +20 -0
  74. package/dist/templates/map/vendor/lucide/svg/mountain.svg +15 -0
  75. package/dist/templates/map/vendor/lucide/svg/museum.svg +20 -0
  76. package/dist/templates/map/vendor/lucide/svg/music.svg +17 -0
  77. package/dist/templates/map/vendor/lucide/svg/park.svg +18 -0
  78. package/dist/templates/map/vendor/lucide/svg/parking.svg +16 -0
  79. package/dist/templates/map/vendor/lucide/svg/pin.svg +16 -0
  80. package/dist/templates/map/vendor/lucide/svg/restaurant.svg +17 -0
  81. package/dist/templates/map/vendor/lucide/svg/school.svg +20 -0
  82. package/dist/templates/map/vendor/lucide/svg/shop.svg +17 -0
  83. package/dist/templates/map/vendor/lucide/svg/sports.svg +19 -0
  84. package/dist/templates/map/vendor/lucide/svg/star.svg +15 -0
  85. package/dist/templates/map/vendor/lucide/svg/theatre.svg +23 -0
  86. package/dist/templates/map/vendor/lucide/svg/train.svg +20 -0
  87. package/dist/templates/map/vendor/lucide/svg/viewpoint.svg +20 -0
  88. package/dist/templates/map/vendor/lucide/svg/work.svg +18 -0
  89. package/dist/templates/sticky-note/Caveat-Medium.woff2 +0 -0
  90. package/dist/templates/sticky-note/README.md +47 -0
  91. package/dist/templates/sticky-note/THIRD-PARTY-NOTICES.txt +127 -0
  92. package/dist/templates/sticky-note/data.json +1 -0
  93. package/dist/templates/sticky-note/icon.svg +16 -0
  94. package/dist/templates/sticky-note/icons.css +61 -0
  95. package/dist/templates/sticky-note/index.html +31 -0
  96. package/dist/templates/sticky-note/manifest.json +27 -0
  97. package/dist/templates/sticky-note/model.d.ts +33 -0
  98. package/dist/templates/sticky-note/model.js +152 -0
  99. package/dist/templates/sticky-note/page.js +84 -0
  100. package/dist/templates/sticky-note/styles.css +140 -0
  101. package/dist/templates/table/README.md +107 -0
  102. package/dist/templates/table/data.json +4 -0
  103. package/dist/templates/table/icon.svg +6 -0
  104. package/dist/templates/table/index.html +15 -0
  105. package/dist/templates/table/manifest.json +70 -0
  106. package/dist/templates/table/model.d.ts +164 -0
  107. package/dist/templates/table/model.js +395 -0
  108. package/dist/templates/table/page.js +1045 -0
  109. package/dist/templates/table/selection-model.d.ts +67 -0
  110. package/dist/templates/table/selection-model.js +163 -0
  111. package/dist/templates/table/styles.css +522 -0
  112. package/dist/views/markdown/THIRD-PARTY-NOTICES.txt +408 -0
  113. package/dist/views/markdown/index.html +21 -21
  114. package/dist/web/assets/main-CRSNodQt.js +864 -0
  115. package/dist/web/assets/main-DnvQkpg4.css +1 -0
  116. package/dist/web/index.html +2 -2
  117. package/package.json +1 -1
  118. package/dist/skills/tv-calendar/SKILL.md +0 -100
  119. package/dist/skills/tv-calendar/calendar.css +0 -1
  120. package/dist/skills/tv-calendar/calendar.js +0 -400
  121. package/dist/skills/tv-table/SKILL.md +0 -95
  122. package/dist/skills/tv-tasks/SKILL.md +0 -269
  123. package/dist/skills/tv-tasks/task.css +0 -180
  124. package/dist/skills/tv-tasks/task.js +0 -304
  125. package/dist/web/assets/calendar-DToAnkzj.png +0 -0
  126. package/dist/web/assets/main-CPopSWec.js +0 -848
  127. package/dist/web/assets/main-CunC2_Nx.css +0 -1
  128. package/dist/web/assets/markdown-DdDrJuVK.png +0 -0
  129. package/dist/web/assets/table-oeG9uAN1.png +0 -0
  130. package/dist/web/assets/tasks-D4xqXFPl.png +0 -0
@@ -1,269 +0,0 @@
1
- ---
2
- name: tv-tasks
3
- description: Create to-do list HTML artifacts for Television, to visualize tasks, plans, check them off, etc.
4
- ---
5
-
6
- # Authoring a task list
7
-
8
- Know the main `television` skill first (re-read only if it's not in context or
9
- changed) — it covers the Television workflow, artifact registration, and the
10
- canonical HTML house style. This skill only adds the task-list vocabulary.
11
-
12
- A calm, scannable to-do list: sections of task rows, each with a checkbox,
13
- title, optional note, and a metadata line (due date, project, tags). You author
14
- plain `tv-task-*` markup; the CSS and two small components do the rest.
15
-
16
- ## Load these
17
-
18
- Every artifact is self-contained. Carry `task.css` and `task.js` from this skill
19
- folder into the output (don't reference `/skills/tv-tasks/…` URLs).
20
-
21
- For a directory artifact, copy both next to `index.html` and load them with the
22
- canonical boilerplate:
23
-
24
- ```html
25
- <link rel="stylesheet" href="/canonical/v2/styles.css?authoredForAppVersion=<version>" />
26
- <script type="module" src="/canonical/v2/components.js"></script>
27
- <link rel="stylesheet" href="./task.css" />
28
- <script type="module" src="./task.js"></script>
29
- ```
30
-
31
- For a running server, read the exact release `version` from `tv status`; when working in a Television checkout, read the exact version from the checkout root `package.json`. Copy that exact release version unchanged into `authoredForAppVersion`. A missing version or the `0.0.0` development sentinel does not identify a release, so omit the metadata.
32
-
33
- For a single-file artifact, inline `task.css`/`task.js` into `<style>` and
34
- `<script type="module">` tags instead. `components.js` gives you `<tv-icon>`;
35
- `task.js` registers `<tv-task-checkbox>` and `<tv-task-meta-due>`.
36
-
37
- A task list is not a prose document, and `task.css` lays out its page: one
38
- inset around the whole page, shared by the page header, the list and anything
39
- you place between them, such as an add form or a toolbar, and one gap between
40
- each of them. Don't add `body` padding (the house style doc suggests it for
41
- prose), and don't give those blocks side padding or margins of their own to
42
- line them up: they already line up.
43
-
44
- Television manages light and dark appearance. Live canonical v2 supplies the
45
- selected theme and shared defaults; the task kit inherits its surface, text,
46
- muted-text, and border roles. Author no `data-theme` marker or separate dark
47
- palette. Task colors use existing semantics: primary for checked checkboxes,
48
- `--color-primary-text` for their marks, `--color-alert` for due today and the
49
- default highlight, and `--color-danger` for overdue.
50
-
51
- ## Markup
52
-
53
- Author this shape — a page header, then a list of sections and rows:
54
-
55
- ```html
56
- <header>
57
- <h1>Television</h1>
58
- <p>Wednesday, June 25</p>
59
- </header>
60
-
61
- <tv-task-list>
62
- <tv-task-section>
63
- <header><h2>Today</h2></header>
64
-
65
- <tv-task>
66
- <tv-task-checkbox></tv-task-checkbox>
67
- <tv-task-body>
68
- <tv-task-title>Review the task-list example</tv-task-title>
69
- <tv-task-note>Density, grouping, and Things-like hierarchy.</tv-task-note>
70
- <tv-task-meta>
71
- <tv-task-meta-due date="2026-06-26"></tv-task-meta-due>
72
- <tv-task-meta-item><tv-icon name="hash"></tv-icon>TV Skills</tv-task-meta-item>
73
- <tv-task-meta-tag>design</tv-task-meta-tag>
74
- </tv-task-meta>
75
- </tv-task-body>
76
- </tv-task>
77
- </tv-task-section>
78
- </tv-task-list>
79
- ```
80
-
81
- ## Components
82
-
83
- ### `<tv-task-list>`
84
- The list root. One per view, holding the sections (or bare rows). It draws no
85
- frame of its own — the page is the surface, and Television's artifact frame
86
- provides the chrome around the document.
87
-
88
- ### Headers — `<header>` + `<h1>`/`<h2>` + optional `<p>`
89
-
90
- A page title is optional — Television's frame already names the artifact, so
91
- a bare list is fine. Add one when the list benefits from its own masthead: a
92
- date line ("Today" lists usually carry the date), a person, or context the
93
- frame title doesn't say. When you do, use the house header idiom *above*
94
- `<tv-task-list>` (not inside it): a `<header>` with an `<h1>` and optionally
95
- a `<p>` subtitle. House styles own its look; the skill's page layout aligns it
96
- with the list and spaces it from what follows. Title each section with an `<h2>` inside the section's own
97
- `<header>`. Keep these as real HTML headings, not `tv-task-*`, so the
98
- document outline stays navigable.
99
-
100
- ### `<tv-task-section>`
101
- A titled group of rows: a `<header>` then the `<tv-task>`s. Group by one
102
- meaningful axis — a when-bucket (Today / Upcoming / Someday), a project, or an
103
- area. A few purposeful groups read well; one section per task defeats the point,
104
- and a flat handful of tasks needs no sections at all. Don't render a section
105
- with no tasks — omit it entirely unless the user asked to see the empty group.
106
-
107
- ### `<tv-task-count>`
108
- An optional task count beside a section heading:
109
- `<header><h2>Today</h2><tv-task-count>3</tv-task-count></header>`. Renders
110
- inline right of the heading — muted, unbolded, never floated to the far edge.
111
- You write the number; nothing counts for you — keep it true to the rows
112
- actually in the section, and skip it when it adds nothing.
113
-
114
- ### `<tv-task>`
115
- One task row — a `<tv-task-checkbox>` followed by a `<tv-task-body>`. Give it a
116
- plain `id` if you'll wire interactivity. One per task.
117
-
118
- Add `highlighted` to emphasize a row: a soft wash of the shared alert color by default. The hue
119
- is one knob — `--task-highlight` — settable inline for a single row (`<tv-task highlighted style="--task-highlight: var(--color-primary)">`)
120
- or on an ancestor to retint every highlight in the list. Highlight only with
121
- a good reason: the user asked for it, or the emphasis clearly benefits them
122
- (the one row they should see first). At more than one or two per list the
123
- emphasis stops meaning anything.
124
-
125
- ### `<tv-task-checkbox>`
126
- The circular checkbox at the head of each row; every row has exactly one. Add
127
- `checked` to mark a task done (the row strikes through and mutes) or `disabled`
128
- to mute a row without completing it. No label — it takes its accessible name from
129
- the row's `<tv-task-title>`. On user toggle it emits a bubbling `toggle` event
130
- and exposes a `checked` property (see Interactivity).
131
-
132
- ### `<tv-task-body>`
133
- The content column right of the checkbox — wraps the title, note, and meta. One
134
- per row, always present.
135
-
136
- ### `<tv-task-title>`
137
- The task's name, as plain text. Required, one per row; keep it a short imperative
138
- line.
139
-
140
- ### `<tv-task-note>`
141
- A brief, muted one-line description under the title. Optional — add it only when
142
- the title doesn't say enough, and keep it to a single line. Most tasks are
143
- clearer without one.
144
-
145
- ### `<tv-task-meta>`
146
- The metadata line under the title/note. It holds any mix of the three chips
147
- below, in any order. Include it only when the task has metadata — otherwise omit
148
- it.
149
-
150
- ### `<tv-task-meta-due>`
151
- A due date: `<tv-task-meta-due date="YYYY-MM-DD">`. Give it only the machine
152
- date — it computes urgency (today → alert, overdue → danger, upcoming → muted),
153
- writes the human label ("Today", "Tomorrow", "Jun 20"), and draws the calendar
154
- glyph. Never hand-format the date or set a color. At most one per task.
155
-
156
- ### `<tv-task-meta-item>`
157
- The escape hatch for metadata that isn't a date or tag — an `<tv-icon>` plus
158
- text, like a project or context:
159
-
160
- ```html
161
- <tv-task-meta-item><tv-icon name="hash"></tv-icon>TV Skills</tv-task-meta-item>
162
- ```
163
-
164
- Useful, but restrained: one or two at most. A row crowded with chips stops being
165
- scannable.
166
-
167
- ### `<tv-task-meta-tag>`
168
-
169
- A small pill for a label or tag: `<tv-task-meta-tag>design</tv-task-meta-tag>`.
170
- Repeatable, but a few keywords — not a tag soup. Two or three sharpen a row; six
171
- bury it.
172
-
173
- ### `<tv-task-placeholder>`
174
-
175
- A centered, muted empty-state message:
176
- `<tv-task-placeholder>Nothing here yet</tv-task-placeholder>`. Rarely needed —
177
- by default an empty section simply isn't rendered (see `<tv-task-section>`).
178
- Use it only when showing the empty group is the point — the user asked to see
179
- it, or an interactive list empties itself and the space must not collapse.
180
-
181
- ## Interactivity
182
-
183
- - On user toggle a checkbox emits a bubbling `toggle` event; read the new state
184
- from `e.checked`. Setting `el.checked = true/false` programmatically reflects
185
- the attribute (completes/uncompletes the row) but emits nothing.
186
- - Listen once on the list and delegate. Give each `<tv-task>` a plain `id` and
187
- identify the toggled task with `e.target.closest("tv-task").id`.
188
- - Nothing is persisted for you — wire the handler to where the list's data
189
- lives ([below](#where-the-tasks-come-from)). On load, restore state by
190
- setting `el.checked`.
191
-
192
- ```js
193
- const list = document.querySelector("tv-task-list");
194
- list.addEventListener("toggle", (e) => {
195
- const id = e.target.closest("tv-task").id;
196
- save(id, e.checked); // your persistence; nothing is stored for you
197
- });
198
- ```
199
-
200
- ## Where the tasks come from
201
-
202
- This skill renders tasks once you have them; where they come from, and where
203
- their state lives, is up to the artifact's author and depends on the artifact's
204
- design, its use and the person. Data can come from a JSON store, from a
205
- third-party API such as the person's productivity app when it has an HTTP API,
206
- or from the HTML itself, written into the artifact. A JSON store keeps a list's
207
- data durably, shares it live with every client viewing the artifact and lets
208
- you read and write it; it is the standard choice for a to-do list's data, and
209
- the `television` skill's `resources.md` describes it. `localStorage`, cookies
210
- and IndexedDB do not work in artifacts, because artifacts run under the CSP
211
- sandbox.
212
-
213
- When the tasks arrive or change while the page is open, as when you render
214
- them from a JSON store, put the list's status or error message in the page
215
- header, after its title and any subtitle, as a `<p class="tv-error">`. A list
216
- that shows such a message has a page header to hold it, even when the artifact
217
- frame's title would otherwise do.
218
-
219
- ## Example variations
220
-
221
- Completed and disabled rows:
222
-
223
- ```html
224
- <tv-task>
225
- <tv-task-checkbox checked></tv-task-checkbox>
226
- <tv-task-body><tv-task-title>Ship the icon migration</tv-task-title></tv-task-body>
227
- </tv-task>
228
- <tv-task>
229
- <tv-task-checkbox disabled></tv-task-checkbox>
230
- <tv-task-body><tv-task-title>Blocked on review</tv-task-title></tv-task-body>
231
- </tv-task>
232
- ```
233
-
234
- An overdue date and multiple tags — same markup, the component colors it:
235
-
236
- ```html
237
- <tv-task-meta>
238
- <tv-task-meta-due date="2026-06-10"></tv-task-meta-due>
239
- <tv-task-meta-tag>urgent</tv-task-meta-tag>
240
- <tv-task-meta-tag>backend</tv-task-meta-tag>
241
- </tv-task-meta>
242
- ```
243
-
244
- A highlighted row, retinted to match the artifact's accent:
245
-
246
- ```html
247
- <tv-task highlighted style="--task-highlight: var(--color-primary)">
248
- <tv-task-checkbox></tv-task-checkbox>
249
- <tv-task-body><tv-task-title>Sign the lease by Friday</tv-task-title></tv-task-body>
250
- </tv-task>
251
- ```
252
-
253
- The kit retains `--task-due-today`, `--task-highlight`, and `--task-meta-text`
254
- for deliberate artifact customization. Prefer shared semantic tokens for their
255
- values. Their defaults follow alert, the due-today color, and shared muted text
256
- at 85% opacity, respectively; the kit does not redefine canonical color tokens.
257
-
258
- ## Guidelines
259
-
260
- - **Icons are always `<tv-icon name="…">`** — never a span or inline SVG. In
261
- metadata use `calendar` (handled by the due component) and `hash`
262
- (project); for other `tv-task-meta-item`s pick from the canonical icon
263
- catalog listed in the main `television` skill. Names outside that closed
264
- catalog render no glyph.
265
- - **Standalone sizing is `size="sm|md|lg|xl"`** on `<tv-icon>`; an icon beside
266
- text omits `size` and follows that text.
267
- - **Rows are flat by default** — no backdrop, no dividers; whitespace does
268
- the separating. If you restyle rows (background, radius, spacing), keep
269
- that model in mind — deliberate, list-wide changes, not per-row chrome.
@@ -1,180 +0,0 @@
1
- /*
2
- * Task styles for the tv-tasks artifact skill.
3
- * Targets the `tv-task-*` element/attribute vocabulary (no classes); uses
4
- * canonical design tokens (--color-*, --space-*, --radius-*, --text-*).
5
- *
6
- * Behavioral parts live in their own web components' shadow DOM:
7
- * <tv-task-checkbox> — the circular pop checkbox + focus ring
8
- * <tv-task-meta-due> — the due-date glyph + label; task.css only colors it.
9
- */
10
-
11
- :root {
12
- /* Task accents follow the active canonical/theme semantic roles. */
13
- --task-due-today: var(--color-alert);
14
- /* Highlight hue — the highlighted row's wash derives from this one knob.
15
- Set it on any ancestor (or the row itself) to retint. */
16
- --task-highlight: var(--task-due-today);
17
- /* The meta line recedes a step behind the note: 85% of muted. */
18
- --task-meta-text: color-mix(in srgb, var(--color-text-muted) 85%, transparent);
19
- }
20
-
21
- /* One task row — a checkbox column + the body column. */
22
- tv-task {
23
- display: grid;
24
- grid-template-columns: 18px 1fr;
25
- column-gap: var(--space-12, 12px);
26
- padding: var(--space-8, 8px) var(--space-4, 4px);
27
- }
28
-
29
- /* The content column of a row (title / note / meta). */
30
- tv-task-body {
31
- display: block;
32
- }
33
-
34
- tv-task-title {
35
- display: block;
36
- font-weight: var(--font-weight-normal);
37
- line-height: 1.35;
38
- }
39
- /* Completed — tracks the checkbox's reflected host attribute live, not a
40
- static class. (The real <input> lives in the component's shadow DOM, where
41
- :has() can't reach it.) */
42
- tv-task:has(tv-task-checkbox[checked]) tv-task-title {
43
- color: var(--color-text-muted);
44
- text-decoration: line-through;
45
- }
46
- /* A completed task's due date is always muted, overriding the today/overdue
47
- emphasis. */
48
- tv-task:has(tv-task-checkbox[checked]) tv-task-meta-due {
49
- color: var(--task-meta-text);
50
- }
51
-
52
- tv-task-note {
53
- display: block;
54
- color: var(--color-text-muted);
55
- font-size: calc(var(--text-sm) + 1px);
56
- line-height: 1.4;
57
- margin-top: 0;
58
- }
59
-
60
- /* Shared metadata line under the title/note — holds the due date, project,
61
- and label pills. */
62
- tv-task-meta {
63
- display: flex;
64
- flex-wrap: wrap;
65
- align-items: center;
66
- gap: var(--space-8, 8px);
67
- margin-top: var(--space-2, 2px);
68
- font-size: var(--text-sm);
69
- color: var(--task-meta-text);
70
- }
71
-
72
- /* Generic icon + text meta item (project, area, …). The <tv-task-meta-due>
73
- component supplies its own inline-flex/gap/icon, so it isn't styled here
74
- beyond color. */
75
- tv-task-meta-item {
76
- display: inline-flex;
77
- align-items: center;
78
- gap: var(--space-2, 2px);
79
- white-space: nowrap;
80
- }
81
-
82
- /* Due-date urgency — the <tv-task-meta-due> component reflects its computed
83
- state; task.css only colors it. Default / upcoming stay muted (inherited
84
- from tv-task-meta). */
85
- tv-task-meta-due[state="today"] { color: var(--task-due-today); }
86
- tv-task-meta-due[state="overdue"] { color: var(--color-danger); }
87
-
88
- /* Label pill — labels, tags, and contexts are the same thing. */
89
- tv-task-meta-tag {
90
- display: inline-flex;
91
- align-items: center;
92
- height: 18px;
93
- padding: 0 5px;
94
- padding-bottom: 1px;
95
- border-radius: 6px;
96
- background: var(--color-surface-muted);
97
- color: var(--task-meta-text);
98
- font-size: var(--text-sm);
99
- line-height: 1.5;
100
- }
101
-
102
- /* Disabled — the row reads muted rather than dimmed. */
103
- tv-task:has(tv-task-checkbox[disabled]) tv-task-title {
104
- color: var(--color-text-muted);
105
- }
106
-
107
- /* ---- The page ----
108
- One default inset for the whole page, at zero specificity so an
109
- artifact's own body rule replaces it. The page header, the list and
110
- anything placed between them, such as an add form or a toolbar, share its
111
- gutters, and each stands one gap below the one before it; a script or
112
- style element is no block, so the first block shown gets no gap above it.
113
- The artifact's own heading is the house page-header idiom (header > h1 +
114
- p), which house typography styles. Its last line shown has no margin
115
- outside a prose region and one no larger than the gap inside one, which
116
- collapses into the gap, so the gap below the header is the same whatever
117
- it ends with. */
118
- :where(body) {
119
- padding: var(--space-16, 16px);
120
- }
121
- :where(body > :not(script, style, template) ~ *) {
122
- margin-top: var(--space-12, 12px);
123
- }
124
-
125
- /* ---- List container ----
126
- No frame of its own: the artifact page is the surface, and Television's
127
- artifact frame supplies the chrome around the document. */
128
-
129
- tv-task-list {
130
- display: block;
131
- }
132
-
133
- /* Section headers lay their title out inline. */
134
- tv-task-section > header {
135
- display: flex;
136
- align-items: baseline;
137
- gap: var(--space-6, 6px);
138
- }
139
-
140
- /* ---- Section ----
141
- A titled group of tasks. Generic — the title can be a when-bucket (Today /
142
- Upcoming / Someday), a project, or an area. Rows separate by whitespace;
143
- sections by more whitespace + their header. */
144
- tv-task-section {
145
- display: block;
146
- margin-top: var(--space-20, 20px);
147
- }
148
- tv-task-section:first-of-type { margin-top: 0; }
149
-
150
- tv-task-section > header { padding-bottom: var(--space-6, 6px); }
151
- tv-task-section > header h2 {
152
- margin: 0;
153
- font-size: var(--text-base);
154
- font-weight: 600;
155
- }
156
-
157
- /* Task count beside a section heading — the author writes the number, the
158
- skill only styles it. Inline right of the heading (the header's baseline
159
- flex places it), never floated to the far edge. */
160
- tv-task-count {
161
- color: var(--task-meta-text);
162
- font-size: var(--text-sm);
163
- font-weight: var(--font-weight-normal);
164
- }
165
-
166
- /* Empty state — shown when a section or list has no tasks. */
167
- tv-task-placeholder {
168
- display: block;
169
- color: var(--color-text-muted);
170
- text-align: center;
171
- padding: var(--space-32, 32px) var(--space-16, 16px);
172
- font-size: calc(var(--text-sm) + 1px);
173
- }
174
-
175
-
176
- /* Highlighted row — sanctioned emphasis: a soft wash derived from
177
- --task-highlight. No edge lines — rows are borderless throughout. */
178
- tv-task[highlighted] {
179
- background: color-mix(in srgb, var(--task-highlight) 10%, transparent);
180
- }