@wix/himalaya-cli 0.1683.0 → 0.1685.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.
@@ -723,6 +723,35 @@ shipped with the CLI). To stay kit-clean:
723
723
  The screen owns *composition*; the kit owns *look*. Keep that seam clean and one restyle re-skins every
724
724
  screen for free.
725
725
 
726
+ ## 8b. Design first in HTML, then build to it (optional)
727
+
728
+ For a screen whose quality rests on its look (an editorial home, a playful or illustrated screen,
729
+ a product page, a hero-led dashboard), you may draft it first as one free HTML page at phone width
730
+ and build the Himi screen to match it. You compose most freely in plain HTML, and a screen built to
731
+ a finished picture keeps more of it than one designed inside the component vocabulary from the
732
+ start. In a blind comparison of five such screens, a page drafted in HTML and then built to it
733
+ scored as well as the HTML itself. Screens designed directly in a Himi format scored 1.5 to 2
734
+ points lower (of 10). They lost most on imagery, delight and type.
735
+
736
+ 1. **Draft** `.himi/mockup/<screen>.html`: one self-contained page at 390 points wide, light mode. Keep it
737
+ under `.himi/`, which `himi push` leaves out of the source archive, so the draft never ships. Do not
738
+ draw a status bar or a tab bar, because the shell draws its own. Use real copy and data.
739
+ 2. **Critique it** from a screenshot as you would a finished screen. Run the self-check in §9 on the
740
+ picture: one primary action, hierarchy, rhythm. Fix the design here, where changes are cheapest.
741
+ 3. **Build the Himi screen to it**, with the usual authoring path and the rules in this guide
742
+ (tokens, components chosen for their job, states, accessibility). The mockup sets the target.
743
+ It is not code to copy: absolute positions, pseudo-elements and inline SVG have no one-to-one
744
+ equivalent.
745
+ 4. **Compare** `himi render <screenId> --width 390 --png` with a screenshot of the mockup, side by
746
+ side, and close the gaps that matter.
747
+ 5. **When a part cannot be expressed**, choose the closest native idiom (a token gradient, a
748
+ component, an icon), not a picture of it. A rasterized illustration or a hard-coded pixel offset
749
+ looks right at 390 points and breaks in dark mode, on tablets and with live data. Keep a short
750
+ list of what you gave up, so a reviewer sees the trade.
751
+
752
+ Skip it for routine screens (settings, forms, plain lists), where the component catalog in §3
753
+ already gives the design.
754
+
726
755
  ---
727
756
 
728
757
  ## 9. Self-check before "done"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1683.0",
3
+ "version": "0.1685.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": [
@@ -81,5 +81,5 @@
81
81
  "artifactId": "himalaya-cli"
82
82
  }
83
83
  },
84
- "falconPackageHash": "312fee08d769e0fa4eaae3e560a4f4dd3b9257815958af40cc80e608"
84
+ "falconPackageHash": "06ae60f052ab8e90d833b523fdc05645b7cf0cbcb554d39a92435bda"
85
85
  }