@alis-build/design-system 0.15.2 → 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 +2 -2
- package/package.json +1 -1
- 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
|
|
@@ -17,10 +17,10 @@ See [page.md](../rules/page.md).
|
|
|
17
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.
|
|
18
18
|
- **When the list is empty**, keep the name and the verb; hide search and the filter row.
|
|
19
19
|
|
|
20
|
-
**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:
|
|
21
21
|
|
|
22
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).
|
|
23
|
-
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.
|
|
24
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).
|
|
25
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.
|
|
26
26
|
|
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/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",
|