@alis-build/design-system 0.15.1 → 0.16.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.
- package/alisx.css +3 -3
- package/components/AppFilePane.md +1 -1
- package/components/AppTitleBar.md +5 -4
- package/package.json +1 -1
- package/rules/page.md +6 -0
- package/rules/type.md +2 -2
- package/tokens.json +1 -1
package/alisx.css
CHANGED
|
@@ -361,7 +361,7 @@ button, input, textarea, select { font: inherit; }
|
|
|
361
361
|
/* ── Type-style completions the token classes can't carry ── */
|
|
362
362
|
.text-eyebrow{text-transform:uppercase}
|
|
363
363
|
.text-metric-value{font-variant-numeric:tabular-nums}
|
|
364
|
-
@media (max-width:599px){.text-welcome-title{font-size:32px;line-height:40px}.text-page-title{font-size:
|
|
364
|
+
@media (max-width:599px){.text-welcome-title{font-size:32px;line-height:40px}.text-page-title{font-size:20px;line-height:28px;letter-spacing:-0.02em}}
|
|
365
365
|
|
|
366
366
|
/* ── Face and weight, beside a role class: the role keeps the size ── */
|
|
367
367
|
.text-mono{font-family:var(--font-mono)}
|
|
@@ -567,7 +567,7 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
567
567
|
@media (max-width:599px){.app-wide-only{display:none!important}}
|
|
568
568
|
/* Compact window: one 56 bar. Menu or back, the name, the lead as its glyph alone, then ⋯ holding every other verb.
|
|
569
569
|
Its 48 targets sit 4 in and its glyphs 16 in; a name with nothing before it starts on the content's 24 edge. A row's meta gives way to its title */
|
|
570
|
-
@media (max-width:599px){.app-titlebar:not(.app-titlebar--detail){gap:0;padding:env(safe-area-inset-top,0px) var(--space-8) 0}.app-titlebar:not(.app-titlebar--detail) .app-titlebar__row{flex-wrap:nowrap;gap:0;min-height:
|
|
570
|
+
@media (max-width:599px){.app-titlebar:not(.app-titlebar--detail){gap:0;padding:env(safe-area-inset-top,0px) var(--space-8) 0}.app-titlebar:not(.app-titlebar--detail) .app-titlebar__row{flex-wrap:nowrap;gap:0;min-height:64px}.app-titlebar:not(.app-titlebar--detail) .app-titlebar__name{flex:1;gap:var(--space-4)}.app-titlebar:not(.app-titlebar--detail) .app-titlebar__leading{margin-left:0}.app-titlebar:not(.app-titlebar--detail) .app-titlebar__name:not(:has(.app-titlebar__leading)) .app-titlebar__title{padding-left:var(--space-16)}.app-titlebar:not(.app-titlebar--detail) .app-titlebar__actions{flex-wrap:nowrap;gap:0;margin-left:0}.app-titlebar__lead{width:40px;min-width:0;height:40px;padding:0;gap:0;border-color:transparent;background:transparent;color:var(--on-surface)}.app-titlebar__lead .app-icon{margin:0;font-size:24px}.app-titlebar:not(.app-titlebar--detail) .app-tabs{margin:0 calc(var(--space-8) * -1);padding:0 var(--space-8)}.app-titlebar__lead .app-titlebar__label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.app-titlebar .app-icon-btn{color:var(--on-surface)}.app-row:not(.app-row--nav):not(.app-row--agent-chat) .app-row__meta{display:none}}
|
|
571
571
|
/* The filter row sits in .app-shell__content, which already pads the sides */
|
|
572
572
|
.app-filterrow{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8)}
|
|
573
573
|
/* Search leads the row; the controls follow it; the count closes the row and answers them */
|
|
@@ -680,7 +680,7 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
680
680
|
.app-file-pane__line{flex:none;margin:0;padding:var(--space-8) var(--space-24);border-top:1px solid var(--outline-variant);color:var(--on-surface-variant)}
|
|
681
681
|
.app-file-pane__state{display:flex;flex-direction:column;min-height:100%}
|
|
682
682
|
.app-file-pane__body>.app-skel{max-width:var(--measure-prose);margin:0 auto;padding:var(--space-32) var(--space-24)}
|
|
683
|
-
@media (max-width:599px){.app-file-pane__bar{min-height:
|
|
683
|
+
@media (max-width:599px){.app-file-pane__bar{min-height:64px;padding:env(safe-area-inset-top,0px) var(--space-4) 0;gap:var(--space-4)}.app-file-pane__bar .app-icon-btn{color:var(--on-surface)}.app-file-pane__tools>.app-seg{margin-right:0}.app-file-pane__tools .app-seg__item{padding:0 var(--space-12)}.app-file-pane__word{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
|
|
684
684
|
|
|
685
685
|
/* ── Navigation pane · brand, account card ── */
|
|
686
686
|
.app-brand{display:flex;align-items:center;min-height:48px;padding:0 var(--space-16);margin-bottom:var(--space-16)}
|
|
@@ -31,7 +31,7 @@ See [page.md](../rules/page.md) § A file beside the conversation.
|
|
|
31
31
|
|
|
32
32
|
- **States.** The bar is there from the first frame, since the tile knows the title and the kind; only the body waits. *Loading*: [AppSkeleton](AppSkeleton.md)'s text shape, after 300ms ([loading.md](../rules/loading.md)). *Can't load*: "Couldn't load this file", one supporting line, an outlined Try again, in ink (nothing you did failed). *Too large to show*: "Too large to show here", the name and size, an outlined Download. The product sets the limits per kind.
|
|
33
33
|
- **Expand** (`open_in_full`, "Expand") lets the file take the conversation's place; the navigation pane stays. The same button, now `close_fullscreen` and "Show the chat", brings it back, and so does Esc. Below 1200 there is no Expand: the file already has the content's place.
|
|
34
|
-
- **Below 1200 and on a phone it is flat and full-bleed**, since it has the content's place: no card. **On a phone** the pane is the whole screen, a step deeper: back (`arrow_back`) leads, and the phone's back gesture closes it. The switch shows its glyphs alone (`visibility`, `code`), each still named, and Copy and Download go into ⋯ ([AppMenu](AppMenu.md)). No Expand.
|
|
34
|
+
- **Below 1200 and on a phone it is flat and full-bleed**, since it has the content's place: no card. **On a phone** the pane is the whole screen, a step deeper, under a 64 bar like the title bar's: back (`arrow_back`) leads, and the phone's back gesture closes it. The switch shows its glyphs alone (`visibility`, `code`), each still named, and Copy and Download go into ⋯ ([AppMenu](AppMenu.md)). No Expand.
|
|
35
35
|
- **While it is open, the composer's context chip carries the file** ([AppComposer](AppComposer.md) § Row: Context): its glyph and file name. Closing the chip keeps the pane (you're still looking; you just don't tell Alis), and closing the pane takes the chip.
|
|
36
36
|
|
|
37
37
|
## Markup
|
|
@@ -8,6 +8,7 @@ See [page.md](../rules/page.md).
|
|
|
8
8
|
|
|
9
9
|
- **The name is the screen, alone**: never a breadcrumb. One page-title per screen, and the bar has it. A detail screen (its own route) leads with a back [AppIconButton](AppIconButton.md) and keeps the page-title.
|
|
10
10
|
- **The lead is outlined, never filled**: the action that brings a thing into the screen (`app-btn--outlined`, "New environment"), led by `add` when it is New or Add, and by `edit_square` when it starts a new conversation ("New chat"). Other verbs are default-size text buttons and small icon buttons, and no icon on a single verb. The screen's one filled button belongs in the content. Destructive takes `app-btn--error`.
|
|
11
|
+
- **One order, by weight**: the lead, then text buttons, then icon buttons, ⋯ last ([page.md](../rules/page.md) § The title bar). The lead sits beside the name; ⋯ closes the row at every width, so the phone's bar is the same row folded. A destructive verb is the last before ⋯, or inside it.
|
|
11
12
|
- **Never status.** The bar names the screen and holds its verbs: no meter, no usage ring, no saving state, no count. A thing's state is a chip on the detail bar's row or in the content; an account's usage is a row in the account menu ([AppShell](AppShell.md) § The account menu).
|
|
12
13
|
- **The verbs follow the route**: each tab shows the verbs that act on what it shows, and none when there is nothing to act on.
|
|
13
14
|
- **A long name** truncates with an ellipsis and shows in full on hover; never wrap it.
|
|
@@ -16,16 +17,16 @@ See [page.md](../rules/page.md).
|
|
|
16
17
|
- **The filter row** is the first thing in `.app-shell__content` (which pads it), one row that narrows the list: search first, then the filters, then the count at the far end ("12 interviews", "3 of 12" while something narrows). Below 600px, search takes the whole first line.
|
|
17
18
|
- **When the list is empty**, keep the name and the verb; hide search and the filter row.
|
|
18
19
|
|
|
19
|
-
**On a phone** (below 600px) the bar is one row,
|
|
20
|
+
**On a phone** (below 600px) the bar is one row, 64 tall (Material 3's small app bar), and holds four things and nothing else:
|
|
20
21
|
|
|
21
22
|
1. **Leading**: the menu button (`menu`), which opens the navigation drawer ([AppShell](AppShell.md)); back (`arrow_back`) on a detail route. Nothing on a screen with no navigation (joining an interview, signing in).
|
|
22
|
-
2. **The name**, page-title at its compact step (
|
|
23
|
+
2. **The name**, page-title at its compact step (20/28 at 700, a step above the section-titles under it), truncating.
|
|
23
24
|
3. **The lead as its glyph alone**, its label the accessible name. A lead whose glyph wouldn't read on its own ("Generate key", "Install block") leaves the bar and leads ⋯ instead; a lead with no glyph above 600 can carry one for the phone (`edit` for "Edit session", `app-compact-only` on the glyph).
|
|
24
25
|
4. **⋯** (`more_vert`), an [AppMenu](AppMenu.md) holding every other verb in the order they had, anything destructive last behind a divider. Left out when there are none. Rename lives here: never a double tap on the name.
|
|
25
26
|
|
|
26
27
|
The tabs scroll under it; the filter row is unchanged. The bar has no hairline at rest; add one (an `outline-variant` inset shadow) while content scrolls under it. Mark the parts that exist on only one side `app-compact-only` or `app-wide-only`, so one markup serves both.
|
|
27
28
|
|
|
28
|
-
**Detail bar** (`app-titlebar--detail`), the bar of a detail pane beside a list: a close icon button leading, the selected thing's name in section-title (the screen already has its page-title), and one row under the name: the thing's state first when it has one (a small chip), then its verbs as text buttons, wrapping in a narrow pane, so a 360px pane never truncates the name and the bar stays two rows. Where the pane's content is a centred column (a conversation at the prose measure), the bar aligns to that column. No search, no tabs. On a phone the pane covers the window and its close becomes back (`arrow_back`). The pane pads it; add nothing.
|
|
29
|
+
**Detail bar** (`app-titlebar--detail`), the bar of a detail pane beside a list: a close icon button leading, the selected thing's name in section-title (the screen already has its page-title), and one row under the name: the thing's state first when it has one (a small chip), then its verbs as text buttons in the bar's order, wrapping in a narrow pane, so a 360px pane never truncates the name and the bar stays two rows. Where the pane's content is a centred column (a conversation at the prose measure), the bar aligns to that column. No search, no tabs. On a phone the pane covers the window and its close becomes back (`arrow_back`). The pane pads it; add nothing.
|
|
29
30
|
|
|
30
31
|
## Markup
|
|
31
32
|
|
|
@@ -58,8 +59,8 @@ The tabs scroll under it; the filter row is unchanged. The bar has no hairline a
|
|
|
58
59
|
<h1 class="app-titlebar__title text-page-title" title="Customer onboarding research">Customer onboarding research</h1>
|
|
59
60
|
</div>
|
|
60
61
|
<div class="app-titlebar__actions">
|
|
61
|
-
<button type="button" class="app-btn app-state app-target app-wide-only">Set project goal</button>
|
|
62
62
|
<button type="button" class="app-btn app-state app-target app-btn--outlined app-titlebar__lead"><span class="app-icon" aria-hidden="true">add</span><span class="app-titlebar__label">Add contribution</span></button>
|
|
63
|
+
<button type="button" class="app-btn app-state app-target app-wide-only">Set project goal</button>
|
|
63
64
|
<button type="button" class="app-icon-btn app-state app-target app-compact-only" aria-label="More actions" aria-haspopup="menu" aria-expanded="false" aria-controls="m-bar"><span class="app-icon" aria-hidden="true">more_vert</span></button>
|
|
64
65
|
</div>
|
|
65
66
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks and rules.",
|
|
5
5
|
"keywords": ["alisx", "design-system", "design-tokens", "css"],
|
|
6
6
|
"homepage": "https://alisx.com",
|
package/rules/page.md
CHANGED
|
@@ -50,6 +50,12 @@ filter**, and a filter belongs in the filter row as a segmented control
|
|
|
50
50
|
content ([buttons.md](buttons.md)). Destructive takes `error` ink. A split
|
|
51
51
|
action is a button and a `more_vert` icon button whose menu holds the
|
|
52
52
|
alternatives, never a button group.
|
|
53
|
+
- **One order, by weight: the lead, then text buttons, then icon buttons, ⋯
|
|
54
|
+
last.** The lead sits beside the name, where Material puts the action used most,
|
|
55
|
+
and each control after it weighs less. ⋯ closes the row at every width, so the
|
|
56
|
+
phone's bar is the same row folded: the lead's glyph, then ⋯ holding what
|
|
57
|
+
followed it, in its order. A split action's `more_vert` stays beside its button;
|
|
58
|
+
a destructive verb is the last before ⋯, or inside it.
|
|
53
59
|
- **Controls sit in a row with an 8px gap**, never per-control margins. A leading
|
|
54
60
|
back or close button pulls its glyph onto the 24px edge the title uses.
|
|
55
61
|
- **The verbs follow the route**: each route tab shows the verbs that act on what
|
package/rules/type.md
CHANGED
|
@@ -31,8 +31,8 @@ Default when unsure: **body**.
|
|
|
31
31
|
|
|
32
32
|
Three more styles, each with one place:
|
|
33
33
|
|
|
34
|
-
- **`text-page-title` on a phone** is
|
|
35
|
-
section-
|
|
34
|
+
- **`text-page-title` on a phone** is 20/28 at 700 (below 600px): a step above
|
|
35
|
+
the section-titles under it, so a long name has room in the one-row 64 bar
|
|
36
36
|
([AppTitleBar](../components/AppTitleBar.md) § On a phone) and still reads as the
|
|
37
37
|
screen's name over the sections under it. The CSS steps it; there is no second class.
|
|
38
38
|
- **`text-welcome-title`**, 40/48 at 800 (32/40 below 600px): the heading of an
|
package/tokens.json
CHANGED
|
@@ -1172,7 +1172,7 @@
|
|
|
1172
1172
|
"lineHeight": "36px",
|
|
1173
1173
|
"fontWeight": 700,
|
|
1174
1174
|
"letterSpacing": "-0.03em",
|
|
1175
|
-
"usage": "Names the whole screen. One per screen, in the title bar.
|
|
1175
|
+
"usage": "Names the whole screen. One per screen, in the title bar. 20/28 below 600px, still at 700."
|
|
1176
1176
|
},
|
|
1177
1177
|
{
|
|
1178
1178
|
"name": "text-section-title",
|