Conversation
added 5 commits
July 20, 2026 18:36
# Conflicts: # docs/PUBLISHING.md # package.json # tests/package-integrity.test.js
Contributor
There was a problem hiding this comment.
Pull request overview
Prepares the ui-style-kit-css 2.1.0 release line by introducing a visual-only public API, a machine-readable capability manifest, a five-layer cascade architecture, expanded native-element coverage, and strengthened release/CI verification across browsers and ecosystem packages.
Changes:
- Add
visual.css+ focusedvisual/<preset>.cssentrypoints and refactor the build into ordered layers (theme_colors,native_elements,components,presets,compat_layout). - Introduce
manifest.jsondescribing presets, themes, modes, class capabilities, and native-part ownership; wire demo controls and tests to it. - Expand verification: CSS-tree AST contract tests, Axe scans, a sharded UI matrix, and packed ecosystem compatibility checks; update CI and docs accordingly.
Reviewed changes
Copilot reviewed 41 out of 59 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| wiki/UI-Systems.md | Updates wiki architecture/bridge documentation for 2.1.0 layers and new theme bridge. |
| wiki/Installation-and-Setup.md | Documents visual-only entrypoints and canonical Interactive Surface integration order. |
| wiki/Home.md | Updates overview to 2.1.0 features and deprecation messaging. |
| wiki/Ecosystem-Compatibility.md | Refreshes ecosystem matrix and import examples for 2.1.0 + Interactive Surface 1.5.0. |
| tests/public-api.test.js | Adds public API/manifest/layer/bridge contract tests for 2.1.0 outputs. |
| tests/package-integrity.test.js | Extends package integrity assertions (manifest, docs import order, scripts, CI sharding). |
| tests/native-elements-contract.test.js | Adds native-element token/selector/manifest classification contract tests. |
| tests/matrix/ui-matrix.spec.js | Adds sharded, cross-engine UI matrix Playwright spec validating rendered paint/geometry. |
| tests/e2e/demo.spec.js | Improves demo E2E stability and adds manifest + modal backdrop coverage. |
| tests/e2e/css-correctness.spec.js | Adds cross-preset visual bundle correctness checks (pill geometry, validity paint). |
| tests/e2e/accessibility.spec.js | Adds representative Axe scans against demo states. |
| tests/css-correctness.test.js | Adds a correctness regression for maximalist sticker foreground token usage. |
| tests/class-api.test.js | Refactors class API checks to AST-based validation and expands shared utilities coverage. |
| tests/build-tooling.test.js | Pins css-tree version contract and includes visual min bundle in banner checks. |
| styles/native-elements.css | Expands shared native coverage (tokens, subparts, validity/disabled/forced-colors, etc.). |
| styles/maximalist.css | Fixes .max-sticker foreground to consume --max-on-accent. |
| styles/interactive-surface-theme.css | Adds canonical token-and-paint-only theme bridge for Interactive Surface state core. |
| styles/interactive-surface-bridge.css | Marks legacy bridge as deprecated in header documentation. |
| styles/components.css | Introduces shared component foundations (overflow safety, pills, tooltips, utilities, etc.). |
| styles/compat-layout.css | Adds isolated, frozen deprecated structural helper layer for compatibility bundles. |
| scripts/check-package.mjs | Extends package validation for manifest/layers/visual bundles and theme-bridge constraints. |
| scripts/check-ecosystem-packs.mjs | Adds packed ecosystem compatibility validation across UI/Layout/Interactive entrypoints. |
| scripts/build.mjs | Major build refactor to layer-based architecture, visual/focused outputs, and manifest-backed demo snapshot. |
| README.md | Updates public docs for 2.1.0 architecture, entrypoints, bridge guidance, and verification steps. |
| playwright.matrix.config.js | Adds dedicated Playwright config for the sharded UI matrix suite. |
| playwright.config.js | Expands default Playwright projects to include Chromium/Firefox/WebKit consistently. |
| package.json | Bumps to 2.1.0; adds manifest export, new entrypoints, new verification scripts, and new dev deps. |
| package-lock.json | Updates lock for 2.1.0 and adds new dev dependencies (css-tree, @axe-core/playwright, etc.). |
| manifest.json | Adds machine-readable capability manifest for presets/themes/modes/class API/native parts. |
| index.html | Updates demo shell to load manifest snapshot and align default select option state. |
| docs/TOKENS.md | Documents expanded native token set introduced in 2.1.0. |
| docs/PUBLISHING.md | Updates release gate documentation and adds packed ecosystem check instructions + rollout order. |
| docs/NATIVE-ELEMENTS.md | Adds native coverage policy documentation and classification/subpart contract notes. |
| docs/ECOSYSTEM.md | Updates ecosystem adoption guidance and canonical import order for 2.1.0. |
| demo/index.html | Updates demo page to load demo-manifest.js before demo.js and align default selects. |
| demo/demo.js | Switches demo metadata/select options to manifest snapshot and adds modal demo interaction + a11y tweaks. |
| demo/demo.css | Tweaks demo utility surface styling for correct readable content. |
| demo/demo-manifest.js | Adds generated manifest snapshot consumed by demo UI. |
| CHANGELOG.md | Adds 2.1.0 changelog entry covering architecture, manifest, bridges, and verification expansion. |
| .github/workflows/release-version-alignment.yml | Extends release alignment workflow to include visual checks + UI matrix. |
| .github/workflows/npm-publish.yml | Extends publish verification to include visual checks + UI matrix. |
| .github/workflows/ci.yml | Adds sharded cross-engine UI matrix job to CI. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+175
to
179
| For production, pin the exact approved release rather than relying on `latest`: | ||
|
|
||
| ```html | ||
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ui-style-kit-css@2.0.3/dist/ui-style-kit.min.css" /> | ||
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ui-style-kit-css@2.1.0/dist/ui-style-kit.min.css" /> | ||
| ``` |
Comment on lines
+15
to
+24
| async function applyState(page, { ui, theme, mode, bridge }) { | ||
| await page.selectOption('#uiSelect', ui); | ||
| await page.selectOption('#themeSelect', theme); | ||
| await page.selectOption('#modeSelect', mode); | ||
| await page.locator('#bridgeToggle').setChecked(bridge, { force: true }); | ||
| await expect(page.locator('body')).toHaveAttribute('data-ui', ui); | ||
| await expect(page.locator('body')).toHaveAttribute('data-theme', theme); | ||
| await expect(page.locator('body')).toHaveAttribute('data-mode', mode); | ||
| await expect(page.locator('body')).toHaveAttribute('data-bridge', bridge ? 'attached' : 'detached'); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
origin/mainprepublishOnlyreruns browser coverageinteractive-surface-css@1.5.0is the released companion state engineui-style-kit-css@2.1.0approval-gated: no 2.1 tag, GitHub Release, merge to main, or npm publish has been performedCurrent branch state
5957e90858912d4a86a452fbdbf482cd7bb367a5main2b17df1edce40895c813a4e6cc3a7c48af40dbd85fee313ded7a990d645fd19242032a13a37b319bui-style-kit-css@2.0.4is published aslatest;ui-style-kit-css@2.1.0returns npmE404v2.0.4exists;v2.1.0does not existVerification
npm run release:verifynpm run checknpm run buildnpm run lintnpm run test:unit— 63 passednpm run check:contrast— passednpm run check:package— passednpm run test:e2e— 103 passed, 2 expected engine-specific skipsnpm run test:axe— 9 passednpm run test:visual— 33 passednpm run test:matrix— 990 passednpm run check:ecosystem:packs— standalone, pairwise, all-three, canonical browser, and legacy browser checks passed againstinteractive-surface-css@1.5.0npm audit --audit-level=moderate— found 0 vulnerabilitiesnpm run pack:dry-run—ui-style-kit-css-2.1.0.tgz, 48 files, shasum1a339ddad26c915aa19998615917ebda879b1328No npm publish, tag, GitHub release, or merge to
mainfor 2.1.0 is performed by this PR. The next approval-gated step is explicit approval to merge/releaseui-style-kit-css@2.1.0.