@alis-build/design-system 0.78.0 → 0.80.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 +27 -0
- package/classes.json +8 -0
- package/components/AppCodeField.md +1 -0
- package/components/AppCoin.md +45 -0
- package/components/README.md +1 -0
- package/hosts/README.md +6 -0
- package/hosts/android.json +206 -0
- package/hosts/android.md +88 -0
- package/hosts/ios.json +180 -0
- package/hosts/ios.md +85 -0
- package/package.json +1 -1
- package/rules/branding.md +5 -0
- package/rules/colour.md +24 -0
- package/rules/hosts.md +44 -1
- package/rules/icons.md +4 -1
- package/rules/known-gaps.md +5 -4
- package/rules/themes.md +4 -3
- package/themes.json +4 -0
- package/tokens.css +10 -0
- package/tokens.json +46 -0
package/alisx.css
CHANGED
|
@@ -35,6 +35,8 @@
|
|
|
35
35
|
--violet-200: #c3b2f7;
|
|
36
36
|
--amber-100: #ffd9a8;
|
|
37
37
|
--amber-700: #b58200;
|
|
38
|
+
--gold-500: #eaa800;
|
|
39
|
+
--gold-800: #8f6400;
|
|
38
40
|
--alis-red: #f02222;
|
|
39
41
|
--red-700: #ba1a1a;
|
|
40
42
|
--green-700: #1e6b3a;
|
|
@@ -62,6 +64,8 @@
|
|
|
62
64
|
--warning: light-dark(var(--amber-700), #e9b443);
|
|
63
65
|
--success: light-dark(var(--green-700), #7ccf95);
|
|
64
66
|
--info: light-dark(var(--blue-600), #a9c1ff);
|
|
67
|
+
--reward: light-dark(var(--gold-500), #f7c948);
|
|
68
|
+
--reward-edge: light-dark(var(--gold-800), #ffd966);
|
|
65
69
|
--inverse-surface: light-dark(var(--petrol-800), var(--mist-100));
|
|
66
70
|
--on-inverse-surface: light-dark(var(--paper-100), var(--petrol-800));
|
|
67
71
|
--code-surface: light-dark(var(--paper-75), #2c353b);
|
|
@@ -261,6 +265,8 @@
|
|
|
261
265
|
--warning: var(--amber-700);
|
|
262
266
|
--success: var(--green-700);
|
|
263
267
|
--info: var(--blue-600);
|
|
268
|
+
--reward: var(--gold-500);
|
|
269
|
+
--reward-edge: var(--gold-800);
|
|
264
270
|
--inverse-surface: var(--petrol-800);
|
|
265
271
|
--on-inverse-surface: var(--paper-100);
|
|
266
272
|
--code-surface: var(--paper-75);
|
|
@@ -324,6 +330,8 @@
|
|
|
324
330
|
--warning: #e9b443;
|
|
325
331
|
--success: #7ccf95;
|
|
326
332
|
--info: #a9c1ff;
|
|
333
|
+
--reward: #f7c948;
|
|
334
|
+
--reward-edge: #ffd966;
|
|
327
335
|
--inverse-surface: var(--mist-100);
|
|
328
336
|
--on-inverse-surface: var(--petrol-800);
|
|
329
337
|
--code-surface: #2c353b;
|
|
@@ -397,6 +405,8 @@
|
|
|
397
405
|
--warning: #ffffff;
|
|
398
406
|
--success: #ffffff;
|
|
399
407
|
--info: #ffffff;
|
|
408
|
+
--reward: #ffffff;
|
|
409
|
+
--reward-edge: #ffffff;
|
|
400
410
|
--inverse-surface: #ffffff;
|
|
401
411
|
--on-inverse-surface: #000000;
|
|
402
412
|
--code-surface: #000000;
|
|
@@ -588,6 +598,13 @@ button, input, textarea, select { font: inherit; }
|
|
|
588
598
|
.app-chip--opaque:not([class*="app-chip--cat"]){background:var(--surface-container-highest);color:var(--on-surface)}
|
|
589
599
|
.app-chip--outlined{background:transparent;border-color:var(--outline)}
|
|
590
600
|
.app-chip--outlined.is-selected{background:var(--secondary-container);border-color:transparent;color:var(--on-secondary-container);font-weight:700}
|
|
601
|
+
/* The coin: credits that were on us, a face inside its rim with its own light behind (rules/colour.md § Gold). Open: credits that could be earned. */
|
|
602
|
+
.app-coin{--coin:12px;position:relative;display:inline-block;flex:none;width:var(--coin);height:var(--coin);border-radius:var(--radius-pill)}
|
|
603
|
+
.app-coin::before{content:"";position:absolute;inset:calc(var(--coin) * -.75);border-radius:inherit;background:radial-gradient(closest-side,color-mix(in srgb,var(--reward) 70%,transparent),transparent);pointer-events:none}
|
|
604
|
+
.app-coin::after{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--reward);box-shadow:inset 0 0 0 max(1px,calc(var(--coin) * .11)) var(--reward-edge)}
|
|
605
|
+
.app-coin--16{--coin:16px}
|
|
606
|
+
.app-coin--open::before{display:none}
|
|
607
|
+
.app-coin--open::after{background:transparent;box-shadow:inset 0 0 0 max(1.5px,calc(var(--coin) * .13)) var(--reward-edge)}
|
|
591
608
|
.app-chip__close{display:inline-flex;margin-right:calc(var(--space-8) * -1);padding:0;border:0;border-radius:var(--radius-pill);background:transparent;color:inherit}
|
|
592
609
|
.app-chip-group{display:flex;flex-wrap:wrap;gap:var(--space-8)}
|
|
593
610
|
|
|
@@ -1958,6 +1975,11 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
|
|
|
1958
1975
|
.app-skel__bar::after{display:none}
|
|
1959
1976
|
|
|
1960
1977
|
|
|
1978
|
+
.app-coin::before{display:none}
|
|
1979
|
+
.app-coin::after{forced-color-adjust:none;background:var(--contrast-ink);box-shadow:none}
|
|
1980
|
+
.app-coin--open::after{background:transparent;border:2px solid var(--contrast-ink)}
|
|
1981
|
+
|
|
1982
|
+
|
|
1961
1983
|
.app-row.is-arriving{background-color:transparent}
|
|
1962
1984
|
|
|
1963
1985
|
|
|
@@ -2019,6 +2041,11 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
|
|
|
2019
2041
|
.app-skel__bar::after{display:none}
|
|
2020
2042
|
|
|
2021
2043
|
|
|
2044
|
+
.app-coin::before{display:none}
|
|
2045
|
+
.app-coin::after{forced-color-adjust:none;background:var(--contrast-ink);box-shadow:none}
|
|
2046
|
+
.app-coin--open::after{background:transparent;border:2px solid var(--contrast-ink)}
|
|
2047
|
+
|
|
2048
|
+
|
|
2022
2049
|
.app-row.is-arriving{background-color:transparent}
|
|
2023
2050
|
|
|
2024
2051
|
|
package/classes.json
CHANGED
|
@@ -115,6 +115,9 @@
|
|
|
115
115
|
"app-code__foot",
|
|
116
116
|
"app-code__head",
|
|
117
117
|
"app-code__name",
|
|
118
|
+
"app-coin",
|
|
119
|
+
"app-coin--16",
|
|
120
|
+
"app-coin--open",
|
|
118
121
|
"app-combo",
|
|
119
122
|
"app-combo__input",
|
|
120
123
|
"app-combo__list",
|
|
@@ -599,6 +602,7 @@
|
|
|
599
602
|
"--chart-neutral",
|
|
600
603
|
"--chat-row",
|
|
601
604
|
"--code-surface",
|
|
605
|
+
"--coin",
|
|
602
606
|
"--container",
|
|
603
607
|
"--contrast-edge",
|
|
604
608
|
"--contrast-focus",
|
|
@@ -636,6 +640,8 @@
|
|
|
636
640
|
"--glass-edge",
|
|
637
641
|
"--glass-grid",
|
|
638
642
|
"--glass-rim",
|
|
643
|
+
"--gold-500",
|
|
644
|
+
"--gold-800",
|
|
639
645
|
"--green-700",
|
|
640
646
|
"--grey-200",
|
|
641
647
|
"--grey-250",
|
|
@@ -732,6 +738,8 @@
|
|
|
732
738
|
"--radius-xs",
|
|
733
739
|
"--rc-noise",
|
|
734
740
|
"--red-700",
|
|
741
|
+
"--reward",
|
|
742
|
+
"--reward-edge",
|
|
735
743
|
"--scrim",
|
|
736
744
|
"--secondary-container",
|
|
737
745
|
"--selection-chrome",
|
|
@@ -12,6 +12,7 @@ A code a person types to prove who they are: one emailed to them, or one their d
|
|
|
12
12
|
- **Only what the person enters sends.** A code the page was served with, or one the server refused, waits: a refused code is sent again only once it has been changed.
|
|
13
13
|
- **Errors at the field when they send**, in `error` with the `error` icon, replacing the supporting line; every cell takes the error edge. Say what to do: "Enter all 6 digits.", "That code doesn't match. Check the email and try again.", "That code has expired. Resend code to get a new one." A wrong code stays in the cells, selected, so typing replaces it.
|
|
14
14
|
- **Digits or letters, never both**: an emailed code is digits (`inputmode="numeric"`, `autocomplete="one-time-code"`); a device code is letters, shown as capitals, with autocomplete off.
|
|
15
|
+
- **In an app on a phone**, the same field takes the phone's one-time-code autofill, so the code arrives above the keyboard from Mail or Messages: `textContentType = .oneTimeCode` on iOS, the one-time-code autofill hint on Android ([hosts.md](../rules/hosts.md) § An app is a host too).
|
|
15
16
|
- **The words**: Code, Send code, Resend code, Use a different email ([words.json](../words.json)). Never OTP, PIN, passcode or verification code.
|
|
16
17
|
|
|
17
18
|
## Markup
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# AppCoin
|
|
2
|
+
|
|
3
|
+
Credits that were on us, or could be earned: a gold coin, filled or open.
|
|
4
|
+
|
|
5
|
+
## Use / don't use
|
|
6
|
+
|
|
7
|
+
See [colour.md](../rules/colour.md) § Gold. A coin is the only thing drawn in `reward`.
|
|
8
|
+
|
|
9
|
+
- **Filled**: credits a person did not pay for, free or earned. One coin beside the line that says so ("700 credits on us"), one coin per award in a tally, and the mark for that part in a usage drawing.
|
|
10
|
+
- **Open**: credits could be earned here. Always with words beside it: "May earn credits" where a person decides, "Earns 25 credits" where it is automatic. Only where the offer is real; when it is earned, the same place shows the filled coin and the amount.
|
|
11
|
+
- **The amount is ink**, in tabular numerals, never gold.
|
|
12
|
+
- **Sizes**: 12 beside supporting text and in a legend, 16 beside a label or leading a row. Nothing larger: a coin is a mark, not an illustration.
|
|
13
|
+
- **Never** a status, a category, a button, a badge on an avatar, or decoration on a page that has no credits to show. Never animated.
|
|
14
|
+
|
|
15
|
+
## Markup
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<!-- Credits on us -->
|
|
19
|
+
<p class="text-body"><span class="app-coin" aria-hidden="true"></span> 700 credits on us</p>
|
|
20
|
+
|
|
21
|
+
<!-- Could be earned -->
|
|
22
|
+
<p class="text-supporting"><span class="app-coin app-coin--open" aria-hidden="true"></span> May earn credits</p>
|
|
23
|
+
|
|
24
|
+
<!-- A tally: one coin per award, then the words -->
|
|
25
|
+
<div role="img" aria-label="4 awards">
|
|
26
|
+
<span class="app-coin app-coin--16"></span>
|
|
27
|
+
<span class="app-coin app-coin--16"></span>
|
|
28
|
+
<span class="app-coin app-coin--16"></span>
|
|
29
|
+
<span class="app-coin app-coin--16"></span>
|
|
30
|
+
</div>
|
|
31
|
+
<p class="text-label">40 earned · 10 given · 12 used · 18 left</p>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The coin is hidden from assistive technology; the words beside it say everything it says. A row of coins is one image named by its count.
|
|
35
|
+
|
|
36
|
+
In an SVG drawing (a usage ring, a chart) the same coin is a circle filled `reward` with a stroke in `reward-edge`, about a quarter of its radius.
|
|
37
|
+
|
|
38
|
+
## Behaviour you must supply
|
|
39
|
+
|
|
40
|
+
- Give coins in a row at least 12px between them (16 at the 16 size): the light reaches three quarters of a coin beyond its rim and must not run into its neighbour.
|
|
41
|
+
- Swap `app-coin--open` for the filled coin when the credits are earned, and change the words with it.
|
|
42
|
+
|
|
43
|
+
## Classes
|
|
44
|
+
|
|
45
|
+
`.app-coin`, `.app-coin--16`, `.app-coin--open`.
|
package/components/README.md
CHANGED
|
@@ -34,6 +34,7 @@ Shared conventions: `app-state` gives anything pressable its hover, focus and pr
|
|
|
34
34
|
| AppShortcutSheet | Every key the screen answers to, opened by `?`, in the detail pane's place | [AppShortcutSheet.md](AppShortcutSheet.md) |
|
|
35
35
|
| AppAvatar | A person (round) or a thing (a square tile), at 24, 36 or 80 | [AppAvatar.md](AppAvatar.md) |
|
|
36
36
|
| AppChip | A small fact: status, label, category, filter, input | [AppChip.md](AppChip.md) |
|
|
37
|
+
| AppCoin | Credits that were on us, or could be earned: a gold coin, filled or open | [AppCoin.md](AppCoin.md) |
|
|
37
38
|
| AppAlert | A statement carrying one status; the snackbar | [AppAlert.md](AppAlert.md) |
|
|
38
39
|
| AppDialog | A confirmation or short form over a scrim | [AppDialog.md](AppDialog.md) |
|
|
39
40
|
| AppCard | Statement and instrument surfaces | [AppCard.md](AppCard.md) |
|
package/hosts/README.md
CHANGED
|
@@ -10,6 +10,8 @@ first; a profile never repeats it.
|
|
|
10
10
|
| [Microsoft Teams](teams.md) | Cards (in chat, in dialogs), embedded pages (tabs, dialogs) | Draft: no proof yet | 2026-11-07 |
|
|
11
11
|
| [Gemini Enterprise](gemini.md) | Cards (A2UI cards, the side panel), and messages | Onboarded 2026-11-17: proof for every card | 2026-11-16 |
|
|
12
12
|
| [Claude](claude-ai.md), on the web and Desktop | Its own agent answers; widgets (MCP Apps: inline, the side panel, full screen), suggested | Draft: no proof yet; approvals open | 2026-11-16 |
|
|
13
|
+
| [iOS](ios.md) | The app's screens (an embedded page); notifications, prompts, alerts and pickers (cards); a Live Activity (a widget, not built) | Draft: no proof yet | 2026-11-19 |
|
|
14
|
+
| [Android](android.md) | The app's screens (an embedded page); the ongoing notification, prompts, alerts and pickers (cards); picture-in-picture (a widget) | Draft: no proof yet | 2026-11-19 |
|
|
13
15
|
|
|
14
16
|
Next in line: Microsoft 365 Copilot (cards for Alis in Copilot chat,
|
|
15
17
|
widgets for the Copilot companion), and Google Meet (an embedded page: the
|
|
@@ -21,6 +23,10 @@ The Claude profile is `claude-ai`, Claude's own name for its web client: a file
|
|
|
21
23
|
named `claude.md` is `CLAUDE.md` on a disk that ignores case, and coding agents
|
|
22
24
|
read that as their instructions.
|
|
23
25
|
|
|
26
|
+
A phone is a host to our own app ([rules/hosts.md](../rules/hosts.md) § An app
|
|
27
|
+
is a host too): its profile holds what the phone draws and its limits, and the
|
|
28
|
+
app's screens follow the product's own rules.
|
|
29
|
+
|
|
24
30
|
A new host starts from the five sections in
|
|
25
31
|
[rules/hosts.md](../rules/hosts.md) § Onboarding a host, and copies the shape
|
|
26
32
|
of `teams.json`.
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
{
|
|
2
|
+
"host": "android",
|
|
3
|
+
"name": "Android",
|
|
4
|
+
"status": "draft",
|
|
5
|
+
"missing": [
|
|
6
|
+
"proof for every surface, light and dark, at the default and the largest font size"
|
|
7
|
+
],
|
|
8
|
+
"owner": "design system",
|
|
9
|
+
"checked": "2026-11-19",
|
|
10
|
+
"due": "2027-06-08",
|
|
11
|
+
"recheckWhen": "Each yearly Android release, or the app adds a widget or changes its notification",
|
|
12
|
+
"surfaces": [
|
|
13
|
+
{
|
|
14
|
+
"id": "screens",
|
|
15
|
+
"kind": "embedded-page",
|
|
16
|
+
"is": "The app's own screens, in the product register"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "ongoing",
|
|
20
|
+
"kind": "card",
|
|
21
|
+
"is": "The ongoing notification while an interview runs (call style below Android 16)"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "liveUpdate",
|
|
25
|
+
"kind": "card",
|
|
26
|
+
"is": "A progress-centred Live Update, from Android 16"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "pip",
|
|
30
|
+
"kind": "widget",
|
|
31
|
+
"is": "Picture-in-picture: the voice light and the state word"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "permission",
|
|
35
|
+
"kind": "card",
|
|
36
|
+
"is": "The system's permission prompts"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "alert",
|
|
40
|
+
"kind": "card",
|
|
41
|
+
"is": "The system alert dialog for a yes-or-no ask, with AppDialog's words"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "shareTarget",
|
|
45
|
+
"kind": "card",
|
|
46
|
+
"is": "Share into an interview, from the system share sheet"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "pickers",
|
|
50
|
+
"kind": "card",
|
|
51
|
+
"is": "The photo and document pickers, and Play services' QR scanner"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "shortcuts",
|
|
55
|
+
"kind": "card",
|
|
56
|
+
"is": "Launcher shortcuts"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "listing",
|
|
60
|
+
"kind": "card",
|
|
61
|
+
"is": "The Play listing"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"listing": {
|
|
65
|
+
"name": "AlisX",
|
|
66
|
+
"provider": "Alis Exchange",
|
|
67
|
+
"homeScreen": "AlisX",
|
|
68
|
+
"shortDescription": "says what the app does for now: answering interviews with Alis",
|
|
69
|
+
"titleMax": 30
|
|
70
|
+
},
|
|
71
|
+
"limits": {
|
|
72
|
+
"targetMinDp": 48,
|
|
73
|
+
"notificationActionsMax": 3,
|
|
74
|
+
"ourNotificationActions": 2,
|
|
75
|
+
"callStyleHangUp": "required, the system's",
|
|
76
|
+
"edgeToEdge": "enforced from target SDK 35",
|
|
77
|
+
"permissionDeniedTwice": "not asked again",
|
|
78
|
+
"predictiveBack": true
|
|
79
|
+
},
|
|
80
|
+
"notification": {
|
|
81
|
+
"title": "the interview's name",
|
|
82
|
+
"text": "its state word and the time",
|
|
83
|
+
"actions": {
|
|
84
|
+
"running": [
|
|
85
|
+
"Pause",
|
|
86
|
+
"Finish"
|
|
87
|
+
],
|
|
88
|
+
"paused": [
|
|
89
|
+
"Resume",
|
|
90
|
+
"Finish"
|
|
91
|
+
],
|
|
92
|
+
"sharing": [
|
|
93
|
+
"Stop sharing",
|
|
94
|
+
"Finish"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"finish": "opens the app at the Finish ask",
|
|
98
|
+
"press": "opens the voice screen",
|
|
99
|
+
"callStyle": "the system's hang-up stops the voice; ours is the one other action"
|
|
100
|
+
},
|
|
101
|
+
"type": {
|
|
102
|
+
"font": "Nunito Sans, bundled",
|
|
103
|
+
"unit": "sp, following the font size setting"
|
|
104
|
+
},
|
|
105
|
+
"themes": [
|
|
106
|
+
"light",
|
|
107
|
+
"dark"
|
|
108
|
+
],
|
|
109
|
+
"theme": {
|
|
110
|
+
"source": "the phone's dark theme setting",
|
|
111
|
+
"map": {
|
|
112
|
+
"light": "light",
|
|
113
|
+
"dark": "dark"
|
|
114
|
+
},
|
|
115
|
+
"highContrastText": "open (known-gaps.md)",
|
|
116
|
+
"dynamicColour": false,
|
|
117
|
+
"brand": "branding.md"
|
|
118
|
+
},
|
|
119
|
+
"colour": {
|
|
120
|
+
"source": "themes.json of the pinned @alis-build/design-system",
|
|
121
|
+
"copiedValues": false
|
|
122
|
+
},
|
|
123
|
+
"icons": {
|
|
124
|
+
"set": "Material Symbols Outlined, as they are",
|
|
125
|
+
"map": "identity: the system's own names"
|
|
126
|
+
},
|
|
127
|
+
"codes": {
|
|
128
|
+
"oneTimeCode": "the one-time-code autofill hint"
|
|
129
|
+
},
|
|
130
|
+
"motion": {
|
|
131
|
+
"springs": "Compose springs from the tokens' stiffness and damping",
|
|
132
|
+
"removeAnimations": "holds what would travel"
|
|
133
|
+
},
|
|
134
|
+
"sources": [
|
|
135
|
+
{
|
|
136
|
+
"id": "actions",
|
|
137
|
+
"tag": "limit",
|
|
138
|
+
"claim": "A notification can offer up to three action buttons",
|
|
139
|
+
"url": "https://developer.android.com/develop/ui/views/notifications/build-notification",
|
|
140
|
+
"checked": "2026-11-19"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": "callStyle",
|
|
144
|
+
"tag": "limit",
|
|
145
|
+
"claim": "A call-style notification for an ongoing call takes a hang-up intent",
|
|
146
|
+
"url": "https://developer.android.com/reference/androidx/core/app/NotificationCompat.CallStyle",
|
|
147
|
+
"checked": "2026-11-19"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"id": "liveUpdates",
|
|
151
|
+
"tag": "limit",
|
|
152
|
+
"claim": "Android 16 adds progress-centric notifications that can show as a status-bar chip",
|
|
153
|
+
"url": "https://developer.android.com/about/versions/16/features/progress-centric-notifications",
|
|
154
|
+
"checked": "2026-11-19"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"id": "edgeToEdge",
|
|
158
|
+
"tag": "limit",
|
|
159
|
+
"claim": "Apps targeting SDK 35 are drawn edge to edge",
|
|
160
|
+
"url": "https://developer.android.com/develop/ui/views/layout/edge-to-edge",
|
|
161
|
+
"checked": "2026-11-19"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"id": "permissions",
|
|
165
|
+
"tag": "limit",
|
|
166
|
+
"claim": "After a person denies a permission more than once, the system stops showing the prompt",
|
|
167
|
+
"url": "https://developer.android.com/training/permissions/requesting",
|
|
168
|
+
"checked": "2026-11-19"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": "playTitle",
|
|
172
|
+
"tag": "limit",
|
|
173
|
+
"claim": "The app's title on Play is up to 30 characters",
|
|
174
|
+
"url": "https://support.google.com/googleplay/android-developer/answer/9859152",
|
|
175
|
+
"checked": "2026-11-19"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "targets",
|
|
179
|
+
"tag": "advice",
|
|
180
|
+
"claim": "Touch targets of at least 48 x 48 dp",
|
|
181
|
+
"url": "https://support.google.com/accessibility/android/answer/7101858",
|
|
182
|
+
"checked": "2026-11-19"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"id": "predictiveBack",
|
|
186
|
+
"tag": "advice",
|
|
187
|
+
"claim": "Support the predictive back gesture",
|
|
188
|
+
"url": "https://developer.android.com/guide/navigation/custom-back/predictive-back-gesture",
|
|
189
|
+
"checked": "2026-11-19"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"id": "dynamicColour",
|
|
193
|
+
"tag": "advice",
|
|
194
|
+
"claim": "Dynamic colour is optional; a brand may keep its own colours",
|
|
195
|
+
"url": "https://developer.android.com/develop/ui/views/theming/dynamic-colors",
|
|
196
|
+
"checked": "2026-11-19"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"id": "app",
|
|
200
|
+
"tag": "observed",
|
|
201
|
+
"claim": "The interviews app runs a microphone foreground service with an ongoing notification and picture-in-picture",
|
|
202
|
+
"url": "interviews/android/v1/app (voice/InterviewNotification.kt, pip/PictureInPicture.kt)",
|
|
203
|
+
"checked": "2026-11-19"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
package/hosts/android.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Android
|
|
2
|
+
|
|
3
|
+
**Status: draft.** Sources, jobs and differences are filled. There's no proof yet:
|
|
4
|
+
nothing has been seen on a device against this page. Read
|
|
5
|
+
[rules/hosts.md](../rules/hosts.md) first, its § An app is a host too above all:
|
|
6
|
+
this page holds only where Android differs. The same facts as data are in
|
|
7
|
+
`android.json`.
|
|
8
|
+
|
|
9
|
+
## 1. Sources and evidence
|
|
10
|
+
|
|
11
|
+
Checked 19 November 2026 against Android's pages and the interviews app's code.
|
|
12
|
+
Every claim, with its link, is in `android.json` § sources.
|
|
13
|
+
|
|
14
|
+
| Tag | What Android does |
|
|
15
|
+
| --- | --- |
|
|
16
|
+
| limit | A notification shows up to three action buttons |
|
|
17
|
+
| limit | A call-style notification must carry a hang-up; the system draws it |
|
|
18
|
+
| limit | From Android 16, a progress-centred notification (Live Update) can sit on the status bar as a chip |
|
|
19
|
+
| limit | Apps targeting Android 15 draw edge to edge: content keeps out of the system bars by their insets |
|
|
20
|
+
| limit | A permission turned down twice is not asked again; only the app's page in Settings can turn it back on |
|
|
21
|
+
| limit | The Play store title is 30 characters at most |
|
|
22
|
+
| advice | Touch targets of at least 48 × 48 dp |
|
|
23
|
+
| advice | The back gesture previews where it goes (predictive back) |
|
|
24
|
+
| advice | Dynamic colour takes the wallpaper's colours; an app with a brand of its own may keep its own |
|
|
25
|
+
| observed | The interviews app keeps a microphone foreground service with an ongoing notification and offers picture-in-picture |
|
|
26
|
+
|
|
27
|
+
## 2. Jobs here
|
|
28
|
+
|
|
29
|
+
The interviews participant app: someone opens an invitation link, or scans its
|
|
30
|
+
QR code, and answers by talking or typing. Every other job is the AlisX
|
|
31
|
+
console's. The mobile web stays a full path: without the app, the link opens the
|
|
32
|
+
interview in the browser, and "Get the app" is never the filled action.
|
|
33
|
+
|
|
34
|
+
## 3. Differences
|
|
35
|
+
|
|
36
|
+
**Surfaces.**
|
|
37
|
+
|
|
38
|
+
| Surface | Kind | Notes |
|
|
39
|
+
| --- | --- | --- |
|
|
40
|
+
| The app's screens | Embedded page | The product register; see hosts.md § An app is a host too |
|
|
41
|
+
| The ongoing notification (an interview under way) | Card | The interview's name, its state word and the time; Pause (Resume while paused), or Stop sharing while a screen is shared, then Finish, which opens the app at its ask. In the call style, the system's hang-up stops the voice and ours is the one other action |
|
|
42
|
+
| A Live Update (Android 16) | Card | The same words in the progress-centred style |
|
|
43
|
+
| Picture-in-picture | Widget | The voice light and the state word; at most the system's action count, each one that can be undone |
|
|
44
|
+
| The permission prompts | Card | The system's; one at a time, asked on the press that needs it |
|
|
45
|
+
| A yes-or-no ask (Finish the interview?) | Card | The system's alert dialog, with AppDialog's words: Cancel, then the verb |
|
|
46
|
+
| The share target ("share into an interview") | Card | Our label in the system's share sheet |
|
|
47
|
+
| The photo and document pickers, the QR scanner | Card | The system's |
|
|
48
|
+
| Launcher shortcuts | Card | Our words |
|
|
49
|
+
| The Play listing | Card | AlisX, published by Alis Exchange; the short description says what it does |
|
|
50
|
+
|
|
51
|
+
**Type.** Our roles in Nunito Sans, sized in `sp` so they follow the person's
|
|
52
|
+
font size, with the phone sizes from the type tokens.
|
|
53
|
+
|
|
54
|
+
**Colour and theme.** The roles from the pinned package's `themes.json`, light
|
|
55
|
+
and dark, following the phone's setting. **Dynamic colour off**: the wallpaper
|
|
56
|
+
never recolours Alis or a client's brand. An interview's brand overrides only
|
|
57
|
+
what [branding.md](../rules/branding.md) allows. High-contrast text has no
|
|
58
|
+
answer of ours yet ([known-gaps.md](../rules/known-gaps.md)).
|
|
59
|
+
|
|
60
|
+
**Icons.** Material Symbols Outlined, as they are, on our screens and in what we
|
|
61
|
+
hand the system (a notification's actions, launcher shortcuts): Android's own set
|
|
62
|
+
is Material, so nothing needs a name map.
|
|
63
|
+
|
|
64
|
+
**Targets.** 48 dp.
|
|
65
|
+
|
|
66
|
+
**Edges and back.** Edge to edge, with content held off the system bars by
|
|
67
|
+
their insets; the back gesture is the system's, with its preview, and a dialog
|
|
68
|
+
or sheet closes on it as Cancel does.
|
|
69
|
+
|
|
70
|
+
**One-time codes.** The code field takes Android's one-time-code autofill hint,
|
|
71
|
+
so the keyboard offers the code ([AppCodeField](../components/AppCodeField.md)).
|
|
72
|
+
|
|
73
|
+
**Motion.** Our springs, as Compose springs from the same stiffness and damping;
|
|
74
|
+
a gesture that lets go hands its speed to the spring. Remove animations holds
|
|
75
|
+
what would travel ([motion.md](../rules/motion.md)).
|
|
76
|
+
|
|
77
|
+
## 4. Proof
|
|
78
|
+
|
|
79
|
+
None yet. Owed, light and dark, at the default font size and at the largest:
|
|
80
|
+
the interview's voice screen (each state of [AppVoiceView](../components/AppVoiceView.md)
|
|
81
|
+
§ An interview), the ongoing notification and picture-in-picture, the welcome,
|
|
82
|
+
the code step, the Finish dialog, and the microphone prompt with the line before
|
|
83
|
+
it and the way back after a no.
|
|
84
|
+
|
|
85
|
+
## 5. Re-check
|
|
86
|
+
|
|
87
|
+
Owned by the design system. Checked 19 November 2026; due again with each yearly
|
|
88
|
+
Android release, or when the app adds a widget or changes its notification.
|
package/hosts/ios.json
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
{
|
|
2
|
+
"host": "ios",
|
|
3
|
+
"name": "iOS",
|
|
4
|
+
"status": "draft",
|
|
5
|
+
"missing": [
|
|
6
|
+
"proof for every surface, light and dark, at the default and the largest text size"
|
|
7
|
+
],
|
|
8
|
+
"owner": "design system",
|
|
9
|
+
"checked": "2026-11-19",
|
|
10
|
+
"due": "2027-06-08",
|
|
11
|
+
"recheckWhen": "Apple ships the next major iOS (its beta in June), or the app adds a Live Activity, a widget or an App Clip",
|
|
12
|
+
"surfaces": [
|
|
13
|
+
{
|
|
14
|
+
"id": "screens",
|
|
15
|
+
"kind": "embedded-page",
|
|
16
|
+
"is": "The app's own screens, in the product register"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "permission",
|
|
20
|
+
"kind": "card",
|
|
21
|
+
"is": "The system's permission prompt; our usage sentence only"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "alert",
|
|
25
|
+
"kind": "card",
|
|
26
|
+
"is": "The system alert for a yes-or-no ask, with AppDialog's words"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "broadcast",
|
|
30
|
+
"kind": "card",
|
|
31
|
+
"is": "ReplayKit's screen-recording picker"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "pickers",
|
|
35
|
+
"kind": "card",
|
|
36
|
+
"is": "The share sheet, Files and Photos"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "liveActivity",
|
|
40
|
+
"kind": "widget",
|
|
41
|
+
"is": "A Live Activity and the Dynamic Island",
|
|
42
|
+
"built": false
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "listing",
|
|
46
|
+
"kind": "card",
|
|
47
|
+
"is": "The App Store listing"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": "appClip",
|
|
51
|
+
"kind": "card",
|
|
52
|
+
"is": "An App Clip card",
|
|
53
|
+
"built": false
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"listing": {
|
|
57
|
+
"name": "AlisX",
|
|
58
|
+
"provider": "Alis Exchange",
|
|
59
|
+
"homeScreen": "AlisX",
|
|
60
|
+
"subtitle": "says what the app does for now: answering interviews with Alis",
|
|
61
|
+
"nameMax": 30,
|
|
62
|
+
"subtitleMax": 30
|
|
63
|
+
},
|
|
64
|
+
"limits": {
|
|
65
|
+
"targetMinPt": 44,
|
|
66
|
+
"ourTarget": 48,
|
|
67
|
+
"permissionAskedOnce": true,
|
|
68
|
+
"backgroundAudio": "declared, and the session kept running while locked",
|
|
69
|
+
"statusBar": "the system's",
|
|
70
|
+
"safeAreas": true
|
|
71
|
+
},
|
|
72
|
+
"type": {
|
|
73
|
+
"font": "Nunito Sans, bundled",
|
|
74
|
+
"scale": "Dynamic Type, relativeTo the nearest text style",
|
|
75
|
+
"map": {
|
|
76
|
+
"text-page-title": "title2",
|
|
77
|
+
"text-prompt": "title1",
|
|
78
|
+
"text-section-title": "headline",
|
|
79
|
+
"text-object-title": "body",
|
|
80
|
+
"text-body": "body",
|
|
81
|
+
"text-supporting": "subheadline",
|
|
82
|
+
"text-meta": "caption1",
|
|
83
|
+
"text-label": "callout"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"themes": [
|
|
87
|
+
"light",
|
|
88
|
+
"dark"
|
|
89
|
+
],
|
|
90
|
+
"theme": {
|
|
91
|
+
"source": "the phone's appearance setting",
|
|
92
|
+
"map": {
|
|
93
|
+
"light": "light",
|
|
94
|
+
"dark": "dark"
|
|
95
|
+
},
|
|
96
|
+
"increaseContrast": "open (known-gaps.md)",
|
|
97
|
+
"brand": "branding.md"
|
|
98
|
+
},
|
|
99
|
+
"colour": {
|
|
100
|
+
"source": "themes.json of the pinned @alis-build/design-system",
|
|
101
|
+
"copiedValues": false
|
|
102
|
+
},
|
|
103
|
+
"icons": {
|
|
104
|
+
"set": "Material Symbols Outlined, bundled subset, on our screens",
|
|
105
|
+
"system": "SF Symbols only inside what iOS draws",
|
|
106
|
+
"map": null
|
|
107
|
+
},
|
|
108
|
+
"codes": {
|
|
109
|
+
"oneTimeCode": "textContentType .oneTimeCode"
|
|
110
|
+
},
|
|
111
|
+
"motion": {
|
|
112
|
+
"springs": "SwiftUI springs from the tokens' stiffness and damping",
|
|
113
|
+
"reduceMotion": "holds what would travel"
|
|
114
|
+
},
|
|
115
|
+
"sources": [
|
|
116
|
+
{
|
|
117
|
+
"id": "layout",
|
|
118
|
+
"tag": "limit",
|
|
119
|
+
"claim": "Safe areas keep content clear of the status bar, the home indicator and the Dynamic Island",
|
|
120
|
+
"url": "https://developer.apple.com/design/human-interface-guidelines/layout",
|
|
121
|
+
"checked": "2026-11-19"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "privacy",
|
|
125
|
+
"tag": "limit",
|
|
126
|
+
"claim": "The system asks for access once; the app supplies the purpose string; a person changes it later in Settings",
|
|
127
|
+
"url": "https://developer.apple.com/design/human-interface-guidelines/privacy",
|
|
128
|
+
"checked": "2026-11-19"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "audio",
|
|
132
|
+
"tag": "limit",
|
|
133
|
+
"claim": "Audio keeps playing in the background only with the audio background mode and an active session",
|
|
134
|
+
"url": "https://developer.apple.com/documentation/avfaudio/configuring-your-app-for-media-playback",
|
|
135
|
+
"checked": "2026-11-19"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "productPage",
|
|
139
|
+
"tag": "limit",
|
|
140
|
+
"claim": "An app's name is up to 30 characters, its subtitle up to 30",
|
|
141
|
+
"url": "https://developer.apple.com/app-store/product-page/",
|
|
142
|
+
"checked": "2026-11-19"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"id": "targets",
|
|
146
|
+
"tag": "advice",
|
|
147
|
+
"claim": "Controls at least 44 x 44 points",
|
|
148
|
+
"url": "https://developer.apple.com/design/human-interface-guidelines/accessibility",
|
|
149
|
+
"checked": "2026-11-19"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id": "typography",
|
|
153
|
+
"tag": "advice",
|
|
154
|
+
"claim": "Support Dynamic Type, custom fonts included",
|
|
155
|
+
"url": "https://developer.apple.com/design/human-interface-guidelines/typography",
|
|
156
|
+
"checked": "2026-11-19"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"id": "liveActivities",
|
|
160
|
+
"tag": "advice",
|
|
161
|
+
"claim": "Live Activities show work under way on the Lock Screen and in the Dynamic Island",
|
|
162
|
+
"url": "https://developer.apple.com/design/human-interface-guidelines/live-activities",
|
|
163
|
+
"checked": "2026-11-19"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"id": "app",
|
|
167
|
+
"tag": "observed",
|
|
168
|
+
"claim": "The interviews app bundles Nunito Sans with relativeTo: scaling and declares the audio background mode, but stops the voice on going to the background",
|
|
169
|
+
"url": "interviews/apple/v1/app (InterviewBrand.swift, Info.plist, InterviewsApp.swift)",
|
|
170
|
+
"checked": "2026-11-19"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"id": "homeLabel",
|
|
174
|
+
"tag": "unknown",
|
|
175
|
+
"claim": "A home-screen label is cut at about twelve characters, by width",
|
|
176
|
+
"url": "",
|
|
177
|
+
"checked": "2026-11-19"
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
}
|
package/hosts/ios.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# iOS
|
|
2
|
+
|
|
3
|
+
**Status: draft.** Sources, jobs and differences are filled. There's no proof yet:
|
|
4
|
+
nothing has been seen on a device against this page. Read
|
|
5
|
+
[rules/hosts.md](../rules/hosts.md) first, its § An app is a host too above all:
|
|
6
|
+
this page holds only where iOS differs. The same facts as data are in `ios.json`.
|
|
7
|
+
|
|
8
|
+
## 1. Sources and evidence
|
|
9
|
+
|
|
10
|
+
Checked 19 November 2026 against Apple's pages and the interviews app's code.
|
|
11
|
+
Every claim, with its link, is in `ios.json` § sources.
|
|
12
|
+
|
|
13
|
+
| Tag | What iOS does |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| limit | Draws the status bar, the home indicator and the Dynamic Island; content keeps to the safe areas |
|
|
16
|
+
| limit | A permission prompt is the system's: the app writes only the usage sentence, and after a no the prompt never shows again for that app; only the Settings app can turn it back on |
|
|
17
|
+
| limit | A locked phone stops an app's sound unless the app declares background audio and keeps its session running |
|
|
18
|
+
| limit | The store name is 30 characters at most, with a 30-character subtitle under it |
|
|
19
|
+
| advice | Hit targets of at least 44 × 44 points |
|
|
20
|
+
| advice | Text that grows with the person's text size (Dynamic Type), custom fonts included |
|
|
21
|
+
| advice | Live Activities for work under way that people check from the Lock Screen |
|
|
22
|
+
| observed | Settings → Accessibility offers Increase Contrast, Bold Text and larger text; each reaches the app |
|
|
23
|
+
| unknown | How long a home-screen label can be before iOS cuts it: about twelve characters, depending on the letters |
|
|
24
|
+
|
|
25
|
+
## 2. Jobs here
|
|
26
|
+
|
|
27
|
+
The interviews participant app: someone opens an invitation link and answers by
|
|
28
|
+
talking or typing. Every other job (building, running a project, reading the
|
|
29
|
+
answers) is the AlisX console's. The mobile web stays a full path: without the
|
|
30
|
+
app, the link opens the interview in the browser.
|
|
31
|
+
|
|
32
|
+
## 3. Differences
|
|
33
|
+
|
|
34
|
+
**Surfaces.**
|
|
35
|
+
|
|
36
|
+
| Surface | Kind | Notes |
|
|
37
|
+
| --- | --- | --- |
|
|
38
|
+
| The app's screens | Embedded page | The product register; see hosts.md § An app is a host too |
|
|
39
|
+
| The microphone prompt | Card | Our sentence: "Speak with your interviewer or record an answer to save and send later." |
|
|
40
|
+
| A yes-or-no ask (Finish the interview?) | Card | The system alert, with AppDialog's words: Cancel, then the verb |
|
|
41
|
+
| The screen-recording picker (ReplayKit) | Card | The system's; our button opens it |
|
|
42
|
+
| The share sheet, the Files and Photos pickers | Card | The system's |
|
|
43
|
+
| A Live Activity and the Dynamic Island | Widget | Not built. When it is: the interview's name, its state word and the time, Pause and Finish as on Android's notification |
|
|
44
|
+
| The App Store listing | Card | AlisX, published by Alis Exchange; the subtitle says what it does |
|
|
45
|
+
| An App Clip | Card | Not in the first release |
|
|
46
|
+
|
|
47
|
+
**Type.** Our roles in Nunito Sans, each scaled with Dynamic Type from the text
|
|
48
|
+
style nearest its job (`relativeTo:`): page-title from title2, section-title from
|
|
49
|
+
headline, object-title and body from body, supporting from subheadline, meta from
|
|
50
|
+
caption1, label from callout, prompt from title1. Never a fixed size on a
|
|
51
|
+
reading role; an icon scales with the text beside it.
|
|
52
|
+
|
|
53
|
+
**Colour and theme.** The roles from the pinned package's `themes.json`, light
|
|
54
|
+
and dark, following the phone's setting. An interview's brand overrides only
|
|
55
|
+
what [branding.md](../rules/branding.md) allows. Increase Contrast has no answer
|
|
56
|
+
of ours yet ([known-gaps.md](../rules/known-gaps.md)); the system's own controls
|
|
57
|
+
take it.
|
|
58
|
+
|
|
59
|
+
**Icons.** Material Symbols Outlined on our screens, bundled as the subset the
|
|
60
|
+
app uses. SF Symbols only inside what iOS draws: a system menu's items, the share
|
|
61
|
+
sheet, the system pickers. No name map is needed: our screens never borrow an SF
|
|
62
|
+
Symbol.
|
|
63
|
+
|
|
64
|
+
**Targets.** 48 points, ours, which clears Apple's 44.
|
|
65
|
+
|
|
66
|
+
**One-time codes.** The code field takes `textContentType = .oneTimeCode`, so
|
|
67
|
+
iOS offers the code from Mail or Messages above the keyboard
|
|
68
|
+
([AppCodeField](../components/AppCodeField.md)).
|
|
69
|
+
|
|
70
|
+
**Motion.** Our springs, as SwiftUI springs from the same stiffness and damping;
|
|
71
|
+
a gesture that lets go hands its speed to the spring. Reduce Motion holds what
|
|
72
|
+
would travel ([motion.md](../rules/motion.md)).
|
|
73
|
+
|
|
74
|
+
## 4. Proof
|
|
75
|
+
|
|
76
|
+
None yet. Owed, light and dark, at the default text size and at the largest:
|
|
77
|
+
the interview's voice screen (each state of [AppVoiceView](../components/AppVoiceView.md)
|
|
78
|
+
§ An interview), the welcome, the code step, the Finish alert, and the microphone
|
|
79
|
+
prompt with the line before it and the way back after a no.
|
|
80
|
+
|
|
81
|
+
## 5. Re-check
|
|
82
|
+
|
|
83
|
+
Owned by the design system. Checked 19 November 2026; due again when Apple ships
|
|
84
|
+
the next major iOS (its beta in June), or when the app adds a Live Activity, a
|
|
85
|
+
widget or an App Clip.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.80.0",
|
|
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/branding.md
CHANGED
|
@@ -52,6 +52,11 @@ component. A product with existing brand variables maps them once in its adapter
|
|
|
52
52
|
- Brand and light/dark preference are separate. Set `data-theme` as in
|
|
53
53
|
[themes.md](themes.md). A profile supplies both modes, or the unsupported mode
|
|
54
54
|
inherits a validated system/account theme. Do not infer mode from the logo.
|
|
55
|
+
- **A profile may fix its mode** (light or dark) when the client's identity only
|
|
56
|
+
works in one, as an interview's brand pack does with `mode`. It then applies
|
|
57
|
+
in that mode on every device, the web and the apps alike, and the person's own
|
|
58
|
+
setting waits until the page is unbranded. Following the person's setting
|
|
59
|
+
(`system`) is the better default whenever both modes are supplied.
|
|
55
60
|
- Contrast and forced colours outrank a brand: under either, apply no role
|
|
56
61
|
override from the profile; the logo stays, on a transparent ground
|
|
57
62
|
([themes.md](themes.md) § Contrast and forced colours).
|
package/rules/colour.md
CHANGED
|
@@ -22,6 +22,8 @@ What is this colour for?
|
|
|
22
22
|
├─ Which product am I in → no colour: the rail and the page say it
|
|
23
23
|
├─ A selected thing → selection.md
|
|
24
24
|
├─ Success / warning / info → the status roles
|
|
25
|
+
├─ Credits that were on us, or
|
|
26
|
+
│ could be earned → reward: only ever a coin
|
|
25
27
|
├─ Which category, which series → cat1 … cat6, in order
|
|
26
28
|
└─ Anything else → it is ink, not colour
|
|
27
29
|
```
|
|
@@ -76,6 +78,28 @@ it ([type.md](type.md)).
|
|
|
76
78
|
There are **no status containers.** A tint on a panel is colour carrying meaning
|
|
77
79
|
alone; a chip or an alert carries the status ([chips-alerts.md](chips-alerts.md)).
|
|
78
80
|
|
|
81
|
+
## Gold
|
|
82
|
+
|
|
83
|
+
**`reward` is what was on us**: credits a person did not pay for, free or
|
|
84
|
+
earned. It is only ever a coin ([AppCoin](../components/AppCoin.md)), never a
|
|
85
|
+
status, a category, emphasis, a control or text.
|
|
86
|
+
|
|
87
|
+
- **A coin is a face inside its rim.** A gold bright enough to read as gold
|
|
88
|
+
falls short of 3:1 on a light ground, and one dark enough is `warning`. So the
|
|
89
|
+
face is `reward` and the rim is `reward-edge`, which carries the contrast. On a
|
|
90
|
+
dark ground the face clears it alone.
|
|
91
|
+
- **A coin says credits on us**: a mark in a usage drawing for what free and
|
|
92
|
+
earned credits paid, and one coin for each award in a tally. The amount beside
|
|
93
|
+
it is ink.
|
|
94
|
+
- **An open coin**, the rim alone, says credits could be earned here. Always
|
|
95
|
+
with words beside it: "May earn credits" where a person decides, "Earns 25
|
|
96
|
+
credits" where it is automatic. Only where the offer is real.
|
|
97
|
+
- **Its light is the coin's own**: the one glow on a mark, drawn by the
|
|
98
|
+
component, never added to another mark and never animated. It leaves under
|
|
99
|
+
contrast and forced colours ([themes.md](themes.md)).
|
|
100
|
+
- **Form tells gold from `warning`**, which sits close in hue: a warning is an
|
|
101
|
+
icon beside its line, and gold is never anything but a coin.
|
|
102
|
+
|
|
79
103
|
## Categories
|
|
80
104
|
|
|
81
105
|
**Six hues from the brand, each a Material 3 tonal palette.** alisx.com colours
|
package/rules/hosts.md
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
colour. We supply the words, the decisions, the states and what happens when
|
|
6
6
|
someone presses a button, and those are what make it Alis. A mail app and a
|
|
7
7
|
terminal are hosts too, with rules of their own ([email.md](email.md),
|
|
8
|
-
[terminal.md](terminal.md)); this file is every other one
|
|
8
|
+
[terminal.md](terminal.md)); this file is every other one, the phone included
|
|
9
|
+
(§ An app is a host too).
|
|
9
10
|
|
|
10
11
|
Each host has a profile in [hosts/](../hosts/README.md): one page and one data
|
|
11
12
|
file. This rule holds everything that is the same in every host; a profile holds
|
|
@@ -88,6 +89,48 @@ overflow at 320 wraps. Nothing else.
|
|
|
88
89
|
An embedded page doesn't draw what the host already draws: no second title bar, no
|
|
89
90
|
navigation pane, no sign-in screen when the host has signed the person in.
|
|
90
91
|
|
|
92
|
+
## An app is a host too
|
|
93
|
+
|
|
94
|
+
On iOS and Android our app runs inside the phone, and the phone is its host: it
|
|
95
|
+
draws the status bar, its sheets, alerts and menus, its notifications and
|
|
96
|
+
pickers, and its look wins there. The three kinds, on a phone:
|
|
97
|
+
|
|
98
|
+
| Kind | On a phone | We send |
|
|
99
|
+
| --- | --- | --- |
|
|
100
|
+
| **Card** | Notifications, the ongoing-call one and Android's Live Update among them; a permission prompt; a yes-or-no alert; the share sheet; the photo, file and date pickers; the store listing; an App Clip card | Words, states and decisions. The prompt's sentence is ours, its buttons the phone's |
|
|
101
|
+
| **Widget** | Picture-in-picture, a Live Activity and the Dynamic Island, a home-screen widget | A small view on the phone's font and colours, our roles mapped onto them |
|
|
102
|
+
| **Embedded page** | The app's own screens | The product register: our type, roles, components and words |
|
|
103
|
+
|
|
104
|
+
- **Our screens are ours, inside the phone's chrome.** The phone draws its own
|
|
105
|
+
parts and we draw everything else: the status bar and the safe areas; the
|
|
106
|
+
navigation bar and the back gesture; the frame of a sheet, an alert or a menu
|
|
107
|
+
(what's in a sheet is ours, what's in an alert is our words); the keyboard and
|
|
108
|
+
its autofill (a one-time code, an email, a password); the pickers; the share
|
|
109
|
+
sheet. Never a second back of our own, a sheet drawn as a page, or a picker of
|
|
110
|
+
our own where the phone has one. A screen that is the whole job (an interview
|
|
111
|
+
under way, its thank-you) draws no navigation bar.
|
|
112
|
+
- **The product register, from the pinned package.** Nunito Sans, scaled with
|
|
113
|
+
the phone's text size; the roles of [colour.md](colour.md) in light and dark,
|
|
114
|
+
read from the version of `@alis-build/design-system` the app pins, never
|
|
115
|
+
copied by hand; Material Symbols on our screens ([icons.md](icons.md)), the
|
|
116
|
+
phone's own glyphs only on what the phone draws; 48 targets. The theme is the
|
|
117
|
+
phone's setting ([themes.md](themes.md) § Who picks the theme).
|
|
118
|
+
- **Rules 1 to 3 of § Every host are for its cards and widgets**: a
|
|
119
|
+
notification, picture-in-picture, a Live Activity. Our screens follow the
|
|
120
|
+
product's own rules, so they keep their composer, their lists and their pages.
|
|
121
|
+
Rules 4 to 10 hold everywhere.
|
|
122
|
+
- **Work that carries on outside the app is a card.** An interview under way is
|
|
123
|
+
a call, not a task: its name, its state in a word ("Your turn", "Paused") and
|
|
124
|
+
the time, then two actions that can be undone (Pause or Resume; Stop sharing
|
|
125
|
+
while a screen is shared). Ending asks first, so Finish opens the app at its
|
|
126
|
+
ask. Pressing the notification opens the screen it came from.
|
|
127
|
+
- **The listing** follows § Names: AlisX, published by Alis Exchange, one per
|
|
128
|
+
store, with the home-screen label AlisX. The store's subtitle says what the
|
|
129
|
+
app does for now.
|
|
130
|
+
|
|
131
|
+
Each phone has a profile: [iOS](../hosts/ios.md) and
|
|
132
|
+
[Android](../hosts/android.md).
|
|
133
|
+
|
|
91
134
|
## What we send
|
|
92
135
|
|
|
93
136
|
A host gets the conversation the console has, translated: nothing is invented
|
package/rules/icons.md
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
# Icons
|
|
2
2
|
|
|
3
3
|
**Material Symbols Outlined, and the capability marks**, Alis's own set. No other
|
|
4
|
-
library, and nothing else hand-drawn. Self-host the subset you use.
|
|
4
|
+
library, and nothing else hand-drawn. Self-host the subset you use. An app on a
|
|
5
|
+
phone bundles the same subset for its own screens; the phone's own glyphs (SF
|
|
6
|
+
Symbols on iOS) appear only inside what the phone draws, such as its menus, share
|
|
7
|
+
sheet and pickers ([hosts.md](hosts.md) § An app is a host too).
|
|
5
8
|
|
|
6
9
|
## Sizes and axes
|
|
7
10
|
|
package/rules/known-gaps.md
CHANGED
|
@@ -4,7 +4,7 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
|
|
|
4
4
|
|
|
5
5
|
## Components not in the set
|
|
6
6
|
|
|
7
|
-
- **Date and time pickers**. Use a text field with a format hint.
|
|
7
|
+
- **Date and time pickers**. Use a text field with a format hint. In an app on a phone, use the phone's own picker ([hosts.md](hosts.md) § An app is a host too).
|
|
8
8
|
- **A bar of actions for several chosen rows** ("3 selected"). [AppCheckbox](../components/AppCheckbox.md) chooses them; what acts on them has no pattern yet. When some of the chosen are beyond the person's role, how the bar counts and reports them is already settled ([access.md](access.md) § Several at once).
|
|
9
9
|
- **The marketing components** (`.ax-*`, alisx.com) are not in this package: it covers the product register. A layout class for a grid of lattices is missing too.
|
|
10
10
|
- **What the AlisX Skill Store and AlisX Specialists offer**, beyond their one-line descriptions in [README.md](README.md). Marketing copy about them needs a product brief.
|
|
@@ -21,7 +21,8 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
|
|
|
21
21
|
- **Admin's words.** `words.json` names what Alis Ideate, Build and every product share; Admin's own things are not in it yet. Name them as the screen already does, and add the entry with the first change ([words.md](words.md)).
|
|
22
22
|
- **A terminal's drawn text.** `alisx-check words --text` reads the CLI's words file: its help, `alis docs`, the TUI's views and actions, tips, the tour and errors. Text the TUI writes straight into a screen (column headers, intros, empty states) is not in that file yet; review it by eye against `words.json` ([terminal.md](terminal.md)).
|
|
23
23
|
- **Hosts.** The checks a host profile asks for (`alisx-check cards`, a profile past its date) and the card templates aren't built yet ([hosts.md](hosts.md)).
|
|
24
|
-
- **Increase contrast** (`prefers-contrast: more
|
|
24
|
+
- **Increase contrast** (`prefers-contrast: more`; Increase Contrast on iOS, high-contrast text on Android) has no answer; nothing writes a rule for it yet ([themes.md](themes.md) § Modes). In an app, the phone's own controls take it.
|
|
25
|
+
- **The phones' proof.** The iOS and Android profiles are drafts: nothing has been seen on a device against them ([hosts/ios.md](../hosts/ios.md), [hosts/android.md](../hosts/android.md)).
|
|
25
26
|
- **A chart in contrast or under forced colours** loses its series colours: the categories collapse to ink. Label every series directly, or give it a pattern, until charts have a contrast answer ([themes.md](themes.md)).
|
|
26
27
|
- **A Glass view in contrast or under forced colours** hasn't been looked at: its rim and grid drop away and its edge takes the contrast edge, but nobody has checked it reads ([glass.md](glass.md), [themes.md](themes.md) § Contrast and forced colours).
|
|
27
28
|
- **A log viewer.** "View logs" goes to the logs' own screen; there is no pattern for showing logs inside a pane.
|
|
@@ -35,8 +36,8 @@ What the system doesn't decide yet, in one place. When you hit one, take the qui
|
|
|
35
36
|
|
|
36
37
|
## Motion
|
|
37
38
|
|
|
38
|
-
- **Gestures.** A swipe or a drag that lets go (the phone's navigation pane swiped shut, a row swiped to act on it, a row dragged to reorder) needs a spring that starts at the finger's speed, which CSS can't do. Until there is one, these move only on a press ([motion.md](motion.md)).
|
|
39
|
-
- **Motion tied to scrolling** (a phone's title bar condensing as you read) has no pattern yet.
|
|
39
|
+
- **Gestures.** A swipe or a drag that lets go (the phone's navigation pane swiped shut, a row swiped to act on it, a row dragged to reorder) needs a spring that starts at the finger's speed, which CSS can't do. Until there is one, these move only on a press ([motion.md](motion.md)). An app on a phone has it: SwiftUI and Compose springs take the finger's speed, from the same stiffness and damping.
|
|
40
|
+
- **Motion tied to scrolling** (a phone's title bar condensing as you read) has no pattern yet on the web. An app uses the phone's own: its navigation bar condenses as it scrolls.
|
|
40
41
|
- **Height** animates only in browsers with `interpolate-size`. Elsewhere a fold, an ask and an arriving row open at once and their contents still fade.
|
|
41
42
|
|
|
42
43
|
## Assets
|
package/rules/themes.md
CHANGED
|
@@ -52,9 +52,10 @@ surface (§ Who picks the theme).
|
|
|
52
52
|
| A card in a host (Teams, Slack) | The host | Roles only: the host draws it ([hosts.md](hosts.md)) |
|
|
53
53
|
| A widget in a host (Copilot, ChatGPT, Claude) | The host, from what it sends | Light or dark, from its profile's map ([hosts.md](hosts.md)) |
|
|
54
54
|
| An embedded page in a host (a Teams tab) | The host | Whatever its profile's map says, contrast included |
|
|
55
|
+
| An app on a phone (iOS, Android) | The phone's light or dark setting; a client's brand may fix one ([branding.md](branding.md)) | Light and dark, read from the pinned package ([hosts.md](hosts.md) § An app is a host too) |
|
|
55
56
|
|
|
56
57
|
Every surface drawn in HTML also honours the modes below, whoever picks its
|
|
57
|
-
theme.
|
|
58
|
+
theme, and an app honours the phone's own.
|
|
58
59
|
|
|
59
60
|
## Modes
|
|
60
61
|
|
|
@@ -65,8 +66,8 @@ every HTML surface honours them:
|
|
|
65
66
|
drops shadows and flattens fills. `alisx.css` keeps what matters visible
|
|
66
67
|
(§ Contrast and forced colours).
|
|
67
68
|
- **Reduced motion**: nothing travels ([motion.md](motion.md)).
|
|
68
|
-
- **Increase contrast** (`prefers-contrast: more`, macOS and others
|
|
69
|
-
answered yet. Write no rule for it; it may later take the contrast block
|
|
69
|
+
- **Increase contrast** (`prefers-contrast: more`, macOS and others; Increase
|
|
70
|
+
Contrast on iOS, high-contrast text on Android): not answered yet. Write no rule for it; it may later take the contrast block
|
|
70
71
|
without the contrast palette ([known-gaps.md](known-gaps.md)).
|
|
71
72
|
|
|
72
73
|
## Contrast and forced colours
|
package/themes.json
CHANGED
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
"warning": "#b58200",
|
|
25
25
|
"success": "#1e6b3a",
|
|
26
26
|
"info": "#2a5cbe",
|
|
27
|
+
"reward": "#eaa800",
|
|
28
|
+
"reward-edge": "#8f6400",
|
|
27
29
|
"inverse-surface": "#27323a",
|
|
28
30
|
"on-inverse-surface": "#f4f4f2",
|
|
29
31
|
"code-surface": "#f8f8f8",
|
|
@@ -101,6 +103,8 @@
|
|
|
101
103
|
"warning": "#e9b443",
|
|
102
104
|
"success": "#7ccf95",
|
|
103
105
|
"info": "#a9c1ff",
|
|
106
|
+
"reward": "#f7c948",
|
|
107
|
+
"reward-edge": "#ffd966",
|
|
104
108
|
"inverse-surface": "#dfe7ec",
|
|
105
109
|
"on-inverse-surface": "#27323a",
|
|
106
110
|
"code-surface": "#2c353b",
|
package/tokens.css
CHANGED
|
@@ -35,6 +35,8 @@
|
|
|
35
35
|
--violet-200: #c3b2f7;
|
|
36
36
|
--amber-100: #ffd9a8;
|
|
37
37
|
--amber-700: #b58200;
|
|
38
|
+
--gold-500: #eaa800;
|
|
39
|
+
--gold-800: #8f6400;
|
|
38
40
|
--alis-red: #f02222;
|
|
39
41
|
--red-700: #ba1a1a;
|
|
40
42
|
--green-700: #1e6b3a;
|
|
@@ -62,6 +64,8 @@
|
|
|
62
64
|
--warning: light-dark(var(--amber-700), #e9b443);
|
|
63
65
|
--success: light-dark(var(--green-700), #7ccf95);
|
|
64
66
|
--info: light-dark(var(--blue-600), #a9c1ff);
|
|
67
|
+
--reward: light-dark(var(--gold-500), #f7c948);
|
|
68
|
+
--reward-edge: light-dark(var(--gold-800), #ffd966);
|
|
65
69
|
--inverse-surface: light-dark(var(--petrol-800), var(--mist-100));
|
|
66
70
|
--on-inverse-surface: light-dark(var(--paper-100), var(--petrol-800));
|
|
67
71
|
--code-surface: light-dark(var(--paper-75), #2c353b);
|
|
@@ -261,6 +265,8 @@
|
|
|
261
265
|
--warning: var(--amber-700);
|
|
262
266
|
--success: var(--green-700);
|
|
263
267
|
--info: var(--blue-600);
|
|
268
|
+
--reward: var(--gold-500);
|
|
269
|
+
--reward-edge: var(--gold-800);
|
|
264
270
|
--inverse-surface: var(--petrol-800);
|
|
265
271
|
--on-inverse-surface: var(--paper-100);
|
|
266
272
|
--code-surface: var(--paper-75);
|
|
@@ -324,6 +330,8 @@
|
|
|
324
330
|
--warning: #e9b443;
|
|
325
331
|
--success: #7ccf95;
|
|
326
332
|
--info: #a9c1ff;
|
|
333
|
+
--reward: #f7c948;
|
|
334
|
+
--reward-edge: #ffd966;
|
|
327
335
|
--inverse-surface: var(--mist-100);
|
|
328
336
|
--on-inverse-surface: var(--petrol-800);
|
|
329
337
|
--code-surface: #2c353b;
|
|
@@ -397,6 +405,8 @@
|
|
|
397
405
|
--warning: #ffffff;
|
|
398
406
|
--success: #ffffff;
|
|
399
407
|
--info: #ffffff;
|
|
408
|
+
--reward: #ffffff;
|
|
409
|
+
--reward-edge: #ffffff;
|
|
400
410
|
--inverse-surface: #ffffff;
|
|
401
411
|
--on-inverse-surface: #000000;
|
|
402
412
|
--code-surface: #000000;
|
package/tokens.json
CHANGED
|
@@ -199,6 +199,18 @@
|
|
|
199
199
|
"value": "#b58200",
|
|
200
200
|
"usage": "Warning. 3.4:1 on white: never text ink, carried by an icon."
|
|
201
201
|
},
|
|
202
|
+
{
|
|
203
|
+
"name": "gold-500",
|
|
204
|
+
"register": "palette",
|
|
205
|
+
"value": "#eaa800",
|
|
206
|
+
"usage": "The coin's face on a light ground. 2.1:1 on white: never alone, its edge carries it."
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "gold-800",
|
|
210
|
+
"register": "palette",
|
|
211
|
+
"value": "#8f6400",
|
|
212
|
+
"usage": "The coin's edge on a light ground. 5.3:1 on white."
|
|
213
|
+
},
|
|
202
214
|
{
|
|
203
215
|
"name": "alis-red",
|
|
204
216
|
"register": "palette",
|
|
@@ -457,6 +469,26 @@
|
|
|
457
469
|
},
|
|
458
470
|
"usage": "Information. Always with an icon or label."
|
|
459
471
|
},
|
|
472
|
+
{
|
|
473
|
+
"name": "reward",
|
|
474
|
+
"register": "product",
|
|
475
|
+
"value": "{gold-500}",
|
|
476
|
+
"values": {
|
|
477
|
+
"light": "{gold-500}",
|
|
478
|
+
"dark": "#f7c948"
|
|
479
|
+
},
|
|
480
|
+
"usage": "The coin's face: credits that were on us, free or earned. Always inside reward-edge. Never text, a control or a status."
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"name": "reward-edge",
|
|
484
|
+
"register": "product",
|
|
485
|
+
"value": "{gold-800}",
|
|
486
|
+
"values": {
|
|
487
|
+
"light": "{gold-800}",
|
|
488
|
+
"dark": "#ffd966"
|
|
489
|
+
},
|
|
490
|
+
"usage": "The coin's rim, and the open coin where credits could be earned. Carries 3:1 on every ground."
|
|
491
|
+
},
|
|
460
492
|
{
|
|
461
493
|
"name": "inverse-surface",
|
|
462
494
|
"register": "product",
|
|
@@ -1150,6 +1182,18 @@
|
|
|
1150
1182
|
"min": 3,
|
|
1151
1183
|
"why": "Graphics: a warning icon, the Alis mark and caret (the composer floats), a field's edge."
|
|
1152
1184
|
},
|
|
1185
|
+
{
|
|
1186
|
+
"fg": [
|
|
1187
|
+
"reward-edge"
|
|
1188
|
+
],
|
|
1189
|
+
"bg": [
|
|
1190
|
+
"background",
|
|
1191
|
+
"surface",
|
|
1192
|
+
"surface-container-high"
|
|
1193
|
+
],
|
|
1194
|
+
"min": 3,
|
|
1195
|
+
"why": "The coin: its edge carries it on every ground, because the face alone falls short on a light one."
|
|
1196
|
+
},
|
|
1153
1197
|
{
|
|
1154
1198
|
"fg": [
|
|
1155
1199
|
"cat1",
|
|
@@ -1257,6 +1301,8 @@
|
|
|
1257
1301
|
"warning": "ink",
|
|
1258
1302
|
"success": "ink",
|
|
1259
1303
|
"info": "ink",
|
|
1304
|
+
"reward": "ink",
|
|
1305
|
+
"reward-edge": "ink",
|
|
1260
1306
|
"inverse-surface": "ink",
|
|
1261
1307
|
"on-inverse-surface": "ground",
|
|
1262
1308
|
"code-surface": "ground",
|