@alis-build/design-system 0.38.0 → 0.38.1
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.
- package/alisx.css +3 -1
- package/classes.json +1 -0
- package/components/AppButton.md +3 -3
- package/components/AppHandOff.md +5 -5
- package/package.json +1 -1
- package/rules/buttons.md +1 -1
- package/words.json +2 -2
package/alisx.css
CHANGED
|
@@ -410,6 +410,8 @@ button, input, textarea, select { font: inherit; }
|
|
|
410
410
|
/* ── Button · text (default) or filled (one per surface) ── */
|
|
411
411
|
.app-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-8);min-height:var(--control-height);padding:0 var(--space-24);border:0;border-radius:var(--radius-pill);background:transparent;color:var(--on-surface);font-family:var(--font-sans);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0;text-decoration:none;white-space:nowrap}
|
|
412
412
|
.app-btn .app-icon{font-size:16px;margin-left:calc(var(--space-8) * -1)}
|
|
413
|
+
/* A trailing glyph (open_in_new, a menu's chevron) pulls into the end padding instead */
|
|
414
|
+
.app-btn .app-icon--trailing{margin-left:0;margin-right:calc(var(--space-8) * -1)}
|
|
413
415
|
.app-btn--filled{padding:0 var(--space-24);background:var(--primary);color:var(--on-primary);font-weight:700;transition:border-radius var(--dur-spatial) var(--motion-spatial),transform var(--dur-spatial) var(--motion-spatial),background-color var(--dur-effects) var(--motion-effects)}
|
|
414
416
|
.app-btn--outlined{border:1px solid var(--outline-variant);background:var(--surface)}
|
|
415
417
|
.app-btn--error{color:var(--error)}
|
|
@@ -896,7 +898,7 @@ span.app-account__avatar{display:flex;align-items:center;justify-content:center;
|
|
|
896
898
|
.app-handoff{display:flex;flex-direction:column;gap:var(--space-16);min-width:0}
|
|
897
899
|
.app-handoff__choices{display:flex;flex-direction:column;min-width:0}
|
|
898
900
|
.app-handoff__back{margin-inline-start:calc(var(--space-24) * -1)}
|
|
899
|
-
.app-handoff__label{margin:0}
|
|
901
|
+
.app-handoff__label,.app-handoff__body>p,.app-handoff>p{margin:0}
|
|
900
902
|
.app-handoff__status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
|
|
901
903
|
.app-handoff__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-8)}
|
|
902
904
|
.app-handoff__title{margin:0}
|
package/classes.json
CHANGED
package/components/AppButton.md
CHANGED
|
@@ -11,7 +11,7 @@ Emphasis is allocated, not chosen ([buttons.md](../rules/buttons.md)).
|
|
|
11
11
|
- Cyan text is a link, never a button.
|
|
12
12
|
- **Error** (`app-btn--error`) for destructive actions, at the same level. **Quiet** (`app-btn--quiet`, `on-surface-variant`) for a quiet action beside content.
|
|
13
13
|
- No tonal or elevated buttons. A filled button scales to 97% and rounds to 12px when pressed (the CSS does it).
|
|
14
|
-
- **A word or a glyph, never both, outside the lexicon** ([buttons.md](../rules/buttons.md) § The form): `add` (New, Add), `upload`, `download`, `content_copy` (Copy) and `edit` lead their verb wherever it appears; `edit_square` leads a new conversation; a trailing chevron opens a menu and a trailing `open_in_new` leaves the product; a third party's mark leads a hand-off to them. No glyph on a filled button or a dialog's affirmative.
|
|
14
|
+
- **A word or a glyph, never both, outside the lexicon** ([buttons.md](../rules/buttons.md) § The form): `add` (New, Add), `upload`, `download`, `content_copy` (Copy) and `edit` lead their verb wherever it appears; `edit_square` leads a new conversation; a trailing chevron opens a menu and a trailing `open_in_new` leaves the product, each with `app-icon--trailing` so it pulls into the end padding as a leading glyph pulls into the start; a third party's mark leads a hand-off to them. No glyph on a filled button or a dialog's affirmative.
|
|
15
15
|
- **A shortcut** never goes in the label. A button with one takes an [AppTooltip](AppTooltip.md) that says the label and its keys, and `aria-keyshortcuts` ([shortcuts.md](../rules/shortcuts.md)); a button without one has no tooltip.
|
|
16
16
|
- The visible box is `control-height` (36px, 48 on touch), padded 24, and the target is `touch-target` ([buttons.md](../rules/buttons.md)). Text and outlined buttons are 600, the filled button 700. `app-btn--small` (32px, padded 12) belongs only in a table row. Inside a toggle group or table row, add `app-target--none`.
|
|
17
17
|
- **Loading** shows the work on the control the user pressed: a 16px spinner replaces the icon and the label stays (or becomes the present participle, "Deploying"). The button is busy, not disabled: full colour, presses ignored until it settles.
|
|
@@ -30,9 +30,9 @@ Emphasis is allocated, not chosen ([buttons.md](../rules/buttons.md)).
|
|
|
30
30
|
<span class="app-icon" aria-hidden="true">download</span>Download
|
|
31
31
|
</button>
|
|
32
32
|
|
|
33
|
-
<!-- Leaves the product: open_in_new trails, and the name says so -->
|
|
33
|
+
<!-- Leaves the product: open_in_new trails (app-icon--trailing), and the name says so -->
|
|
34
34
|
<a class="app-btn app-state app-target" href="…" target="_blank" rel="noopener noreferrer" aria-label="Logs, opens in a new tab">
|
|
35
|
-
Logs<span class="app-icon" aria-hidden="true">open_in_new</span>
|
|
35
|
+
Logs<span class="app-icon app-icon--trailing" aria-hidden="true">open_in_new</span>
|
|
36
36
|
</a>
|
|
37
37
|
|
|
38
38
|
<!-- Outlined: the lead of a title bar, pane or empty state, when it starts something.
|
package/components/AppHandOff.md
CHANGED
|
@@ -6,7 +6,7 @@ A task the person can do in **their own agent** (Claude, ChatGPT, Copilot, Codex
|
|
|
6
6
|
|
|
7
7
|
- **Where an agent can do the task.** A hand-off that **makes** something here (an interview, an artifact, a machine's setup) needs a way back: the agent saves to the project, or the person pastes the result into a named place. A hand-off that **carries on** something you already have (an artifact) may end in the agent: "Continue it with Claude" has two steps and no way back.
|
|
8
8
|
- **One per screen.** Repeated items (a list's rows, a grid of cards) never carry one each; theirs are the ⋯ menu rows.
|
|
9
|
-
- **List or button.** A flow that asks how to start (write it yourself, use what you have, or plan it with
|
|
9
|
+
- **List or button.** A flow that asks how to start (write it yourself, use what you have, or plan it with an agent) takes **the list** as its agent-led option, beside its own controls. That option is named **"[Verb] it with an agent"** ("Plan it with an agent"): it names the way of starting, and Alis is the first agent it offers. Never "with AI". A surface that already has a form and an affirmative takes **the button** in its action row.
|
|
10
10
|
- **The screen gives it three things**: the task's verb (below), the prompt and the way back. It never draws its own.
|
|
11
11
|
- **Doing it yourself is not part of it.** Writing a purpose by hand, or pasting your own questions, stay the flow's own controls beside the hand-off; they are never rows in its list.
|
|
12
12
|
|
|
@@ -43,7 +43,7 @@ Then the head (the label, then **Use another agent**), one line saying what the
|
|
|
43
43
|
2. **Use it in Claude**, with **Open Claude**, which opens the agent's start page in a new tab. An agent that runs commands has no start page: the step reads **Paste it into Claude Code**, with no button.
|
|
44
44
|
3. **The way back**, by how the result comes back:
|
|
45
45
|
- **Pasted**: "Bring the {result} back", with **Paste what Claude gave you**.
|
|
46
|
-
- **Saved by the agent**: "Review the draft", with a line ("It shows here when Claude Code has saved it.") until it exists, then **Open the draft**. No button before there is a draft.
|
|
46
|
+
- **Saved by the agent**: "Review the draft", with a line ("It shows here when Claude Code has saved it.") until it exists, then a line naming what was saved ("Saved as a draft: Why onboarding takes three weeks.") and **Open the draft**. No button before there is a draft.
|
|
47
47
|
- **Done on the machine** (Set up, Fix): "Check it here", with a line ("This page updates when Claude Code has finished.") and no button.
|
|
48
48
|
- **None** (Continue): no third step.
|
|
49
49
|
|
|
@@ -66,7 +66,7 @@ Under the steps of an agent that runs commands, when the way back needs the Alis
|
|
|
66
66
|
|
|
67
67
|
- **The ask**: one sentence in the person's voice, imperative, sentence case, ending in a full stop. "Help me plan an interview about why onboarding takes three weeks." Built from what the person has given so far; with nothing yet, from the project: "Help me plan an interview for Client onboarding." Always shown, on the machine ground behind the `signal` caret like a command to run ([AppCodeBlock](AppCodeBlock.md)). It is words, not code, so it wraps, still in mono.
|
|
68
68
|
- **The context**, in Markdown: everything the agent needs and the person doesn't need to read. The goal (what the person typed, else the project's goal), then each document by its name with its text, then the way back. For an agent that runs commands, the way back says where to save with the Alis CLI, and how to install the CLI and sign in when it is missing. For a chat, it says the form to give the result in, so the paste lands cleanly. A carry-on has no way back. This package sets no length limit; the product does.
|
|
69
|
-
- **One line says what the context carries**, under the ask: "With {what it carries, named and counted} and how to bring the {result} back." So: "With the goal, 3 documents and how to bring the questions back." A carry-on drops the last part: "With the brief's full text." **Show full prompt** (beside Copy prompt) opens the context above that row, in a box that scrolls past 12 lines.
|
|
69
|
+
- **One line says what the context carries**, under the ask: "With {what it carries, named and counted} and how to bring the {result} back." So: "With the goal, 3 documents and how to bring the questions back." For an agent that saves to the project: "…and how to save the {result} here." A carry-on drops the last part: "With the brief's full text." **Show full prompt** (beside Copy prompt) opens the context above that row, in a box that scrolls past 12 lines.
|
|
70
70
|
- **Copy prompt** copies the ask, a blank line, then the context. Never the caret.
|
|
71
71
|
- **Alis gets the same prompt**: the ask and the context are sent as the first message of a normal Alis chat.
|
|
72
72
|
- **Nothing copies until Copy prompt or Copy as prompt is pressed.** Picking a row or opening the steps never touches the clipboard.
|
|
@@ -150,7 +150,7 @@ Under the steps of an agent that runs commands, when the way back needs the Alis
|
|
|
150
150
|
<div class="app-handoff__body">
|
|
151
151
|
<h3 class="app-handoff__label text-label">Use it in Claude</h3>
|
|
152
152
|
<div class="app-btn-row app-btn-row--start">
|
|
153
|
-
<a class="app-btn app-state app-target" href="https://claude.ai/new" target="_blank" rel="noopener" aria-label="Open Claude, opens in a new tab">Open Claude<span class="app-icon" aria-hidden="true">open_in_new</span></a>
|
|
153
|
+
<a class="app-btn app-state app-target" href="https://claude.ai/new" target="_blank" rel="noopener" aria-label="Open Claude, opens in a new tab">Open Claude<span class="app-icon app-icon--trailing" aria-hidden="true">open_in_new</span></a>
|
|
154
154
|
</div>
|
|
155
155
|
</div>
|
|
156
156
|
</li>
|
|
@@ -180,4 +180,4 @@ Under the steps of an agent that runs commands, when the way back needs the Alis
|
|
|
180
180
|
|
|
181
181
|
## Classes
|
|
182
182
|
|
|
183
|
-
`.app-handoff` (the steps), `.app-handoff__choices` (the list), `.app-handoff__group` (the heading over each of the list's groups), `.app-handoff__back`, `.app-handoff__head`, `.app-handoff__title`, `.app-handoff__steps`, `.app-handoff__step`, `.app-handoff__body`, `.app-handoff__label`, `.app-handoff__ask` (with `.app-machine`), `.app-handoff__caret`, `.app-handoff__context`, `.app-handoff__status` (the visually hidden live region). `.app-handoff__more` is a hook for your script; it draws nothing. The list's rows are `.app-row--divided` in `.app-list`s; the buttons are `.app-btn` in `.app-btn-row`. The Back row and a step's button rows are pulled to the text edge, as the detail title bar's is, so a leading glyph (Copy prompt's) hangs 8px into the margin. The glyphs `counter_1` to `counter_3`, `forward`, `content_copy` and `open_in_new` belong in your self-hosted Material Symbols subset.
|
|
183
|
+
`.app-handoff` (the steps), `.app-handoff__choices` (the list), `.app-handoff__group` (the heading over each of the list's groups), `.app-handoff__back`, `.app-handoff__head`, `.app-handoff__title`, `.app-handoff__steps`, `.app-handoff__step`, `.app-handoff__body`, `.app-handoff__label`, `.app-handoff__ask` (with `.app-machine`), `.app-handoff__caret`, `.app-handoff__context`, `.app-handoff__status` (the visually hidden live region). `.app-handoff__more` is a hook for your script; it draws nothing. A `<p>` in the steps or a step takes no margin of its own; the gaps space it. Open's `open_in_new` takes `.app-icon--trailing` ([AppButton](AppButton.md)). The list's rows are `.app-row--divided` in `.app-list`s; the buttons are `.app-btn` in `.app-btn-row`. The Back row and a step's button rows are pulled to the text edge, as the detail title bar's is, so a leading glyph (Copy prompt's) hangs 8px into the margin. The glyphs `counter_1` to `counter_3`, `forward`, `content_copy` and `open_in_new` belong in your self-hosted Material Symbols subset.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.1",
|
|
4
4
|
"description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks, words and rules.",
|
|
5
5
|
"keywords": ["alisx", "design-system", "design-tokens", "css"],
|
|
6
6
|
"homepage": "https://alisx.com",
|
package/rules/buttons.md
CHANGED
|
@@ -167,7 +167,7 @@ The rest:
|
|
|
167
167
|
so filled on a recorder on its own it is the one filled button with a glyph. A lead takes its verb's landmark or none: "New environment" with `add`,
|
|
168
168
|
"Edit session" with `edit`.
|
|
169
169
|
- **One glyph.** It leads, except the two that say where the click goes (the
|
|
170
|
-
chevron, `open_in_new`), which trail
|
|
170
|
+
chevron, `open_in_new`), which trail and take `app-icon--trailing`.
|
|
171
171
|
- **Alis's actions say so in words** ("Draft it with Alis", the hand-off's shape:
|
|
172
172
|
[AppHandOff](../components/AppHandOff.md)). ✦ (`auto_awesome`)
|
|
173
173
|
marks what Alis wrote ([AppChip](../components/AppChip.md)), never a button.
|
package/words.json
CHANGED
|
@@ -284,9 +284,9 @@
|
|
|
284
284
|
{
|
|
285
285
|
"name": "your agent",
|
|
286
286
|
"product": "all",
|
|
287
|
-
"means": "The AI tool a person already uses outside AlisX: Claude, ChatGPT, Copilot, Codex, Gemini and the rest. Named by its own name wherever it is known (\"Plan it with Claude\"); \"your agent\" only where it isn't, and \"another agent\" on the last row of a list. Never Alis, who is named. A hand-off's label is [verb] it with [who]: \"Plan it with Alis\", \"Plan it with your agent\" (AppHandOff).",
|
|
287
|
+
"means": "The AI tool a person already uses outside AlisX: Claude, ChatGPT, Copilot, Codex, Gemini and the rest. Named by its own name wherever it is known (\"Plan it with Claude\"); \"your agent\" only where it isn't, and \"another agent\" on the last row of a list. Never Alis, who is named. A hand-off's label is [verb] it with [who]: \"Plan it with Alis\", \"Plan it with your agent\". A flow's way in that offers Alis and outside agents together is \"[verb] it with an agent\" (\"Plan it with an agent\"), never \"with AI\" (AppHandOff).",
|
|
288
288
|
"retired": ["your AI tool"],
|
|
289
|
-
"avoid": ["AI tool", "your AI (Alis is an AI too)", "your assistant"]
|
|
289
|
+
"avoid": ["AI tool", "your AI (Alis is an AI too)", "with AI (as a way in: \"with an agent\")", "your assistant"]
|
|
290
290
|
},
|
|
291
291
|
{
|
|
292
292
|
"name": "prompt",
|