@alis-build/design-system 0.16.0 → 0.17.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 +7 -3
- package/components/AppTitleBar.md +1 -1
- package/package.json +1 -1
- package/rules/type.md +3 -1
- package/tokens.css +1 -0
- package/tokens.json +16 -2
package/alisx.css
CHANGED
|
@@ -141,6 +141,7 @@
|
|
|
141
141
|
--touch-target: 32px;
|
|
142
142
|
--touch-target-coarse: 48px;
|
|
143
143
|
--control-height: 36px;
|
|
144
|
+
--titlebar-height-phone: 64px;
|
|
144
145
|
--measure-prose: 710px;
|
|
145
146
|
--nav-width: 256px;
|
|
146
147
|
--detail-width: 360px;
|
|
@@ -328,6 +329,10 @@
|
|
|
328
329
|
.mono { font-family: var(--font-mono); font-size: 0.93rem; line-height: 1.5; font-weight: 400; letter-spacing: 0; }
|
|
329
330
|
.mono-sm { font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.5; font-weight: 400; letter-spacing: 0; }
|
|
330
331
|
.mono-xs { font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.4; font-weight: 700; letter-spacing: 0.12em; }
|
|
332
|
+
@media (max-width: 599px) {
|
|
333
|
+
.text-welcome-title { font-size: 32px; line-height: 40px; }
|
|
334
|
+
.text-page-title { font-size: 20px; line-height: 28px; letter-spacing: -0.02em; }
|
|
335
|
+
}
|
|
331
336
|
|
|
332
337
|
/* Product base. A marketing page overrides it with <body class="ax-page">. */
|
|
333
338
|
*, *::before, *::after { box-sizing: border-box; }
|
|
@@ -361,7 +366,6 @@ button, input, textarea, select { font: inherit; }
|
|
|
361
366
|
/* ── Type-style completions the token classes can't carry ── */
|
|
362
367
|
.text-eyebrow{text-transform:uppercase}
|
|
363
368
|
.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:20px;line-height:28px;letter-spacing:-0.02em}}
|
|
365
369
|
|
|
366
370
|
/* ── Face and weight, beside a role class: the role keeps the size ── */
|
|
367
371
|
.text-mono{font-family:var(--font-mono)}
|
|
@@ -567,7 +571,7 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
567
571
|
@media (max-width:599px){.app-wide-only{display:none!important}}
|
|
568
572
|
/* Compact window: one 56 bar. Menu or back, the name, the lead as its glyph alone, then ⋯ holding every other verb.
|
|
569
573
|
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:
|
|
574
|
+
@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:var(--titlebar-height-phone)}.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
575
|
/* The filter row sits in .app-shell__content, which already pads the sides */
|
|
572
576
|
.app-filterrow{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8)}
|
|
573
577
|
/* Search leads the row; the controls follow it; the count closes the row and answers them */
|
|
@@ -680,7 +684,7 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
680
684
|
.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
685
|
.app-file-pane__state{display:flex;flex-direction:column;min-height:100%}
|
|
682
686
|
.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:
|
|
687
|
+
@media (max-width:599px){.app-file-pane__bar{min-height:var(--titlebar-height-phone);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
688
|
|
|
685
689
|
/* ── Navigation pane · brand, account card ── */
|
|
686
690
|
.app-brand{display:flex;align-items:center;min-height:48px;padding:0 var(--space-16);margin-bottom:var(--space-16)}
|
|
@@ -17,7 +17,7 @@ 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, 64 tall (Material 3's small app bar), and holds four things and nothing else:
|
|
20
|
+
**On a phone** (below 600px) the bar is one row, 64 tall (`titlebar-height-phone`, 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
23
|
2. **The name**, page-title at its compact step (20/28 at 700, a step above the section-titles under it), truncating.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.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
|
@@ -34,7 +34,9 @@ Three more styles, each with one place:
|
|
|
34
34
|
- **`text-page-title` on a phone** is 20/28 at 700 (below 600px): a step above
|
|
35
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
|
-
screen's name over the sections under it.
|
|
37
|
+
screen's name over the sections under it. There is no second class: the style
|
|
38
|
+
carries it as its `phone` step in tokens.json, and alisx.css applies it below
|
|
39
|
+
600 (`breakpoint-compact`), as it does welcome-title's.
|
|
38
40
|
- **`text-welcome-title`**, 40/48 at 800 (32/40 below 600px): the heading of an
|
|
39
41
|
entry screen that addresses the user ([page.md](page.md)). Never a table, form,
|
|
40
42
|
dialog or card.
|
package/tokens.css
CHANGED
package/tokens.json
CHANGED
|
@@ -1164,7 +1164,11 @@
|
|
|
1164
1164
|
"lineHeight": "48px",
|
|
1165
1165
|
"fontWeight": 800,
|
|
1166
1166
|
"letterSpacing": "-0.03em",
|
|
1167
|
-
"
|
|
1167
|
+
"phone": {
|
|
1168
|
+
"fontSize": "32px",
|
|
1169
|
+
"lineHeight": "40px"
|
|
1170
|
+
},
|
|
1171
|
+
"usage": "An entry screen that addresses the user. Never a table, form, dialog or card."
|
|
1168
1172
|
},
|
|
1169
1173
|
{
|
|
1170
1174
|
"name": "text-page-title",
|
|
@@ -1172,7 +1176,12 @@
|
|
|
1172
1176
|
"lineHeight": "36px",
|
|
1173
1177
|
"fontWeight": 700,
|
|
1174
1178
|
"letterSpacing": "-0.03em",
|
|
1175
|
-
"
|
|
1179
|
+
"phone": {
|
|
1180
|
+
"fontSize": "20px",
|
|
1181
|
+
"lineHeight": "28px",
|
|
1182
|
+
"letterSpacing": "-0.02em"
|
|
1183
|
+
},
|
|
1184
|
+
"usage": "Names the whole screen. One per screen, in the title bar."
|
|
1176
1185
|
},
|
|
1177
1186
|
{
|
|
1178
1187
|
"name": "text-section-title",
|
|
@@ -1384,6 +1393,11 @@
|
|
|
1384
1393
|
"value": "36px",
|
|
1385
1394
|
"usage": "The visible height of a button, text field, select, search field and segmented control, so a row of controls has one height. touch-target-coarse under a coarse pointer."
|
|
1386
1395
|
},
|
|
1396
|
+
{
|
|
1397
|
+
"name": "titlebar-height-phone",
|
|
1398
|
+
"value": "64px",
|
|
1399
|
+
"usage": "The phone's title bar below 600px (breakpoint-compact): one row, Material 3's small top app bar. The file pane's phone bar takes it too."
|
|
1400
|
+
},
|
|
1387
1401
|
{
|
|
1388
1402
|
"name": "measure-prose",
|
|
1389
1403
|
"value": "710px",
|