@alis-build/design-system 0.1.0 → 0.2.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 +12 -8
- package/components/AlisMark.md +2 -2
- package/components/AppListRow.md +1 -1
- package/components/AppShell.md +50 -19
- package/components/README.md +10 -8
- package/package.json +1 -1
- package/rules/README.md +1 -1
- package/rules/colour.md +3 -2
- package/rules/known-gaps.md +1 -1
- package/rules/quick-start.md +1 -1
- package/tokens.json +1 -1
package/alisx.css
CHANGED
|
@@ -454,14 +454,18 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
454
454
|
/* breakpoint-medium (840): the detail pane slides over the content */
|
|
455
455
|
@media (max-width:839px){.app-shell--detail{grid-template-columns:var(--nav-width) minmax(0,1fr)}.app-shell__detail{position:fixed;top:0;right:0;bottom:0;width:min(var(--detail-width),100%);background:var(--surface);box-shadow:var(--elevation-3),0 0 0 100vmax color-mix(in srgb,var(--scrim) 32%,transparent);border-left:0;z-index:2}}
|
|
456
456
|
/* breakpoint-compact (600): the navigation pane collapses to a column of icons */
|
|
457
|
-
@media (max-width:599px){.app-shell,.app-shell--detail{grid-template-columns:72px minmax(0,1fr)}.app-shell .app-
|
|
458
|
-
|
|
459
|
-
/* ──
|
|
460
|
-
.app-
|
|
461
|
-
.app-
|
|
462
|
-
.app-
|
|
463
|
-
.app-
|
|
464
|
-
.app-
|
|
457
|
+
@media (max-width:599px){.app-shell,.app-shell--detail{grid-template-columns:72px minmax(0,1fr)}.app-shell .app-brand__wordmark,.app-shell .app-nav-heading,.app-shell .app-account__text,.app-shell .app-account>.app-icon,.app-shell .app-row--nav .app-row__trailing{display:none}.app-shell .app-brand__mark{display:block}.app-shell .app-row--nav{gap:0;padding:0;justify-content:center}.app-shell .app-row--nav .app-row__text{flex:none;width:0;min-width:0;overflow:hidden}.app-shell__nav .app-row--agent-chat,.app-shell__nav .app-nav-secondary{display:none}.app-tab{padding:0 var(--space-16)}.app-tab.is-selected::after{left:var(--space-16);right:var(--space-16)}.app-shell__detail{width:100%}.app-shell .app-brand{padding:0;justify-content:center}.app-shell .app-account{justify-content:center;padding:var(--space-4);border-color:transparent}.app-shell .app-nav-action{margin-left:0;padding:0;width:48px;justify-content:center;font-size:0}.app-shell .app-nav-action .app-icon{margin:0}}
|
|
458
|
+
|
|
459
|
+
/* ── Navigation pane · brand, account card ── */
|
|
460
|
+
.app-brand{display:flex;align-items:center;min-height:var(--touch-target);padding:0 var(--space-16);margin-bottom:var(--space-16)}
|
|
461
|
+
.app-brand__wordmark{display:block;width:auto}
|
|
462
|
+
.app-brand__mark{display:none;width:auto}
|
|
463
|
+
.app-account{display:flex;align-items:center;gap:var(--space-12);width:100%;min-height:56px;margin-top:var(--space-8);padding:var(--space-8);border:1px solid var(--outline-variant);border-radius:var(--radius-lg);background:transparent;color:var(--on-surface);text-align:left;font:inherit}
|
|
464
|
+
.app-account__avatar{flex:none;width:36px;height:36px;border-radius:50%;object-fit:cover}
|
|
465
|
+
span.app-account__avatar{display:flex;align-items:center;justify-content:center;background:var(--surface-container-highest);color:var(--on-surface)}
|
|
466
|
+
.app-account__text{flex:1;min-width:0;display:flex;flex-direction:column}
|
|
467
|
+
.app-account__text>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
468
|
+
.app-account>.app-icon{color:var(--on-surface-variant)}
|
|
465
469
|
|
|
466
470
|
/* ── Empty state · speaks to the user; may take the drafting field ── */
|
|
467
471
|
.app-empty{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-8);min-height:320px;padding:var(--space-48) var(--space-24);text-align:center;color:var(--on-surface)}
|
package/components/AlisMark.md
CHANGED
|
@@ -6,7 +6,7 @@ The brand mark: eleven circles on a 30 × 50 grid.
|
|
|
6
6
|
|
|
7
7
|
- Both registers. Always red (`--alis-red`) on light grounds, white on petrol.
|
|
8
8
|
- Never recoloured to a product tone, never rotated, never boxed.
|
|
9
|
-
- Pair it with the word "Alis" or "AlisX" set in Nunito Sans 800 at -0.03em when a lockup is needed. In the product, the
|
|
9
|
+
- Pair it with the word "Alis" or "AlisX" set in Nunito Sans 800 at -0.03em when a lockup is needed. In the product, the AlisX wordmark asset heads the navigation pane ([AppShell](AppShell.md)'s `.app-brand`), and the mark alone in the collapsed rail.
|
|
10
10
|
- The one product use in another colour is [AppLoader](AppLoader.md), where the mark is drawn in `--signal` and its dots animate.
|
|
11
11
|
|
|
12
12
|
## Markup
|
|
@@ -31,4 +31,4 @@ Keep the circles in this order: the loader animates them by position (`nth-child
|
|
|
31
31
|
|
|
32
32
|
## Classes
|
|
33
33
|
|
|
34
|
-
None of its own. It sits inside `.app-
|
|
34
|
+
None of its own. It sits inside `.app-loader`; `.app-brand` takes the asset files.
|
package/components/AppListRow.md
CHANGED
|
@@ -7,7 +7,7 @@ A row in a list, the navigation pane or the agent chat list.
|
|
|
7
7
|
48px minimum; the whole row is the target. A list paints no surface.
|
|
8
8
|
|
|
9
9
|
- **Content** (default): a row in a content list. Title in object-title, an optional supporting line, an optional trailing slot (a small status [AppChip](AppChip.md), an [AppIconButton](AppIconButton.md)) and a meta value at the end. Selected takes the full `secondary-container` fill.
|
|
10
|
-
- **Nav** (`app-row--nav`): a destination in the navigation pane ([AppShell](AppShell.md)). 24px icon, label type, pill shape. The pane is permanent chrome, so its selected row takes the quieter `selection-chrome`. A heading over a group of rows is `.app-nav-heading text-eyebrow`.
|
|
10
|
+
- **Nav** (`app-row--nav`): a destination in the navigation pane ([AppShell](AppShell.md)). 24px icon, label type, pill shape. The pane is permanent chrome, so its selected row takes the quieter `selection-chrome`. A heading over a group of rows is `.app-nav-heading text-eyebrow`. A destination that can create takes a small `add` [AppIconButton](AppIconButton.md) in its trailing slot ("New project").
|
|
11
11
|
- **Agent chat** (`app-row--agent-chat`): the agent chat list, 32px rows, and nothing else. It is not a density option: no other list may use it, however alike it looks ([spacing.md](../rules/spacing.md)). Its menu button is 24px and projects no target.
|
|
12
12
|
- `app-row--divided` draws a hairline between consecutive rows.
|
|
13
13
|
- Selection is always two properties: the fill, and the icon at FILL 1 with the text at 800 (the CSS does both from `is-selected`).
|
package/components/AppShell.md
CHANGED
|
@@ -6,11 +6,17 @@ The frame of a product screen: the navigation pane, the content, and an optional
|
|
|
6
6
|
|
|
7
7
|
See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
|
|
8
8
|
|
|
9
|
-
- **
|
|
10
|
-
- **
|
|
11
|
-
- **
|
|
9
|
+
- **One rail for every product.** There is no product switcher and no product name in the chrome: every screen shows the same navigation pane, so moving between Alis Ideate and Alis Build is one click on a row.
|
|
10
|
+
- **Navigation pane** (`nav-width`, 288px), three regions:
|
|
11
|
+
- **Top**, fixed: the brand (`.app-brand`), the AlisX wordmark linking Home. It is the way home from every rail.
|
|
12
|
+
- **Middle**: app-wide destinations first (Home, Skill Store), then one group per product under an `.app-nav-heading` naming it ("Ideate", "Build"), its destinations as nav [AppListRow](AppListRow.md)s sitting flush (no gap between rows). A heading names a product in `on-surface-variant`, never in its tone. Whatever a screen adds after the groups (the agent chat list, under its own heading) follows them.
|
|
13
|
+
- **Foot**, pinned: Support as one nav row, then the account card (`.app-account`): who is signed in and which account they are working in. The card opens the account menu; switching account happens there.
|
|
14
|
+
- **A row's "new"** is a small [AppIconButton](AppIconButton.md) (`add`) in that row's trailing slot, with a tooltip naming it ("New project"), on rows whose destination can create.
|
|
15
|
+
- **The nav action**: at most one, for a screen whose main "new" has no row to sit on ("New environment", icon `add`): 56px, `primary`, `radius-lg`, `elevation-2`, above the rows. Most screens have none.
|
|
16
|
+
- **A contextual rail** (inside a project, an admin account, Support) keeps the brand and the foot and replaces the middle with that object's destinations. Open objects (the interviews you have open) are nav rows with `app-nav-secondary` under a heading.
|
|
17
|
+
- The pane is permanent chrome, so selection there is `selection-chrome`. Which destinations each product lists is product content, not part of this system.
|
|
12
18
|
- **Content**: an [AppTitleBar](AppTitleBar.md), then `.app-shell__content`, which pads 24 on every side (32 below) and fills the pane, holding the filter row and the list, table or document.
|
|
13
|
-
- **Detail pane** (`detail-width`, 360px): what is selected in the content, led by a detail title bar. It sits on the ground behind a divider, never on a card, and scrolls on its own. Below 840px it slides over the content at `elevation-3`; below 600px the navigation collapses to a 72px column
|
|
19
|
+
- **Detail pane** (`detail-width`, 360px): what is selected in the content, led by a detail title bar. It sits on the ground behind a divider, never on a card, and scrolls on its own. Below 840px it slides over the content at `elevation-3`; below 600px the navigation collapses to a 72px column (the mark alone, destination icons, the account's avatar; headings, secondary rows and agent chats hide) and the detail pane covers the full width, over a scrim. The CSS does all of this.
|
|
14
20
|
- No pane is a white card. Panes are separated by an `outline-variant` divider, not by fill.
|
|
15
21
|
|
|
16
22
|
## Markup
|
|
@@ -18,26 +24,48 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
|
|
|
18
24
|
```html
|
|
19
25
|
<div class="app-shell app-shell--detail"> <!-- drop --detail and the aside for two columns -->
|
|
20
26
|
<nav class="app-shell__nav" aria-label="Main">
|
|
21
|
-
<
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<span class="app-lockup__bar" aria-hidden="true"></span>
|
|
26
|
-
<span class="app-lockup__name text-object-title">Alis Build</span>
|
|
27
|
-
</div>
|
|
27
|
+
<a class="app-brand" href="/" aria-label="AlisX home">
|
|
28
|
+
<img class="app-brand__wordmark" src="assets/Brand/alis_exchange.svg" alt="" height="36">
|
|
29
|
+
<img class="app-brand__mark" src="assets/Brand/alis.svg" alt="" height="24">
|
|
30
|
+
</a>
|
|
28
31
|
|
|
29
32
|
<!-- Optional: the one nav action -->
|
|
30
33
|
<button type="button" class="app-nav-action app-state">
|
|
31
34
|
<span class="app-icon app-icon--24" aria-hidden="true">add</span>New environment
|
|
32
35
|
</button>
|
|
33
36
|
|
|
34
|
-
<!--
|
|
35
|
-
|
|
36
|
-
<p class="app-nav-heading text-eyebrow">
|
|
37
|
-
|
|
37
|
+
<!-- App-wide destinations: nav AppListRows (Home, Skill Store) -->
|
|
38
|
+
|
|
39
|
+
<p class="app-nav-heading text-eyebrow">Ideate</p>
|
|
40
|
+
<div class="app-row app-state app-row--nav">
|
|
41
|
+
<span class="app-icon app-icon--mark app-icon--24 app-row__icon" aria-hidden="true"><!-- alis_projects SVG --></span>
|
|
42
|
+
<span class="app-row__text"><a class="app-row__hit text-label" href="/ideate/projects">Projects</a></span>
|
|
43
|
+
<span class="app-row__trailing">
|
|
44
|
+
<button type="button" class="app-icon-btn app-icon-btn--small app-state app-target" aria-label="New project" title="New project">
|
|
45
|
+
<span class="app-icon" aria-hidden="true">add</span>
|
|
46
|
+
</button>
|
|
47
|
+
</span>
|
|
48
|
+
</div>
|
|
49
|
+
<!-- …the rest of Ideate's rows -->
|
|
50
|
+
|
|
51
|
+
<p class="app-nav-heading text-eyebrow">Build</p>
|
|
52
|
+
<!-- Build's rows -->
|
|
53
|
+
|
|
54
|
+
<!-- Optional: the agent chat list, under its own heading -->
|
|
38
55
|
|
|
39
56
|
<div class="app-shell__nav-foot">
|
|
40
|
-
|
|
57
|
+
<div class="app-row app-state app-row--nav">
|
|
58
|
+
<span class="app-icon app-icon--24 app-row__icon" aria-hidden="true">support</span>
|
|
59
|
+
<span class="app-row__text"><a class="app-row__hit text-label" href="/support">Support</a></span>
|
|
60
|
+
</div>
|
|
61
|
+
<button type="button" class="app-account app-state" aria-haspopup="menu" aria-expanded="false">
|
|
62
|
+
<img class="app-account__avatar" src="…" alt="">
|
|
63
|
+
<span class="app-account__text">
|
|
64
|
+
<span class="text-object-title">Ruth Moyo</span>
|
|
65
|
+
<span class="text-supporting">Acme Research</span>
|
|
66
|
+
</span>
|
|
67
|
+
<span class="app-icon" aria-hidden="true">unfold_more</span>
|
|
68
|
+
</button>
|
|
41
69
|
</div>
|
|
42
70
|
</nav>
|
|
43
71
|
|
|
@@ -54,13 +82,16 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
|
|
|
54
82
|
</div>
|
|
55
83
|
```
|
|
56
84
|
|
|
57
|
-
|
|
85
|
+
Group headings are the product's short name, "Ideate" and "Build"; the full names (*Alis Ideate*, *Alis Build*) are for copy.
|
|
58
86
|
|
|
59
87
|
## Behaviour you must supply
|
|
60
88
|
|
|
61
89
|
- Add `app-shell--detail` and the `<aside>` only while something is selected; remove both when the detail pane closes, and return focus to the row that opened it.
|
|
62
|
-
-
|
|
90
|
+
- When the rail runs long, scroll only the region after the product groups (the agent chat list); the brand, the groups and the foot stay put.
|
|
91
|
+
- The account card opens a menu (toggle `aria-expanded`) holding the account list, then profile and sign out.
|
|
92
|
+
- No photo: the person's initial in `<span class="app-account__avatar text-label" aria-hidden="true">R</span>`.
|
|
93
|
+
- Below 600px the nav action's label is hidden visually (font-size 0) but still names the button; keep the text in it. The brand link keeps its `aria-label`, since both images are decorative.
|
|
63
94
|
|
|
64
95
|
## Classes
|
|
65
96
|
|
|
66
|
-
`.app-shell`, `.app-shell--detail`, `.app-shell__nav`, `.app-shell__nav-foot`, `.app-shell__main`, `.app-shell__content`, `.app-shell__detail`; `.app-
|
|
97
|
+
`.app-shell`, `.app-shell--detail`, `.app-shell__nav`, `.app-shell__nav-foot`, `.app-shell__main`, `.app-shell__content`, `.app-shell__detail`; `.app-brand`, `.app-brand__wordmark`, `.app-brand__mark`; `.app-nav-action`, `.app-nav-heading`, `.app-nav-secondary`; `.app-account`, `.app-account__avatar`, `.app-account__text`.
|
package/components/README.md
CHANGED
|
@@ -14,7 +14,7 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
|
|
|
14
14
|
|
|
15
15
|
| Component | What it is | Guide |
|
|
16
16
|
|---|---|---|
|
|
17
|
-
| AppShell |
|
|
17
|
+
| AppShell | The one navigation rail, content, optional detail pane; the brand, the account card and the nav action | [AppShell.md](AppShell.md) |
|
|
18
18
|
| AppTitleBar | The screen's name, search, verbs and route tabs; the detail bar; the filter row | [AppTitleBar.md](AppTitleBar.md) |
|
|
19
19
|
| AppEmptyState | An empty pane that invites a first step | [AppEmptyState.md](AppEmptyState.md) |
|
|
20
20
|
| AppIcon | A Material Symbol, or a capability mark | [AppIcon.md](AppIcon.md) |
|
|
@@ -45,20 +45,22 @@ The screen most product work becomes. Build it, then fill in the behaviour from
|
|
|
45
45
|
```html
|
|
46
46
|
<div class="app-shell app-shell--detail">
|
|
47
47
|
<nav class="app-shell__nav" aria-label="Main">
|
|
48
|
-
<
|
|
49
|
-
<
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
<a class="app-brand" href="/" aria-label="AlisX home">
|
|
49
|
+
<img class="app-brand__wordmark" src="assets/Brand/alis_exchange.svg" alt="" height="36">
|
|
50
|
+
<img class="app-brand__mark" src="assets/Brand/alis.svg" alt="" height="24">
|
|
51
|
+
</a>
|
|
52
|
+
<!-- Home, Skill Store, then Ideate's group -->
|
|
53
|
+
<p class="app-nav-heading text-eyebrow">Build</p>
|
|
53
54
|
<div class="app-row app-state app-row--nav is-selected">
|
|
54
55
|
<span class="app-icon app-icon--mark app-icon--24 app-row__icon" aria-hidden="true"><!-- alis_environments SVG --></span>
|
|
55
56
|
<span class="app-row__text"><a class="app-row__hit text-label" href="/environments" aria-current="page">Environments</a></span>
|
|
56
57
|
</div>
|
|
57
58
|
<div class="app-shell__nav-foot">
|
|
58
59
|
<div class="app-row app-state app-row--nav">
|
|
59
|
-
<span class="app-icon app-icon--24 app-row__icon" aria-hidden="true">
|
|
60
|
-
<span class="app-row__text"><a class="app-row__hit text-label" href="/
|
|
60
|
+
<span class="app-icon app-icon--24 app-row__icon" aria-hidden="true">support</span>
|
|
61
|
+
<span class="app-row__text"><a class="app-row__hit text-label" href="/support">Support</a></span>
|
|
61
62
|
</div>
|
|
63
|
+
<!-- the account card: AppShell -->
|
|
62
64
|
</div>
|
|
63
65
|
</nav>
|
|
64
66
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.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/README.md
CHANGED
|
@@ -55,7 +55,7 @@ Which applies is decided by the surface, never by preference ([register.md](regi
|
|
|
55
55
|
|
|
56
56
|
**The platform.** **Alis Ideate**: discovery, AI-led interviews, context and shareable artifacts. **Alis Build**: delivery, secure build environments in your own Google Cloud. **Skill store**: the app store for know-how, at four levels (me, my team, the community, the platform). **AlisX Specialists**: vetted human expertise, inside the session.
|
|
57
57
|
|
|
58
|
-
The product has **two tones**, wayfinding only (
|
|
58
|
+
The product has **two tones**, wayfinding only (a page-title eyebrow, a lattice tick; the navigation pane is one rail for every product and takes no tone): **Alis Ideate** is `primary`, **Alis Build** is `build`. **Admin**, the organisation's settings, and the **Skill store** and **AlisX Specialists** have no product tone.
|
|
59
59
|
|
|
60
60
|
**Names.** Product names are title case and always full: *Alis Ideate*, *Alis Build*, *Skill store*, *AlisX Specialists*. The company is *Alis Exchange*; the product is *AlisX*.
|
|
61
61
|
|
package/rules/colour.md
CHANGED
|
@@ -48,8 +48,9 @@ a neutral action (D4).
|
|
|
48
48
|
**Ideate's tone is `primary`; Build's is `build`.** There are no others: add one
|
|
49
49
|
only when a product has a surface to colour, and measure it first.
|
|
50
50
|
|
|
51
|
-
A tone may colour
|
|
52
|
-
|
|
51
|
+
A tone may colour a page-title eyebrow and a lattice tick. The navigation pane is
|
|
52
|
+
one rail for every product: its group headings name the products in
|
|
53
|
+
`on-surface-variant`, never in a tone. A tone never colours a control, a link, a state, a chart
|
|
53
54
|
series or a selected row: that gives the product four accents. On a chip naming a
|
|
54
55
|
product the tone lives only in the glyph, and the chip is a label
|
|
55
56
|
([chips-alerts.md](chips-alerts.md)), never a status.
|
package/rules/known-gaps.md
CHANGED
|
@@ -17,7 +17,7 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
|
|
|
17
17
|
- **Navigation inside a project.** Open objects can sit in the navigation pane as secondary rows under a heading ([AppShell](../components/AppShell.md)), and an object's own views are route tabs in its title bar. A project's own destinations beside the app's have no pattern yet.
|
|
18
18
|
- **Versions of generated content.** Regenerating replaces a synthesis; keeping or comparing earlier versions has no pattern.
|
|
19
19
|
- **A log viewer.** "View logs" goes to the logs' own screen; there is no pattern for showing logs inside a pane.
|
|
20
|
-
- **Each product's destinations** (
|
|
20
|
+
- **Each product's destinations** (the rows under its heading in the rail) are product content, not part of this system. Use the capability marks for the tools they name.
|
|
21
21
|
- **Hairline weight.** Dividers and tracks use `outline-variant`; some shipped screens draw them lighter, at `on-surface` 12%. Not yet settled.
|
|
22
22
|
|
|
23
23
|
## Open values
|
package/rules/quick-start.md
CHANGED
|
@@ -28,7 +28,7 @@ AppShell product="build"
|
|
|
28
28
|
|
|
29
29
|
| You need | Use |
|
|
30
30
|
|---|---|
|
|
31
|
-
| The frame
|
|
31
|
+
| The frame and the navigation rail | `AppShell` |
|
|
32
32
|
| The screen's name, search, verbs | `AppTitleBar`. Verbs are default-size text buttons; no icon on a single verb |
|
|
33
33
|
| The bar of a detail pane | `AppTitleBar variant="detail"`: close, the name in section-title, its verbs on a row below |
|
|
34
34
|
| To narrow one list | `AppFilterRow` + `AppSegmented` (2–5 options) or filter `AppChip`s |
|
package/tokens.json
CHANGED
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
{
|
|
273
273
|
"name": "build",
|
|
274
274
|
"value": "{violet-700}",
|
|
275
|
-
"usage": "Build's tone. Wayfinding only:
|
|
275
|
+
"usage": "Build's tone. Wayfinding only: page-title eyebrow, lattice tick."
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
"name": "inverse-surface",
|