Skip to content

feat: publish a semantic host palette contract - #5

Merged
ilyaZar merged 4 commits into
devfrom
feat-host-palette-contract
Oct 29, 2026
Merged

ilyaZar merged 4 commits into
devfrom
feat-host-palette-contract

Conversation

@ilyaZar

@ilyaZar ilyaZar commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Closes #4.

Changes

  • integration/host-palette.json: the 12 semantic roles a Material You shell
    supplies and, per template token, the role that fills it. The mapping equals
    the one the Syncshell plugin hard-codes today, so switching the plugin to it
    changes no rendered output.
  • tests/host-palette.test.mjs: the contract resolves every placeholder of
    omarchy-theme.css.in exactly once and uses every role.
  • tests/omarchy-contrast.spec.mjs: Dux Shell's default purple theme (dark and
    light), mapped through the contract, runs the existing contrast and
    palette-refresh checks. In light mode the refresh helper keeps the dark
    foreground on the fixed Material success, warning and danger fills; that is
    recorded like the other light palettes.
  • README: documents the contract.

Checks

  • npm test: 83 passed.
  • tests/omarchy-contrast.spec.mjs: 49 passed, including the four new runs.
  • ESLint, shellcheck, tsc and Prettier pass; no shell script changed.

Compatibility

Additive: the release keeps integrationFormat: 1, and the plugin importer
only requires the existing files.

- material you shells export semantic roles, not terminal colors
- the contract maps each template token to a role, so hosts stop hard-coding it
- the contrast suite covers dux shell's default theme in dark and light mode

Closes #4
the browser suite needs about four minutes, but setup has run past the old limit
the ubuntu runner already ships chrome's libraries; the apt step alone took over twelve minutes
@ilyaZar
ilyaZar merged commit fd062c1 into dev Oct 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant