@cratis/pi 7.139.0 → 7.140.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/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +15 -3
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +4 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +4 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +25 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/preferred-syntax.md +2 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +710 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +6 -8
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/design-system-and-themes.md +257 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/ui-profile-and-theme.md +8 -8
- package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +3 -0
- package/package.json +1 -1
package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.
|
|
1
|
+
6.3.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-screenplay-ui-composition
|
|
3
|
-
description: Use when declaring Screenplay shells, reusable templates, forms, navigation, interaction wiring or themes. Not for a screen's own query data and action contract; use cratis-screenplay-read-surface.
|
|
3
|
+
description: Use when declaring Screenplay shells, reusable templates, forms, navigation, interaction wiring, design systems or themes. Not for a screen's own query data and action contract; use cratis-screenplay-read-surface.
|
|
4
4
|
license: MIT
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -263,15 +263,13 @@ precedence, PLAY0485 and examples.
|
|
|
263
263
|
button. `on <Trigger>` observes an application trigger and `raise <Trigger>`
|
|
264
264
|
fires one; that is where the two meet.
|
|
265
265
|
|
|
266
|
-
## `
|
|
266
|
+
## `design system`, `theme` and `ui profile`
|
|
267
267
|
|
|
268
|
-
|
|
269
|
-
such as `theme "Scene Default Light"`: an undeclared quoted name selects a package
|
|
270
|
-
theme without PLAY0231; a declared one gets PLAY0232 compatibility checks. Bare
|
|
271
|
-
`theme Nordic` still works; declaration headers stay identifier-only. See the
|
|
272
|
-
reference below for escaping and PLAY0229 malformed/blank-name refusals.
|
|
268
|
+
The `design system` is the per-application contract; a `theme` implements it with values; a `ui profile` picks a theme, and `appearance` keeps only `color scheme` (`accent`, `corners`, `font`: `PLAY0929`). Read [references/design-system-and-themes.md](references/design-system-and-themes.md) first.
|
|
273
269
|
|
|
274
|
-
A
|
|
270
|
+
A quoted theme name such as `theme "Scene Default Light"` needs Screenplay 4.227.0 (rules in the reference below).
|
|
271
|
+
|
|
272
|
+
A `ui profile` selects the application shell with `root template` (an own layout or application-scope screen template, or `blueprint <B> <Name>` with an optional `version` pin), its shell `option` lines, an `appearance` block (`color scheme`), the template new screens start from (`new screens use template`), the theme and the `packages`, listed in override-priority order (a later package shadows an earlier one); `target platform` and `target size` accept any identifier, so a typo is silent. The legacy `layout <Name>` line inside a profile still reads but warns `PLAY0791`: write `root template`. `PLAY0790` to `PLAY0799` check the shell. Read [references/ui-profile-and-theme.md](references/ui-profile-and-theme.md) when writing a profile or fixing a shell diagnostic.
|
|
275
273
|
|
|
276
274
|
## A deliverable app declares its identity, titles and labels
|
|
277
275
|
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
# Design system and themes
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- The split: design system, theme, profile
|
|
6
|
+
- A design system and its default theme
|
|
7
|
+
- Tokens, components, words and rules
|
|
8
|
+
- A second theme and a profile that selects it
|
|
9
|
+
- Which theme and mode a profile gets
|
|
10
|
+
- Deprecated `appearance` members
|
|
11
|
+
- Diagnostics
|
|
12
|
+
- Reading and editing the design
|
|
13
|
+
- Checklist
|
|
14
|
+
|
|
15
|
+
Requires a Screenplay release that carries design systems (6.3.0 or later; check `screenplay --version`). Earlier compilers reject `design system` and a `theme` with `implements`. The `ui profile` that selects a theme and the shell are in [ui-profile-and-theme.md](ui-profile-and-theme.md).
|
|
16
|
+
|
|
17
|
+
## The split: design system, theme, profile
|
|
18
|
+
|
|
19
|
+
| Construct | Role | How many |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| `design system` | The contract: modes, tokens and what each is for, components built from tokens, words, contrast rules. No values. | Exactly one per application (a second is `PLAY0917`) |
|
|
22
|
+
| `theme ... implements` | An implementation: palette, token values, per-mode values. Never redefines components. | Several; one is the design system's `default theme` |
|
|
23
|
+
| `ui profile` | Picks a theme with `theme <Name>`; without one it is drawn in the `default theme`. `appearance` keeps only `color scheme`, which picks the mode. | One per target |
|
|
24
|
+
|
|
25
|
+
A theme with only `compatible with` lines and no `implements` is a compatibility-only theme and keeps working; a profile may select it only when the application declares no design system.
|
|
26
|
+
|
|
27
|
+
## A design system and its default theme
|
|
28
|
+
|
|
29
|
+
```screenplay
|
|
30
|
+
design system ShopDesign
|
|
31
|
+
modes light, dark
|
|
32
|
+
default theme Daylight
|
|
33
|
+
|
|
34
|
+
tokens
|
|
35
|
+
color
|
|
36
|
+
surface "page background"
|
|
37
|
+
text "body text"
|
|
38
|
+
primary "primary action"
|
|
39
|
+
on-primary "text on a primary action"
|
|
40
|
+
space
|
|
41
|
+
md "default gap between elements"
|
|
42
|
+
radius
|
|
43
|
+
control "inputs and buttons"
|
|
44
|
+
font
|
|
45
|
+
sans "interface text"
|
|
46
|
+
|
|
47
|
+
components
|
|
48
|
+
Button
|
|
49
|
+
parts text, background, radius
|
|
50
|
+
variant primary
|
|
51
|
+
text = color.on-primary
|
|
52
|
+
background = color.primary
|
|
53
|
+
radius = radius.control
|
|
54
|
+
state disabled
|
|
55
|
+
text = color.text
|
|
56
|
+
background = color.surface
|
|
57
|
+
|
|
58
|
+
words
|
|
59
|
+
voice
|
|
60
|
+
tone = "Plain and exact"
|
|
61
|
+
naming
|
|
62
|
+
customer = "Client"
|
|
63
|
+
|
|
64
|
+
rules
|
|
65
|
+
contrast text on background at least 4.5
|
|
66
|
+
|
|
67
|
+
theme Daylight
|
|
68
|
+
implements ShopDesign
|
|
69
|
+
compatible with core
|
|
70
|
+
|
|
71
|
+
palette
|
|
72
|
+
indigo = "#4338CA"
|
|
73
|
+
white = "#FFFFFF"
|
|
74
|
+
ink = "#111827"
|
|
75
|
+
|
|
76
|
+
values
|
|
77
|
+
space.md = "12px"
|
|
78
|
+
radius.control = "8px"
|
|
79
|
+
font.sans = "inter"
|
|
80
|
+
|
|
81
|
+
light
|
|
82
|
+
color.surface = palette.white
|
|
83
|
+
color.text = palette.ink
|
|
84
|
+
color.primary = palette.indigo
|
|
85
|
+
color.on-primary = palette.white
|
|
86
|
+
|
|
87
|
+
dark
|
|
88
|
+
color.surface = palette.ink
|
|
89
|
+
color.text = palette.white
|
|
90
|
+
color.primary = palette.indigo
|
|
91
|
+
color.on-primary = palette.white
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
- `default theme` is required (`PLAY0927`): a profile without a `theme` line resolves to it.
|
|
95
|
+
- A theme assigns every `color` token a value in every mode, from `values` or from the mode block (`PLAY0921`). Other categories need a value where a component uses the token (`PLAY0922`).
|
|
96
|
+
- A value is a quoted literal, `palette.<name>` or another token (`<category>.<name>`). Reference loops are `PLAY0923`.
|
|
97
|
+
|
|
98
|
+
## Tokens, components, words and rules
|
|
99
|
+
|
|
100
|
+
- Categories are closed: `color`, `space`, `size`, `radius`, `border`, `shadow`, `font`, `type`, `motion`, `opacity`, `z` (anything else is `PLAY0916`). A token is `<name> "<what it is for>"`; the description is the contract a theme author reads. Address a token as `<category>.<name>`.
|
|
101
|
+
- A component declares `parts` from `text`, `background`, `border`, `radius`, `height`, `padding`, `shadow`, `font`, then `variant`s assigning each part one token of a category the part takes (`background = space.md` is `PLAY0924`). `state` (`default`, `hover`, `focus`, `active`, `disabled`, `selected`) overrides only what changes.
|
|
102
|
+
- `words` holds `voice` and `naming` as `<key> = "<text>"` lines, once each; they travel with the design system.
|
|
103
|
+
- The one rule form is `contrast <part> on <part> at least <ratio>`. The compiler checks it for every theme, mode, variant and state except `disabled`, and warns `PLAY0928` naming the pair. Only hex and `rgb(...)` colors are measured; a named color is not checked.
|
|
104
|
+
- Modes belong to the design system, never to a theme; a mode block for an undeclared mode is `PLAY0918`.
|
|
105
|
+
|
|
106
|
+
## A second theme and a profile that selects it
|
|
107
|
+
|
|
108
|
+
```screenplay
|
|
109
|
+
design system ShopDesign
|
|
110
|
+
modes light, dark
|
|
111
|
+
default theme Daylight
|
|
112
|
+
|
|
113
|
+
tokens
|
|
114
|
+
color
|
|
115
|
+
surface "page background"
|
|
116
|
+
text "body text"
|
|
117
|
+
primary "primary action"
|
|
118
|
+
on-primary "text on a primary action"
|
|
119
|
+
space
|
|
120
|
+
md "default gap between elements"
|
|
121
|
+
radius
|
|
122
|
+
control "inputs and buttons"
|
|
123
|
+
font
|
|
124
|
+
sans "interface text"
|
|
125
|
+
|
|
126
|
+
components
|
|
127
|
+
Button
|
|
128
|
+
parts text, background, radius
|
|
129
|
+
variant primary
|
|
130
|
+
text = color.on-primary
|
|
131
|
+
background = color.primary
|
|
132
|
+
radius = radius.control
|
|
133
|
+
state disabled
|
|
134
|
+
text = color.text
|
|
135
|
+
background = color.surface
|
|
136
|
+
|
|
137
|
+
words
|
|
138
|
+
voice
|
|
139
|
+
tone = "Plain and exact"
|
|
140
|
+
naming
|
|
141
|
+
customer = "Client"
|
|
142
|
+
|
|
143
|
+
rules
|
|
144
|
+
contrast text on background at least 4.5
|
|
145
|
+
|
|
146
|
+
theme Daylight
|
|
147
|
+
implements ShopDesign
|
|
148
|
+
compatible with core
|
|
149
|
+
|
|
150
|
+
palette
|
|
151
|
+
indigo = "#4338CA"
|
|
152
|
+
white = "#FFFFFF"
|
|
153
|
+
ink = "#111827"
|
|
154
|
+
|
|
155
|
+
values
|
|
156
|
+
space.md = "12px"
|
|
157
|
+
radius.control = "8px"
|
|
158
|
+
font.sans = "inter"
|
|
159
|
+
|
|
160
|
+
light
|
|
161
|
+
color.surface = palette.white
|
|
162
|
+
color.text = palette.ink
|
|
163
|
+
color.primary = palette.indigo
|
|
164
|
+
color.on-primary = palette.white
|
|
165
|
+
|
|
166
|
+
dark
|
|
167
|
+
color.surface = palette.ink
|
|
168
|
+
color.text = palette.white
|
|
169
|
+
color.primary = palette.indigo
|
|
170
|
+
color.on-primary = palette.white
|
|
171
|
+
|
|
172
|
+
theme Square
|
|
173
|
+
implements ShopDesign
|
|
174
|
+
|
|
175
|
+
palette
|
|
176
|
+
indigo = "#4338CA"
|
|
177
|
+
white = "#FFFFFF"
|
|
178
|
+
ink = "#111827"
|
|
179
|
+
|
|
180
|
+
values
|
|
181
|
+
space.md = "12px"
|
|
182
|
+
radius.control = "0px"
|
|
183
|
+
font.sans = "inter"
|
|
184
|
+
|
|
185
|
+
light
|
|
186
|
+
color.surface = palette.white
|
|
187
|
+
color.text = palette.ink
|
|
188
|
+
color.primary = palette.indigo
|
|
189
|
+
color.on-primary = palette.white
|
|
190
|
+
|
|
191
|
+
dark
|
|
192
|
+
color.surface = palette.ink
|
|
193
|
+
color.text = palette.white
|
|
194
|
+
color.primary = palette.indigo
|
|
195
|
+
color.on-primary = palette.white
|
|
196
|
+
|
|
197
|
+
ui profile Desktop
|
|
198
|
+
target platform web
|
|
199
|
+
appearance
|
|
200
|
+
color scheme dark
|
|
201
|
+
|
|
202
|
+
ui profile Compact
|
|
203
|
+
target platform web
|
|
204
|
+
theme Square
|
|
205
|
+
appearance
|
|
206
|
+
color scheme light
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
`Desktop` has no `theme` line, so it gets `Daylight` (the default) in the `dark` mode. `Compact` overrides with `Square` and draws in `light`. The selected theme must implement the application's design system (`PLAY0926`). With no `color scheme`, or one that is not a mode (`system`), the first mode is used.
|
|
210
|
+
|
|
211
|
+
## Which theme and mode a profile gets
|
|
212
|
+
|
|
213
|
+
`DesignSystemResolver` in `Cratis.Screenplay.Design` offers `SelectTheme`, `SelectMode` and `Resolve(application, profile)`; the result is a flat `<category>.<name>` map with palette and token references followed, plus each component's variants and states merged over the variant's parts. A host reads that, not the syntax.
|
|
214
|
+
|
|
215
|
+
## Deprecated `appearance` members
|
|
216
|
+
|
|
217
|
+
`appearance` keeps only `color scheme`. `accent`, `corners` and `font` still read but warn `PLAY0929`; move the value into the theme:
|
|
218
|
+
|
|
219
|
+
| Was in `appearance` | Becomes, in the theme |
|
|
220
|
+
| --- | --- |
|
|
221
|
+
| `accent "#4F46E5"` | a `color` token value, such as `color.primary = "#4F46E5"` |
|
|
222
|
+
| `corners round` | a `radius` token value, such as `radius.control = "8px"` |
|
|
223
|
+
| `font inter` | a `font` token value, such as `font.sans = "inter"` |
|
|
224
|
+
|
|
225
|
+
Do not carry raw colors, radii or fonts in a profile: declare the token in the design system and give it a value in each theme.
|
|
226
|
+
|
|
227
|
+
## Diagnostics
|
|
228
|
+
|
|
229
|
+
| Code | Severity | Meaning |
|
|
230
|
+
| --- | --- | --- |
|
|
231
|
+
| `PLAY0916` | Error | Malformed `design system`: unknown section, token category, component part or state, bad line, a part the component does not declare, or a section twice. |
|
|
232
|
+
| `PLAY0917` | Error | A second `design system`. |
|
|
233
|
+
| `PLAY0918` | Error | A theme block for a mode the design system does not declare. |
|
|
234
|
+
| `PLAY0919` | Error | A mode, token, component, variant, part, palette entry, value or word declared twice. |
|
|
235
|
+
| `PLAY0920` | Error | A theme assigns a token the design system does not declare. |
|
|
236
|
+
| `PLAY0921` | Error | An implementing theme gives a `color` token no value in a declared mode. |
|
|
237
|
+
| `PLAY0922` | Error | A design reference names something undeclared, or a token with no value. |
|
|
238
|
+
| `PLAY0923` | Error | Design references loop. |
|
|
239
|
+
| `PLAY0924` | Error | A part takes a token of a category it cannot take. |
|
|
240
|
+
| `PLAY0925` | Error | A theme `implements` an undeclared design system. |
|
|
241
|
+
| `PLAY0926` | Error | A profile selects a theme that does not implement the design system. |
|
|
242
|
+
| `PLAY0927` | Error | No `default theme`, or it is undeclared or does not implement the design system. |
|
|
243
|
+
| `PLAY0928` | Warning | A theme and mode resolve a text/background pair below a `contrast` rule (`disabled` not checked). |
|
|
244
|
+
| `PLAY0929` | Warning | `accent`, `corners` or `font` in `appearance` is deprecated. |
|
|
245
|
+
| `PLAY0930` | Error | A theme's `implements`, `palette`, `values` or mode block is malformed or repeated. |
|
|
246
|
+
|
|
247
|
+
The executable semantic model defers the design system as UI configuration (`PLAY0269` on binding); it is not an error.
|
|
248
|
+
|
|
249
|
+
## Reading and editing the design
|
|
250
|
+
|
|
251
|
+
The MCP `ui-profiles` read tool (no new tool) also returns the design system, every theme with its palette, values and per-mode values, each theme's resolved tokens and components per mode, the theme and mode each profile resolves to (`resolvedTheme`), the diagnostics `PLAY0916` to `PLAY0930` and the closed vocabulary of categories, parts and states. Edit with `propose-ast` on `DesignSystemSyntax`, `DesignTokenCategorySyntax`, `DesignTokenSyntax`, `DesignComponentSyntax`, `DesignVariantSyntax`, `DesignStateSyntax`, `DesignAssignmentSyntax`, `DesignWordsSyntax`, `DesignContrastRuleSyntax`, `ThemeModeValuesSyntax` and `ThemeSyntax` (`implements`, `palette`, `values`, `modeValues`); the compiler refuses an invalid edit with its code. Node details: [model-authoring MCP tools](../../cratis-screenplay-model-authoring/references/mcp-tools.md).
|
|
252
|
+
|
|
253
|
+
Source: [Design system](https://github.com/Cratis/Screenplay/blob/main/Documentation/screenplay/design-system.md) and [Theme](https://github.com/Cratis/Screenplay/blob/main/Documentation/screenplay/theme.md).
|
|
254
|
+
|
|
255
|
+
## Checklist
|
|
256
|
+
|
|
257
|
+
- [ ] One `design system` with a `default theme`; each selected theme implements it and sets every `color` token in each mode; no profile carries `accent`, `corners` or `font`.
|
package/package/corpus/skills/cratis-screenplay-ui-composition/references/ui-profile-and-theme.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
- `ui profile` and `theme`
|
|
7
7
|
- Reading and editing the shell
|
|
8
8
|
|
|
9
|
+
A `design system` (the contract) and a `theme` that implements it (the values) are in [design-system-and-themes.md](design-system-and-themes.md). `appearance` keeps only `color scheme`; `accent`, `corners` and `font` are deprecated (`PLAY0929`, `PLAY0789` and `PLAY0797` no longer describe them).
|
|
10
|
+
|
|
9
11
|
This reference holds the `ui profile` and `theme` excerpts and their rules: the root template that names the application shell, shell options, appearance, the new screens default, platforms, sizes, package order and theme compatibility. Requires Screenplay 4.200.0 or later (`screenplay --version`) for the diagnostics `PLAY0790` to `PLAY0799`; 4.197.0 reads the syntax.
|
|
10
12
|
|
|
11
13
|
## The shell: `root template`
|
|
@@ -45,9 +47,6 @@ ui profile Desktop
|
|
|
45
47
|
|
|
46
48
|
appearance
|
|
47
49
|
color scheme dark
|
|
48
|
-
accent "#4F46E5"
|
|
49
|
-
corners round
|
|
50
|
-
font inter
|
|
51
50
|
|
|
52
51
|
new screens use template Sheet
|
|
53
52
|
|
|
@@ -77,8 +76,7 @@ ui profile Web
|
|
|
77
76
|
`logo initials "<AB>"` (1-2 characters), `logo icon <icon>` (`box`, `layers`, `home`, `users`, `receipt`, `package`, `database` or `palette`) or
|
|
78
77
|
`logo image "<data:image/png|jpeg|svg+xml|webp;base64,...>"` (400 KB at most; the logo travels inside the document, never as a file beside it),
|
|
79
78
|
and `show name true|false`. One block per profile, each line once. Give each application its own `identity` so Studio and Stage draw its logo.
|
|
80
|
-
- `appearance`: `color scheme` is `light`, `dark` or `system
|
|
81
|
-
`default` or `round`; `font` is an id of Scene's font catalog (`inter`, `ibm-plex-sans`, `source-serif-4`, `system-ui`). One block per profile.
|
|
79
|
+
- `appearance`: `color scheme` is `light`, `dark` or `system` (with a design system it selects the mode of that name). `accent`, `corners` and `font` are deprecated (`PLAY0929`): they still read, but the value belongs in the selected theme. One block per profile.
|
|
82
80
|
- `new screens use template`: the template a new screen starts from in a designer. It is an authoring default, it changes no existing
|
|
83
81
|
screen, and it has to be able to start a screen in a feature (not a layout or an application-scope root; a `scopes` list that leaves
|
|
84
82
|
out `feature` is refused).
|
|
@@ -89,7 +87,7 @@ ui profile Web
|
|
|
89
87
|
| Code | Severity | Cause | Fix |
|
|
90
88
|
| --- | --- | --- | --- |
|
|
91
89
|
| `PLAY0788` | Error | A `root template` or `new screens use template` line is malformed, or it pins a version on an own template | Write `[blueprint <B>] <Name> [version "<range>"]`; drop the version on an own template |
|
|
92
|
-
| `PLAY0789` | Error | A malformed `identity` or `appearance` line, a repeated line, or two `identity` / `appearance` blocks | `color scheme <word>`, `accent "<colour>"`, `corners <word
|
|
90
|
+
| `PLAY0789` | Error | A malformed `identity` or `appearance` line, a repeated line, or two `identity` / `appearance` blocks | `color scheme <word>`, deprecated `accent "<colour>"`, `corners <word>` and `font <id>` (`PLAY0929`), `name "<text>"`, `logo initials|icon|image <value>`, `show name <true|false>`, each once, one block each |
|
|
93
91
|
| `PLAY0790` | Error | The template is not declared in the document (or the blueprint does not ship it) | Declare `layout <Name>` or `screen template <Name>`, or take it from a blueprint |
|
|
94
92
|
| `PLAY0791` | Warning | The profile still selects its shell with the legacy `layout <Name>` line | Write `root template <Name>`; remove the `layout` line when a `root template` is present (the quick fix does either) |
|
|
95
93
|
| `PLAY0792` | Error | The blueprint is not listed in the profile's `packages` (or not installed) | Add it under `packages` |
|
|
@@ -97,7 +95,7 @@ ui profile Web
|
|
|
97
95
|
| `PLAY0794` | Error | The root template cannot be the shell: a dialog or ordinary screen template, a slot-fitting template, `scopes` without `application` | Choose a layout or an application-scope template |
|
|
98
96
|
| `PLAY0795` | Error | The root template has no `content` slot | Add the line `content` to it |
|
|
99
97
|
| `PLAY0796` | Warning | An `option` the shell does not expose | Use a name the shell exposes, or add the property to its `exposure` |
|
|
100
|
-
| `PLAY0797` | Error | An invalid color scheme
|
|
98
|
+
| `PLAY0797` | Error | An invalid color scheme or identity value (the deprecated `accent` and `corners` are still checked while they read) | `light`, `dark` or `system`; 1-2 initials, a listed icon, an image data URI of at most 400 KB |
|
|
101
99
|
| `PLAY0798` | Error | More than one `root template` in one profile | Keep one |
|
|
102
100
|
| `PLAY0799` | Error | The `new screens use template` default cannot start a screen in a feature | Name a feature-scope screen template |
|
|
103
101
|
|
|
@@ -176,6 +174,8 @@ Empty, blank or unterminated quoted names are `PLAY0229`. Repeating a profile's
|
|
|
176
174
|
parse acceptance does not prove that an installed package provides the theme.
|
|
177
175
|
Source: [UI profile parser](https://github.com/Cratis/Screenplay/blob/main/Source/DotNET/Screenplay/Parsing/UiProfileParser.cs).
|
|
178
176
|
|
|
177
|
+
When the application declares a `design system`, a profile without `theme` is drawn in its `default theme`, a `theme` line must name a theme that implements it (`PLAY0926`) and `color scheme` selects the mode. See [design-system-and-themes.md](design-system-and-themes.md).
|
|
178
|
+
|
|
179
179
|
- `target platform` takes a comma-separated list. `web`, `ios` and `android` are
|
|
180
180
|
the documented examples; ⚠️ **the parser accepts any identifier** — there is no
|
|
181
181
|
enforced list, so a typo is silent.
|
|
@@ -192,4 +192,4 @@ Source: [UI profile parser](https://github.com/Cratis/Screenplay/blob/main/Sourc
|
|
|
192
192
|
|
|
193
193
|
## Reading and editing the shell
|
|
194
194
|
|
|
195
|
-
`ui-profiles` (MCP, Screenplay 4.201.0 or later) returns every profile's root template, options, appearance and new screens default with the shell diagnostics, and the own templates that could be the root template or the new screens default. Edit with `propose-ast` on `RootTemplateSyntax`, `ShellOptionSyntax` (`syntaxKind` is the value's kind), `ProfileAppearanceSyntax` and `NewScreenTemplateSyntax`; an invalid reference is refused with its code.
|
|
195
|
+
`ui-profiles` (MCP, Screenplay 4.201.0 or later) returns every profile's root template, options, appearance, theme and the theme and mode it resolves to, and new screens default with the shell diagnostics, and the own templates that could be the root template or the new screens default. Edit with `propose-ast` on `RootTemplateSyntax`, `ShellOptionSyntax` (`syntaxKind` is the value's kind), `ProfileAppearanceSyntax` and `NewScreenTemplateSyntax`; an invalid reference is refused with its code. The same read returns the design system and themes; edit those with the `Design*Syntax` nodes in [design-system-and-themes.md](design-system-and-themes.md).
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
{ "kind": "skill-contains", "value": "theme \"Scene Default Light\"", "file": "references/ui-profile-and-theme.md" },
|
|
12
12
|
{ "kind": "skill-contains", "value": "Empty, blank or unterminated quoted names are `PLAY0229`", "file": "references/ui-profile-and-theme.md" },
|
|
13
13
|
{ "kind": "skill-contains", "value": "package compatibility check", "file": "references/ui-profile-and-theme.md" },
|
|
14
|
+
{ "kind": "skill-contains", "value": "design system", "file": "SKILL.md" },
|
|
15
|
+
{ "kind": "skill-contains", "value": "implements", "file": "references/design-system-and-themes.md" },
|
|
16
|
+
{ "kind": "skill-contains", "value": "default theme", "file": "references/design-system-and-themes.md" },
|
|
14
17
|
{
|
|
15
18
|
"kind": "skill-contains",
|
|
16
19
|
"value": "PLAY0685",
|