ui-style-kit-css 2.2.0 → 2.3.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +100 -31
  3. package/STYLE-MAP.md +19 -0
  4. package/dist/ui-style-kit.css +18417 -1704
  5. package/dist/ui-style-kit.min.css +2 -2
  6. package/dist/ui-style-kit.visual.css +17709 -1446
  7. package/dist/ui-style-kit.visual.min.css +2 -2
  8. package/dist/ui-style-kit.with-bridge.css +18425 -1706
  9. package/dist/ui-style-kit.with-bridge.min.css +2 -2
  10. package/dist/visual/art-deco.css +4776 -0
  11. package/dist/visual/bauhaus.css +1809 -78
  12. package/dist/visual/bento.css +1825 -97
  13. package/dist/visual/brutalism.css +1774 -35
  14. package/dist/visual/clay.css +4789 -0
  15. package/dist/visual/cyberpunk.css +1765 -35
  16. package/dist/visual/data-terminal.css +4804 -0
  17. package/dist/visual/editorial-luxe.css +4804 -0
  18. package/dist/visual/industrial-utility.css +4797 -0
  19. package/dist/visual/maximalist.css +1771 -37
  20. package/dist/visual/minimal-saas.css +1801 -78
  21. package/dist/visual/neo-noir.css +4790 -0
  22. package/dist/visual/neumorphism.css +1807 -78
  23. package/dist/visual/organic-modern.css +4767 -0
  24. package/dist/visual/paper-editorial.css +4799 -0
  25. package/dist/visual/retro-glass.css +1786 -36
  26. package/dist/visual/retrofuturism.css +1759 -36
  27. package/dist/visual/tactile.css +1760 -36
  28. package/dist/visual/technical-blueprint.css +4791 -0
  29. package/dist/visual/y2k.css +1767 -35
  30. package/docs/ECOSYSTEM.md +8 -4
  31. package/docs/PUBLISHING.md +14 -10
  32. package/docs/STYLE-GUIDE.md +53 -13
  33. package/docs/TOKENS.md +10 -1
  34. package/docs/superpowers/plans/2026-08-29-preset-identity-system-refinement.md +649 -0
  35. package/docs/superpowers/specs/2026-08-29-preset-identity-system-refinement-design.md +212 -0
  36. package/manifest.json +160 -2
  37. package/package.json +63 -6
  38. package/styles/art-deco.css +683 -0
  39. package/styles/bauhaus.css +237 -3
  40. package/styles/bento.css +266 -7
  41. package/styles/brutalism.css +235 -3
  42. package/styles/clay.css +692 -0
  43. package/styles/components.css +608 -14
  44. package/styles/content-overflow.css +423 -4
  45. package/styles/cyberpunk.css +234 -3
  46. package/styles/data-terminal.css +691 -0
  47. package/styles/editorial-luxe.css +687 -0
  48. package/styles/industrial-utility.css +690 -0
  49. package/styles/interactive-surface-bridge.css +11 -5
  50. package/styles/interactive-surface-theme.css +11 -3
  51. package/styles/maximalist.css +238 -4
  52. package/styles/minimal-saas.css +234 -3
  53. package/styles/native-elements.css +64 -12
  54. package/styles/neo-noir.css +690 -0
  55. package/styles/neumorphism.css +234 -3
  56. package/styles/organic-modern.css +683 -0
  57. package/styles/paper-editorial.css +688 -0
  58. package/styles/retro-glass.css +242 -3
  59. package/styles/retrofuturism.css +233 -3
  60. package/styles/tactile.css +235 -3
  61. package/styles/technical-blueprint.css +686 -0
  62. package/styles/theme-colors.css +796 -5
  63. package/styles/y2k.css +237 -3
package/docs/ECOSYSTEM.md CHANGED
@@ -14,11 +14,11 @@ The pinned Interactive Surface and Layout commits are published merge objects. B
14
14
 
15
15
  | Library | Current aligned version | Owns |
16
16
  |---|---:|---|
17
- | `ui-style-kit-css@2.2.0` | current package version | visual identity, color themes, UI paint, native HTML styling, content wrapping, and bridge tokens |
18
- | `interactive-surface-css@1.6.0` | published release | interaction-state primitives, surface behavior, state layers, and input affordances |
19
- | `layout-style-css@3.0.1` | published release | structural wrappers, grids, sections, app shells, and layout recipes |
17
+ | `ui-style-kit-css@2.3.0` | current release target | visual identity, color themes, UI paint, native HTML styling, content wrapping, and bridge tokens |
18
+ | `interactive-surface-css@1.6.0` | compatible state release | interaction-state primitives, surface behavior, state layers, and input affordances |
19
+ | `layout-style-css@3.1.0` | compatible structural release | structural wrappers, grids, sections, app shells, and layout recipes |
20
20
 
21
- The current combination is `ui-style-kit-css@2.2.0`, `interactive-surface-css@1.6.0`, and `layout-style-css@3.0.1`. UI Style Kit `2.2.0` is the current package version, and the release pipeline treats it as the active candidate only while that exact npm version is absent. Interactive Surface `1.6.0` and Layout Style `3.0.1` are published releases. The validated minimum remains `ui-style-kit-css@2.1.0`, `interactive-surface-css@1.5.0`, and `layout-style-css@3.0.0`.
21
+ The current combination is `ui-style-kit-css@2.3.0`, `interactive-surface-css@1.6.0`, and `layout-style-css@3.1.0`. UI Style Kit `2.3.0` is the current release target; the companion versions are published releases. Layout Style `3.1.0` is the compatible structural release. The validated minimum remains `ui-style-kit-css@2.1.0`, `interactive-surface-css@1.5.0`, and `layout-style-css@3.0.0`.
22
22
 
23
23
  ## Layout-to-visual pairing matrix
24
24
 
@@ -88,3 +88,7 @@ import "layout-style-css";
88
88
  - Layout Style CSS owns structural wrappers, layout recipes, grids, app shells, and section composition.
89
89
 
90
90
  The canonical theme bridge does not make Interactive Surface a dependency of UI Style Kit. It only maps shared `--usk-*` roles to `--interactive-surface-*` tokens and provides paint; `state-core.css` continues to own interaction mechanics. The older `interactive-surface-bridge` and `with-bridge` exports are deprecated compatibility paths whose stateful behavior remains unchanged.
91
+
92
+ ## Canonical ownership order
93
+
94
+ Load UI visual CSS first, UI interaction-theme paint second, Interactive Surface state core third, Layout CSS fourth, and application overrides last. Layout `3.1.0` no longer exports `integrations/ui-style-kit.css` or `legacy.css`; use its root or supported `foundation.css`, wrapper, primitive, recipe, utility, and personality entrypoints.
@@ -1,5 +1,11 @@
1
1
  # Publishing Guide
2
2
 
3
+ ## 2.3.0 release workflow
4
+
5
+ Prepare `ui-style-kit-css@2.3.0` on its release branch, open a pull request against `main`, and merge only after the complete gate is green. The aligned companion set is `layout-style-css@3.1.0` and `interactive-surface-css@1.6.0`.
6
+
7
+ Do not push `v2.3.0` before the reviewed release commit is on `main`. A pushed version tag runs Release Version Alignment, which validates the tag/package/changelog contract and creates the GitHub Release; publishing that release triggers the protected npm workflow.
8
+
3
9
  ## Dry run
4
10
 
5
11
  ```bash
@@ -8,21 +14,21 @@ npm run release:verify
8
14
 
9
15
  `npm run release:verify` is the non-publishing release gate. It runs `npm run check`, `npm run test:e2e`, `npm run test:axe`, `npm run test:visual`, `npm run test:matrix`, the explicit UI-candidate release preflight, `npm audit --audit-level=moderate`, and `npm run pack:dry-run`.
10
16
 
11
- `npm run release:preflight` validates the shared manifests and compatibility contract, queries npm for every exact minimum/current version, resolves every export from the candidate tarball, checks maintained documentation against installed packages, and reuses the current/minimum clean-install browser matrix. Normal UI preflight remains strict and queries `ui-style-kit-css@2.2.0` alongside every other documented exact version. The release workflows pass `--candidate-package ui-style-kit-css`, which excludes only that exact current version while it is absent from npm and still requires every published minimum and companion version. The gate performs no publish, tag, release, or deployment mutation and is therefore safe to execute on pull requests.
17
+ `npm run release:preflight` validates the shared manifests and compatibility contract, queries npm for every exact minimum/current version, resolves every export from the candidate tarball, checks maintained documentation against installed packages, and reuses the current/minimum clean-install browser matrix. Normal UI preflight remains strict and queries `ui-style-kit-css@2.3.0` alongside every other documented exact version. The release workflows pass `--candidate-package ui-style-kit-css`, which excludes only that exact current version while it is absent from npm and still requires every published minimum and companion version. The gate performs no publish, tag, release, or deployment mutation and is therefore safe to execute on pull requests.
12
18
 
13
- `npm run check` rebuilds dist CSS, runs stylelint, executes package, class API, shared theme-color, and vendor-prefix unit checks, validates core text/link contrast pairs and filled component `on-*` contrast pairs, and confirms package metadata. Browser gates cover regular demo flows, representative Axe scans, curated visual smoke checks, and the sharded 990-combination matrix. `npm run check:ecosystem:packs` verifies standalone, pairwise, and all-three packed package compatibility for the canonical visual/theme/state/layout imports and the deprecated bridge imports in both supported matrices. `npm run pack:dry-run` shows the exact files that would publish.
19
+ `npm run check` rebuilds dist CSS, runs stylelint, executes package and API contracts, validates all theme/mode contrast pairs, enforces the Browserslist compatibility contract through `check:compat`, verifies CSS ownership, and confirms package metadata. Browser gates cover regular demo flows, representative Axe scans, curated visual checks, and the sharded 3,600-combination matrix. `npm run check:ecosystem:packs` verifies standalone, pairwise, and all-three packed package compatibility for canonical visual/theme/state/layout imports and deprecated bridge imports in both supported matrices. `npm run pack:dry-run` shows the exact files that would publish.
14
20
 
15
21
  `npm run check:ecosystem:current` packs this repository and the sibling `../Layout-Style-CSS` and `../Interactive-Surface-CSS` checkouts. It extracts imports from the explicitly maintained current documentation in all three repositories and resolves every documented specifier from the installed tarballs. Deprecated UI bridge guides are validated as a separate supported-compatibility class; changelogs and Layout migration guides are reviewed historical material rather than current setup. Use `-- --ui-spec <specifier>`, `-- --layout-repo <path>`, `-- --layout-spec <specifier>`, `-- --interactive-spec <specifier>`, `-- --interactive-repo <path>`, `-- --layout-docs-repo <path>`, or `-- --interactive-docs-repo <path>` when validating different package or documentation sources.
16
22
 
17
23
  `npm run check:ecosystem:minimum` downloads and repacks the declared minimum published runtime versions: `ui-style-kit-css@2.1.0`, `interactive-surface-css@1.5.0`, and `layout-style-css@3.0.0`. Those tarballs predate the additive shared-manifest policy introduced on the coordinated branches, so the minimum matrix validates their exact installed versions and published CSS entry points; current packed heads retain the stricter manifest-schema and current-documentation checks. `npm run check:ecosystem:packs` runs current first and minimum second.
18
24
 
19
- The current matrix checks `ui-style-kit-css@2.2.0` as the active candidate only while its exact npm version is absent, `interactive-surface-css@1.6.0` as a published release, and `layout-style-css@3.0.1` as a published release. UI Style Kit `2.2.0` remains the current package version. The minimum published matrix remains `ui-style-kit-css@2.1.0`, `interactive-surface-css@1.5.0`, and `layout-style-css@3.0.0`.
25
+ The current matrix checks `ui-style-kit-css@2.3.0` as the active candidate only while its exact npm version is absent, `interactive-surface-css@1.6.0` as a published release, and `layout-style-css@3.1.0` as a published release. The minimum published matrix remains `ui-style-kit-css@2.1.0`, `interactive-surface-css@1.5.0`, and `layout-style-css@3.0.0`.
20
26
 
21
27
  Both matrices install fresh tarball consumers for UI only, Interaction only, Layout only, every pair, and all three. Chromium then checks selected theme paint, native and prefixed components, interaction focus/disabled/loading/selected/persistent states, Layout wrappers/primitives/recipes/personalities, console cleanliness, and an empty external-request log. Three text-free baselines under `tests/snapshots/clean-install/` cover the highest-risk integrated combinations.
22
28
 
23
29
  Snapshot verification decodes PNG pixels, requires exact dimensions, ignores pixelmatch-classified antialias noise, uses a `0.1` color threshold, and permits at most `0.25%` differing pixels. The committed fixtures render at 720-721 by 261 pixels and therefore allow 469-470 changed pixels while rejecting the tested 42% meaningful change. A mismatch retains both `SCENARIO-actual.png` and `SCENARIO-diff.png` in the reported safe temporary directory. CI only validates committed baselines and never passes the generation flag. To intentionally refresh them locally, run the current checker with `--update-snapshots`, inspect all three images, and rerun without that flag.
24
30
 
25
- The PR integration and npm-publish workflows read the companion repository and immutable revision pins from `ecosystem-compatibility.json`, then pack those coordinated reviewed artifacts. Advance those pins whenever a later release changes a companion contract. The current values pin the published Interactive Surface CSS merge at `b50a60d8ffd804d8227b1a16903c394556b88511` and the published Layout Style CSS merge at `44c34693554879790c54a6205b37160ff63a1747`.
31
+ The PR integration and npm-publish workflows read the companion repository and immutable revision pins from `ecosystem-compatibility.json`, then pack those coordinated reviewed artifacts. Advance those pins whenever a later release changes a companion contract. The current values pin the published Interactive Surface CSS merge at `b50a60d8ffd804d8227b1a16903c394556b88511` and the published Layout Style CSS merge at `afcb1fdf70d4635e35739e621ee1598400fed103`.
26
32
 
27
33
  Use this exact bootstrap and merge sequence:
28
34
 
@@ -33,15 +39,13 @@ Use this exact bootstrap and merge sequence:
33
39
 
34
40
  The workflows enforce immutable remote-object reachability and do not fall back to mutable branches or registry packages. The stable bootstrap ref lets companion workflows load the reviewed preflight implementation before the final UI commit references their heads.
35
41
 
36
- `npm run build` uses exactly pinned CSS Tree parsing and Lightning CSS formatting/minification. Generated minified bundles retain the release banner while preserving grammar-sensitive selector and `calc()` whitespace.
42
+ `npm run build` synchronizes manifest-driven component and overflow inventories and uses exactly pinned CSS Tree parsing and Lightning CSS formatting/minification. Every transform resolves the package Browserslist policy through `browserslistToTargets`. Generated minified bundles retain the release banner while preserving grammar-sensitive selector and `calc()` whitespace.
37
43
 
38
44
  The npm artifact is library-focused: `dist/`, `styles/`, docs, and metadata. Demo pages, favicon source assets, and social preview images remain checked in for GitHub Pages but are excluded from the tarball to keep package installs small.
39
45
 
40
46
  ## Publish
41
47
 
42
- No package, tag, or registry release occurs without explicit approval.
43
-
44
- The completed 2.0.4 correctness hotfix is historical context. Do not create replacement tags or registry releases merely to verify the coordinated compatibility contract.
48
+ No package, tag, or registry release occurs without explicit approval. Release tags must use the `v<package-version>` form and point to the reviewed commit on `main`.
45
49
 
46
50
  Run the coordinated checked-out ecosystem proof from this repository:
47
51
 
@@ -53,7 +57,7 @@ npm run check:ecosystem:packs -- --layout-repo ../Layout-Style-CSS --interactive
53
57
  npm publish
54
58
  ```
55
59
 
56
- `prepublishOnly` runs `npm run release:verify`, so a direct `npm publish` still has the full release gate. For GitHub releases, create or dispatch a release for the matching package tag, such as `v2.2.0`. The release workflows verify that `package.json`, `package-lock.json`, `CHANGELOG.md`, and generated dist banners are aligned before publishing.
60
+ `prepublishOnly` runs `npm run release:verify`, so a direct `npm publish` still has the full release gate. For GitHub releases, push or dispatch the matching package tag, such as `v2.3.0`, only after the release PR is merged. The release workflows verify that `package.json`, `package-lock.json`, `CHANGELOG.md`, generated dist banners, and ecosystem pins are aligned before publishing.
57
61
 
58
62
  ## Versioning
59
63
 
@@ -63,4 +67,4 @@ npm run release:minor
63
67
  npm run release:major
64
68
  ```
65
69
 
66
- Use patch for fixes, minor for new themes/styles, and major for breaking public API changes. The 2.x release line is major because color-scheme authoring moved from per-UI `--<prefix>-*-rgb` blocks to shared `--usk-*-rgb` roles in `styles/theme-colors.css`.
70
+ Use patch for compatible fixes, minor for new themes, presets, component capabilities, or browser-support contracts, and major for incompatible public API changes. The nine additional presets, ten additional schemes, universal component vocabulary, and compatibility contract make `2.3.0` a minor release.
@@ -2,22 +2,62 @@
2
2
 
3
3
  | UI style | Best for |
4
4
  |---|---|
5
- | Minimal SaaS | Dashboards, admin tools, SaaS apps, documentation, internal systems |
6
- | Bento UI | Landing pages, portfolio sections, feature pages, product showcases |
7
- | Maximalist / Playful | Creators, entertainment brands, events, bold client sites |
8
- | Bauhaus / Swiss Modern | Agencies, artists, editorial pages, design-forward brands |
9
- | Tactile / Skeuomorphic | Premium sites, distinctive client interfaces, control-panel metaphors |
10
- | Neumorphism | Soft dashboards, experimental UI, visual demos |
11
- | Retrofuturism | Futuristic product pages, portfolios, technology showcases |
12
- | Brutalism | Bold landing pages, anti-template websites, creative brands |
13
- | Cyberpunk | Security, gaming, encryption, developer demos, nightlife/tech branding |
14
- | Y2K | Nostalgic, playful, music/fashion/event sites |
15
- | Retro Glass | Futuristic premium apps, glass dashboards, hero sections |
16
-
17
- All styles share the same 10 color schemes through `styles/theme-colors.css`, so changing `data-theme` affects the active color scheme independently from the selected UI treatment.
5
+ | Minimal SaaS | Dashboards, admin tools, SaaS apps |
6
+ | Bento UI | Landing pages, feature sections, showcases |
7
+ | Maximalist / Playful | Creators, entertainment, bold client sites |
8
+ | Bauhaus / Swiss Modern | Agencies, editorial layouts, design-forward brands |
9
+ | Skeuomorphic / Tactile | Premium tactile interfaces, control panels |
10
+ | Neumorphism | Soft dashboards, experimental UI |
11
+ | Retrofuturism | Futuristic portfolios and product pages |
12
+ | Brutalism | Bold creative websites |
13
+ | Cyberpunk | Security, gaming, encryption, tech demos |
14
+ | Y2K | Nostalgic, playful, fashion/music/event sites |
15
+ | Retro Glass | Futuristic glass dashboards and hero sections |
16
+ | Editorial Luxe | Luxury brands, architecture, hospitality, premium editorial sites |
17
+ | Organic Modern | Wellness, sustainability, hospitality, natural product brands |
18
+ | Industrial Utility | Operations software, manufacturing, logistics, fleet and equipment systems |
19
+ | Technical Blueprint | Engineering, architecture, technical documentation, scientific tools |
20
+ | Art Deco | Luxury, hospitality, heritage brands, events and distinctive showcases |
21
+ | Clay | Friendly SaaS, collaborative tools, education and approachable product sites |
22
+ | Data Terminal | Operator consoles, telemetry, infrastructure, monitoring and developer tools |
23
+ | Paper Editorial | News, magazines, journals, cultural sites and story-led publishing |
24
+ | Neo-Noir | Cinematic portfolios, nightlife, premium creative studios and dramatic product sites |
25
+
26
+ All styles share the same 20 color schemes through `styles/theme-colors.css`, so changing `data-theme` affects the active color scheme independently from the selected UI treatment.
18
27
 
19
28
  Use `data-mode="contrast"` for high-contrast variants and pair it with semantic HTML for best accessibility outcomes.
20
29
 
30
+ ## Preset identity and component roles
31
+
32
+ UI presets own geometry, material, spacing, depth, and typographic character. Color schemes own semantic color roles. A preset should therefore remain recognizable when its `data-theme` changes, while every component continues to consume the active theme tokens instead of fixed artwork colors.
33
+
34
+ | UI style | Repeated component identity |
35
+ |---|---|
36
+ | Minimal SaaS | Restrained single-corner folds and low-elevation outlines |
37
+ | Bento UI | Stepped tile edges and compact block composition |
38
+ | Maximalist / Playful | Skewed silhouettes, layered fills and pronounced shadows |
39
+ | Bauhaus / Swiss Modern | Asymmetric primary geometry and hard-edged composition |
40
+ | Skeuomorphic / Tactile | Chamfered physical keys, bevels and pressed depth |
41
+ | Neumorphism | Softly clipped surfaces with raised and inset shadows |
42
+ | Retrofuturism | Elongated console geometry and metallic rims |
43
+ | Brutalism | Blunt cuts, thick borders and offset shadows |
44
+ | Cyberpunk | Multi-notch technical polygons and luminous edges |
45
+ | Y2K | Glossy capsule geometry and playful depth |
46
+ | Retro Glass | Frosted angular tabs with inner highlights |
47
+ | Editorial Luxe | Slim bookplates, hairlines and restrained framing |
48
+ | Organic Modern | Asymmetric pebble and leaf contours with soft depth |
49
+ | Industrial Utility | Octagonal hazard-control geometry and dense framing |
50
+ | Technical Blueprint | Drafting-corner outlines and technical markings |
51
+ | Art Deco | Symmetric chevrons and double-rule framing |
52
+ | Clay | Inflated clipped pills and chunky soft shadows |
53
+ | Data Terminal | Terminal brackets and luminous operator outlines |
54
+ | Paper Editorial | Ticket or tab notches with inked offset edges |
55
+ | Neo-Noir | Cinematic slants and high-contrast edge lighting |
56
+
57
+ For filled service actions, compose `<prefix>-button`, `<prefix>-button-primary`, and `<prefix>-button-cut`. For framed callout actions, compose `<prefix>-button` and `<prefix>-button-outline-heavy`. These modifiers are independent; the library does not expose a `button-cta` class. Carry the same preset identity into service cards, media scrims, feature strips, callout bars, native actions, and dialogs rather than treating each specimen as isolated artwork.
58
+
59
+ Preset-specific grids must size from their own container. Bento feature tiles, for example, use intrinsic columns and only introduce a feature span when their container can support it, preventing metric labels from collapsing into vertical text.
60
+
21
61
  ## Visual regression baseline
22
62
 
23
63
  The repository includes optional Playwright visual smoke checks:
package/docs/TOKENS.md CHANGED
@@ -63,6 +63,15 @@ UI Style Kit entrypoints publish all 12 values. Standalone consumer packages mus
63
63
  | Cyberpunk | `cyber` |
64
64
  | Y2K | `y2k` |
65
65
  | Retro Glass | `rg` |
66
+ | Editorial Luxe | `luxe` |
67
+ | Organic Modern | `organic` |
68
+ | Industrial Utility | `utility` |
69
+ | Technical Blueprint | `blueprint` |
70
+ | Art Deco | `deco` |
71
+ | Clay | `clay` |
72
+ | Data Terminal | `terminal` |
73
+ | Paper Editorial | `paper` |
74
+ | Neo-Noir | `noir` |
66
75
 
67
76
  ## Stable functional tokens
68
77
 
@@ -243,7 +252,7 @@ Loading indicators use theme variables by default:
243
252
  --<prefix>-spinner-accent
244
253
  ```
245
254
 
246
- The class utilities are `<prefix>-spinner`, `<prefix>-loading-spinner`, `<prefix>-spinner-sm`, and `<prefix>-spinner-lg`. Native buttons and prefixed buttons also render an inline spinner when `aria-busy="true"` is present.
255
+ The class utilities are `<prefix>-spinner`, `<prefix>-loading-spinner`, `<prefix>-spinner-sm`, and `<prefix>-spinner-lg`. Each preset owns its loader silhouette, cadence, and depth while consuming only these active theme roles. Native buttons and prefixed buttons render the matching preset-owned indicator when `aria-busy="true"` is present.
247
256
 
248
257
  ## Interactive Surface bridge tokens
249
258