iPolloWork icon indicating copy to clipboard operation
iPolloWork copied to clipboard

Template guide omits the required managed token marker

Open IPollo-1 opened this issue 4 months ago • 1 comments

While checking our template instructions this week, I noticed that our public “Build a template” guide and our authoring contract disagree about the design-token stylesheet.

The guide currently presents this as an optional convention:

<link rel="stylesheet" href="design-tokens.css" />

But .codex/skills/ipollowork-template-generation/references/template-generation-contract.md says the entry must contain exactly one managed link, after inline style blocks:

<link rel="stylesheet" href="design-tokens.css" data-ipw-design-tokens>

This matters for us because someone following the public example can build a package that looks valid at first but does not identify its managed token layer the way our theme-switching and authoring workflow expects.

A quick way to check it:

  1. Follow packages/docs/start-here/do-work-with-it/build-a-template.mdx and copy its design-template HTML example.
  2. Declare editable --ipw-* variables in the manifest and stylesheet.
  3. Compare the resulting entry with the shared template-generation contract (or run the product validator).
  4. The documented link has no data-ipw-design-tokens marker, and the guide never says there must be exactly one marked link.

We should update the English and Chinese guides to use the marked link, explain its placement/cardinality, and add this detail to the release checklist. It would also be useful to add a docs/example assertion so the public snippet cannot drift from the validator contract again.

IPollo-1 avatar Aug 03 '26 09:08 IPollo-1

The issue has been fixed. Please download our new product release.

Devin-AXIS avatar Aug 03 '26 09:08 Devin-AXIS