@wix/himalaya-cli 0.1043.0 → 0.1045.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/dist/cli.mjs +568 -451
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/designing-himi-screens.md +5 -1
- package/guides/templates.md +16 -0
- package/package.json +2 -2
- package/stdlib/design-kits/README.md +8 -0
- package/templates/beauty-salon/tokens.json +5 -0
- package/templates/beauty-salon-owner/tokens.json +5 -0
- package/templates/community-club/tokens.json +5 -0
- package/templates/community-club-owner/tokens.json +5 -0
- package/templates/events-meetups/tokens.json +5 -0
- package/templates/events-meetups-owner/tokens.json +5 -0
- package/templates/gym-fitness/tokens.json +5 -0
- package/templates/gym-fitness-owner/tokens.json +5 -0
- package/templates/nonprofit-cause/tokens.json +5 -0
- package/templates/nonprofit-cause-owner/tokens.json +5 -0
- package/templates/podcast-creator/tokens.json +5 -0
- package/templates/podcast-creator-owner/tokens.json +5 -0
- package/templates/portfolio-creative/tokens.json +5 -0
- package/templates/portfolio-creative-owner/tokens.json +5 -0
- package/templates/restaurant/tokens.json +5 -0
- package/templates/restaurant-owner/tokens.json +5 -0
- package/templates/retail-store/tokens.json +5 -0
- package/templates/retail-store-owner/tokens.json +5 -0
- package/templates/yoga-studio/tokens.json +5 -0
- package/templates/yoga-studio-owner/tokens.json +5 -0
|
Binary file
|
|
@@ -83,7 +83,11 @@ family whose faces could not be fetched, which would otherwise ship as its fallb
|
|
|
83
83
|
### Token discipline — every value is a `TokenRef`, never a literal
|
|
84
84
|
Colors, gradients, shadows, materials, motions are named tokens (`{ token: "accentPrimary" }`), never
|
|
85
85
|
hex. `himi validate` rejects unknown names; a literal hex is a design smell even when it "works." Use the **semantic** roles for meaning:
|
|
86
|
-
`success` / `warning` / `danger` for status, `textOnAccent` for text sitting on an accent surface
|
|
86
|
+
`success` / `warning` / `danger` for status, `textOnAccent` for text sitting on an accent surface,
|
|
87
|
+
and `accentText` for accent-COLOURED text on the page (links, "See all"). `accentPrimary` is the
|
|
88
|
+
accent FILL; many brand accents fail 4.5:1 as text, so brand derivation writes a same-hue
|
|
89
|
+
`accentText` that passes, and secondary/tertiary/link/plain Button labels already use it. It is
|
|
90
|
+
optional: every renderer falls back to `accentPrimary` when a tokens.json has none.
|
|
87
91
|
|
|
88
92
|
### Copy is configuration — never hardcoded in the descriptor
|
|
89
93
|
User-facing text is white-labelable **configuration**, exactly like a color token — a template/app
|
package/guides/templates.md
CHANGED
|
@@ -116,6 +116,22 @@ himi template publish --target bo # from the app dir
|
|
|
116
116
|
himi template publish --dir <app> --source-dir <dir> --name <name> --target bo
|
|
117
117
|
```
|
|
118
118
|
|
|
119
|
+
A **template tree that still carries the `__HIMI_APP_NAME__` placeholder** (a generated
|
|
120
|
+
template, as `himi init` receives it) publishes with `--dir` alone:
|
|
121
|
+
|
|
122
|
+
```sh
|
|
123
|
+
himi template publish --dir <template-dir> --target bo
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Its `himalaya.content.json` name is the placeholder, so the template name comes from the
|
|
127
|
+
**directory name**, and the preview is built from a substituted copy titled with the template's
|
|
128
|
+
own `title`. Pass `--name` only to publish under a different name. Every name, given or
|
|
129
|
+
derived, must be a lowercase kebab id short enough to fit once `himi-template-` is prefixed; a
|
|
130
|
+
name that fails is refused before anything is built.
|
|
131
|
+
|
|
132
|
+
A published template does not follow its source: after changing a template, publish it again so
|
|
133
|
+
`himi template list --remote` and `himi init … --remote` serve the new version.
|
|
134
|
+
|
|
119
135
|
`publish` builds a previewable release from the app and attaches the editable scaffold source,
|
|
120
136
|
sentinel-izing identity so it re-parameterizes on the next `himi init`. It then appears in
|
|
121
137
|
`himi template list --remote` and is scaffoldable with `himi init … --remote`. (Only the app
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1045.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"artifactId": "himalaya-cli"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
"falconPackageHash": "
|
|
68
|
+
"falconPackageHash": "0a575418cdf281d15de4e62af6654a6d47a91cf26467dad0a437484b"
|
|
69
69
|
}
|
|
@@ -126,6 +126,14 @@ elevation subtle (≤ 2:1 vs the page, dark arms stepping *lighter* as elevation
|
|
|
126
126
|
rises); accents ≥ 3:1 on the page with textOnAccent ≥ 4.5:1; semantic colors
|
|
127
127
|
≥ 3:1 on the page and on their own surfaces.
|
|
128
128
|
|
|
129
|
+
`accentText` (#3275) is deliberately NOT in the ladder. It is the accent's text
|
|
130
|
+
arm, which non-filled button labels paint and which falls back to `accentPrimary`
|
|
131
|
+
when absent. Brand application derives it per arm: the brand itself when it already
|
|
132
|
+
clears 4.5:1 on `surfacePrimary`, else the smallest same-hue step that does
|
|
133
|
+
(`deriveAccentText` in `core/ts/src/brand-color-math.ts`). A kit never has to ship
|
|
134
|
+
it, and `core/ts/tests/brand-tokens.test.ts` checks that every kit × brand result
|
|
135
|
+
clears 4.5:1.
|
|
136
|
+
|
|
129
137
|
Deliberate judgment calls (the 2026-07 color reconsideration):
|
|
130
138
|
|
|
131
139
|
- **playful** — the hot-pink `textPrimary` failed 7:1 everywhere; legibility
|