ui-style-kit-css 2.3.0 → 2.4.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 (120) hide show
  1. package/CHANGELOG.md +40 -2
  2. package/CONTRIBUTING.md +8 -1
  3. package/README.md +91 -42
  4. package/STYLE-MAP.md +9 -5
  5. package/dist/assets/bauhaus-barlow-OFL.txt +93 -0
  6. package/dist/assets/bauhaus-barlow-semibold.ttf +0 -0
  7. package/dist/assets/bauhaus-barlow.ttf +0 -0
  8. package/dist/assets/bauhaus-condensed-OFL.txt +93 -0
  9. package/dist/assets/bauhaus-condensed-bold.ttf +0 -0
  10. package/dist/assets/bauhaus-condensed-extrabold.ttf +0 -0
  11. package/dist/assets/bento-manrope-OFL.txt +93 -0
  12. package/dist/assets/bento-manrope.ttf +0 -0
  13. package/dist/assets/clay-grain.png +0 -0
  14. package/dist/assets/clay-rounded-OFL.txt +93 -0
  15. package/dist/assets/clay-rounded.ttf +0 -0
  16. package/dist/assets/neo-noir-corner-dark.png +0 -0
  17. package/dist/assets/neo-noir-corner-light.png +0 -0
  18. package/dist/assets/neo-noir-texture-dark.png +0 -0
  19. package/dist/assets/neo-noir-texture-light.png +0 -0
  20. package/dist/assets/organic-display-OFL.txt +93 -0
  21. package/dist/assets/organic-display.ttf +0 -0
  22. package/dist/assets/organic-icons-LICENSE.txt +21 -0
  23. package/dist/assets/organic-sans-OFL.txt +93 -0
  24. package/dist/assets/organic-sans.ttf +0 -0
  25. package/dist/ui-style-kit.css +47483 -15117
  26. package/dist/ui-style-kit.min.css +2 -2
  27. package/dist/ui-style-kit.visual.css +47344 -15106
  28. package/dist/ui-style-kit.visual.min.css +2 -2
  29. package/dist/ui-style-kit.with-bridge.css +47510 -15134
  30. package/dist/ui-style-kit.with-bridge.min.css +2 -2
  31. package/dist/visual/art-deco.css +2821 -279
  32. package/dist/visual/bauhaus.css +2 -4692
  33. package/dist/visual/bento.css +2 -4708
  34. package/dist/visual/brutalism.css +812 -224
  35. package/dist/visual/clay.css +2 -4786
  36. package/dist/visual/cyberpunk.css +2238 -267
  37. package/dist/visual/data-terminal.css +1671 -293
  38. package/dist/visual/editorial-luxe.css +1889 -243
  39. package/dist/visual/industrial-utility.css +2717 -255
  40. package/dist/visual/maximalist.css +1768 -447
  41. package/dist/visual/minimal-saas.css +1076 -382
  42. package/dist/visual/neo-noir.css +2 -4787
  43. package/dist/visual/neumorphism.css +1266 -388
  44. package/dist/visual/organic-modern.css +2 -4764
  45. package/dist/visual/paper-editorial.css +2551 -276
  46. package/dist/visual/retro-glass.css +2235 -319
  47. package/dist/visual/retrofuturism.css +1460 -382
  48. package/dist/visual/tactile.css +2251 -443
  49. package/dist/visual/technical-blueprint.css +2207 -285
  50. package/dist/visual/y2k.css +1481 -294
  51. package/docs/ART-DECO.md +80 -0
  52. package/docs/BAUHAUS.md +152 -0
  53. package/docs/BENTO.md +121 -0
  54. package/docs/CLAY.md +127 -0
  55. package/docs/DEMO-SHOWCASE.md +65 -0
  56. package/docs/ECOSYSTEM.md +4 -4
  57. package/docs/EDITORIAL-LUX.md +75 -0
  58. package/docs/INDUSTRIAL-UTILITY.md +131 -0
  59. package/docs/NATIVE-ELEMENTS.md +23 -17
  60. package/docs/NEO-NOIR.md +94 -0
  61. package/docs/ORGANIC-MODERN.md +91 -0
  62. package/docs/PAPER-EDITORIAL.md +63 -0
  63. package/docs/PUBLISHING.md +31 -10
  64. package/docs/RELEASE-2.4.0.md +88 -0
  65. package/docs/RETRO-GLASS.md +105 -0
  66. package/docs/STYLE-GUIDE.md +40 -25
  67. package/docs/TACTILE.md +38 -0
  68. package/docs/TECHNICAL-BLUEPRINT.md +60 -0
  69. package/docs/TOKENS.md +80 -3
  70. package/docs/superpowers/plans/2026-09-04-library-wide-theme-fallback-and-fidelity.md +331 -0
  71. package/docs/superpowers/specs/2026-09-04-library-wide-theme-fallback-and-fidelity-design.md +113 -0
  72. package/manifest.json +618 -27
  73. package/package.json +18 -10
  74. package/styles/art-deco.css +1397 -12
  75. package/styles/assets/bauhaus-barlow-OFL.txt +93 -0
  76. package/styles/assets/bauhaus-barlow-semibold.ttf +0 -0
  77. package/styles/assets/bauhaus-barlow.ttf +0 -0
  78. package/styles/assets/bauhaus-condensed-OFL.txt +93 -0
  79. package/styles/assets/bauhaus-condensed-bold.ttf +0 -0
  80. package/styles/assets/bauhaus-condensed-extrabold.ttf +0 -0
  81. package/styles/assets/bento-manrope-OFL.txt +93 -0
  82. package/styles/assets/bento-manrope.ttf +0 -0
  83. package/styles/assets/clay-grain.png +0 -0
  84. package/styles/assets/clay-rounded-OFL.txt +93 -0
  85. package/styles/assets/clay-rounded.ttf +0 -0
  86. package/styles/assets/neo-noir-corner-dark.png +0 -0
  87. package/styles/assets/neo-noir-corner-light.png +0 -0
  88. package/styles/assets/neo-noir-texture-dark.png +0 -0
  89. package/styles/assets/neo-noir-texture-light.png +0 -0
  90. package/styles/assets/organic-display-OFL.txt +93 -0
  91. package/styles/assets/organic-display.ttf +0 -0
  92. package/styles/assets/organic-icons-LICENSE.txt +21 -0
  93. package/styles/assets/organic-sans-OFL.txt +93 -0
  94. package/styles/assets/organic-sans.ttf +0 -0
  95. package/styles/bauhaus.css +878 -107
  96. package/styles/bento.css +1176 -108
  97. package/styles/brutalism.css +262 -11
  98. package/styles/clay.css +1303 -68
  99. package/styles/compat-layout.css +1 -2
  100. package/styles/components.css +105 -34
  101. package/styles/content-overflow.css +11 -5
  102. package/styles/cyberpunk.css +1852 -47
  103. package/styles/data-terminal.css +1116 -12
  104. package/styles/editorial-luxe.css +576 -12
  105. package/styles/industrial-utility.css +1771 -12
  106. package/styles/interactive-surface-bridge.css +30 -20
  107. package/styles/interactive-surface-theme.css +21 -11
  108. package/styles/maximalist.css +1214 -132
  109. package/styles/minimal-saas.css +459 -88
  110. package/styles/native-elements.css +347 -171
  111. package/styles/neo-noir.css +656 -14
  112. package/styles/neumorphism.css +1018 -146
  113. package/styles/organic-modern.css +688 -18
  114. package/styles/paper-editorial.css +1048 -12
  115. package/styles/retro-glass.css +635 -46
  116. package/styles/retrofuturism.css +944 -56
  117. package/styles/tactile.css +1810 -108
  118. package/styles/technical-blueprint.css +668 -17
  119. package/styles/theme-colors.css +2 -2
  120. package/styles/y2k.css +950 -42
@@ -0,0 +1,88 @@
1
+ # v2.4.0 release preparation
2
+
3
+ Status: local release candidate; not published by this task.
4
+
5
+ ## Compatibility contract
6
+
7
+ - Package, lockfile, and manifest remain version `2.4.0`.
8
+ - All 20 presets, 20 shared themes, three modes, 29 semantic selectors, and v2 import paths remain supported.
9
+ - `data-ui` and `data-mode` are required; omit `data-theme` for a native palette.
10
+ - Named themes retain shared `--usk-*` color ownership. Native demo edits target actual preset RGB variables, including material-specific colors.
11
+ - The typed `--ui-color-bg` resolves through `--usk-native-bg` to the active preset background.
12
+ - Existing companion compatibility pins remain unchanged; this task does not upgrade sibling libraries.
13
+
14
+ ## Prepared changes
15
+
16
+ The accumulated candidate includes reference-driven preset refinements and native
17
+ control coverage. This audit adds shared trust-seal text inheritance, the native
18
+ background handshake fix, material-aware palette editing, validated demo deep
19
+ links, and Organic Modern native-light contrast corrections. Recent Maximalist and
20
+ Tactile annotation corrections remain included. Generated documentation and demo
21
+ entrypoints now use the same bounded file-lock retries as distribution CSS.
22
+ The manifest now inventories existing Bento, Bauhaus, Clay, and Tactile workspace
23
+ classes that were absent from capability metadata. Organic's duplicate `field`
24
+ entry was removed from preset extras because it remains a universal capability;
25
+ authored component behavior is unchanged by these metadata corrections.
26
+
27
+ The default demo presents one unified kit with a style-specific gallery. Industrial
28
+ Utility's instruments and local alarm flow remain visible. Original complete boards
29
+ are available through `?view=reference`, not duplicated above the public showcase.
30
+
31
+ README, token/native/style guides, changelog, contributor/publishing instructions,
32
+ and tracked wiki sources describe the same native/theme model. Focused CSS bundle
33
+ sizes and demo asset hashes are regenerated from actual build output.
34
+
35
+ ## Verification boundary
36
+
37
+ Focused regression checks are run per changed behavior. Final local checks cover
38
+ build output, lint, syntax, documented imports, semantic and package contracts,
39
+ contrast, browser-free compatibility, and ownership. Record actual results below;
40
+ do not infer current results from old snapshots or prior design-QA reports.
41
+
42
+ Browser navigation was blocked by an admin-policy verification error in the Codex
43
+ browser path. No alternate browser or file-URL workaround was used. Rendered
44
+ desktop/mobile comparisons, browser interactions, Axe, the 3,600-case engine
45
+ matrix, and packed-browser ecosystem verification remain unverified in this audit.
46
+
47
+ ### Final local results
48
+
49
+ - Build: passed; default, visual, all 20 focused, and bridge bundles regenerated, together with manifest snapshots, README measurements, and asset hashes.
50
+ - CSS lint: passed after the final source and tooling changes.
51
+ - Contrast: passed all 1,200 named-theme combinations and 60 native fallback palettes. This is token-pair arithmetic, not rendered accessibility certification.
52
+ - CSS compatibility: passed 26 generated entrypoints against 60 resolved browser targets; this is a parser/policy check, not execution in those browsers.
53
+ - CSS ownership: passed 35,799 declarations with zero reviewed exceptions.
54
+ - Package integrity: passed; exports, tracked documentation links, wiki routes, release-version surfaces, semantic producer contracts, measured bundle sizes, and demo asset hashes have focused checks.
55
+ - Focused regressions: passed native-material inventory/edit/export/reset isolation, None/null selection, deep links, seal foreground inheritance, all-preset background mapping, Organic contrast, and generated-file retry/error handling. Checks were run individually; no full unit or CI suite was run.
56
+ - Dependency audit: `npm audit --audit-level=moderate` passed with zero reported vulnerabilities after the targeted `fast-uri` patch below.
57
+ - Packaging dry run: `npm pack --dry-run --ignore-scripts --json` passed with 125 files (approximately 12.6 MiB packed / 31.4 MiB unpacked). The release/demo/Tactile guides are included; demo, test, wiki, and temporary output directories are excluded. Lifecycle hooks were disabled, so this was inventory validation, not the full prepublish chain.
58
+
59
+ ### Development-tooling security correction
60
+
61
+ The installed chain was `stylelint → table → ajv → fast-uri@3.1.5`. AJV uses the
62
+ URI resolver for schema references; no URI fetch path or runtime JavaScript
63
+ dependency was established in this CSS package. The confirmed finding was the
64
+ vulnerable installed tooling and failed audit gate, not a demonstrated application
65
+ SSRF endpoint.
66
+
67
+ The security-fix checklist kept this change to the existing override, lockfile,
68
+ and focused regression coverage: `fast-uri@3.1.6`, within AJV's supported v3 range.
69
+ The upstream patch addresses [URI canonicalization advisories](https://github.com/fastify/fast-uri/releases/tag/v3.1.6).
70
+ The malformed-IPv6 regression failed before the update and passed afterward;
71
+ encoded schemes, nested host escapes, and scheme-relative IDN normalization also
72
+ passed. Ordinary URI resolution, AJV schema references, the exact override
73
+ contract, and CSS lint passed. No network requests were made by these URI fixtures.
74
+
75
+ Only one installed package changed. Other overrides, direct dependencies, public
76
+ CSS imports, and consumer APIs were preserved. Browser and packed-consumer proof
77
+ remain outside this narrow tooling fix and are still pending for the release.
78
+
79
+ ## Publication handoff
80
+
81
+ Do not tag, publish, or merge on the strength of static checks alone. Complete the
82
+ required browser and packed-consumer gates using [Publishing](PUBLISHING.md), review
83
+ the full candidate diff, and obtain the requested release authority. Set the real
84
+ release date in the changelog at that handoff. The tracked `wiki/` sources still
85
+ need a separate hosted-wiki publication step.
86
+
87
+ No commit, push, release tag, GitHub Release, npm publication, or deployment is part
88
+ of this local preparation task.
@@ -0,0 +1,105 @@
1
+ # Retro Glass
2
+
3
+ The `retro-glass` preset implements the retained RetroGlass light and dark element
4
+ boards with rounded glass surfaces, brushed chrome, inset inputs, and glossy actions.
5
+ All components use the `rg-*` API. The shared semantic API remains unchanged.
6
+
7
+ ```html
8
+ <link rel="stylesheet" href="ui-style-kit-css/retro-glass.css">
9
+ <main data-ui="retro-glass" data-mode="dark">
10
+ <section class="rg-panel">
11
+ <h2 class="rg-section-title">Library</h2>
12
+ <label class="rg-field">
13
+ <span class="rg-label">Search documents</span>
14
+ <input class="rg-input" type="search">
15
+ </label>
16
+ <button class="rg-button rg-button-primary">Apply</button>
17
+ </section>
18
+ </main>
19
+ ```
20
+
21
+ ## Themes
22
+
23
+ Omit `data-theme` for the reference palette. Set `data-theme` to any supported
24
+ scheme, such as `arctic-indigo`, to use semantic `--usk-*-rgb` colors. Switch
25
+ `data-mode` between `light`, `dark`, and `contrast` without changing markup.
26
+ Custom semantic tokens continue to override preset fallbacks.
27
+
28
+ The demo's mode pill activates the reference palette and updates the color-theme
29
+ selector. Choosing a shared theme restores that scheme. The token editor supports
30
+ both paths; reference overrides are scoped to the active preset and mode.
31
+
32
+ Default controls follow a 36px rhythm with 6px corners. Panels use 10px corners,
33
+ window chrome uses 14px, and badges, switches, and tracks use pills. Touch input
34
+ expands interactive targets to at least 44px. Application text defaults to 14px;
35
+ the desktop specimen uses compact documentation typography from the reference.
36
+
37
+ Reference accent channels are retained. Muted text and essential borders use
38
+ stronger foregrounds for contrast. Glossy actions have a dedicated foreground
39
+ because their shaded material differs from a flat semantic swatch.
40
+
41
+ ## Component Coverage
42
+
43
+ | Board group | Public classes and states |
44
+ | --- | --- |
45
+ | Action states | `rg-button`, `rg-button-primary`, `rg-button-secondary`, `rg-button-ghost`, `rg-button-danger`, `rg-icon-button`; default, hover, pressed, loading, disabled |
46
+ | Form inputs | `rg-field`, `rg-label`, `rg-input`, `rg-select`, `rg-textarea`, `rg-input-wrap`, `rg-input-icon`, `rg-helper`, `rg-error-text` |
47
+ | Choices and tags | `rg-choice`, `rg-switch`, `rg-switch-track`, `rg-switch-thumb`, `rg-segmented`, `rg-segment`, `rg-chip`, `rg-chip-danger`, `rg-chip-warning` |
48
+ | Select and upload | `rg-dropdown`, `rg-option`, `rg-tags`, `rg-file` |
49
+ | Ranges and progress | `rg-range`, `rg-range-critical`, `rg-progress`, `rg-progress-bar`, `rg-progress-danger`, `rg-meter`, `rg-stepper`, `rg-step` |
50
+ | Feedback | `rg-alert` and success/warning/danger modifiers, `rg-toast`, `rg-spinner`, `rg-skeleton` |
51
+ | Navigation | `rg-breadcrumb`, `rg-tabs`, `rg-tab`, `rg-nav`, `rg-nav-link`, `rg-pagination`, `rg-pagination-page` |
52
+ | Data | `rg-table`, `rg-badge` and semantic modifiers, `rg-avatar`, `rg-avatar-danger`, `rg-avatar-neutral`, `rg-avatar-group` |
53
+ | Overlays and disclosure | `rg-tooltip`, `rg-popover`, `rg-modal`, `rg-modal-actions`, `rg-accordion` |
54
+ | Foundations | `rg-title`, `rg-heading`, `rg-section-title`, `rg-overline`, `rg-token-swatch`, `rg-code`, `rg-list`, `rg-quote`, existing `rg-console` |
55
+
56
+ The library keeps canonical single-hyphen modifiers, translating reference names
57
+ such as `rg-button--primary` to `rg-button-primary`. The template's pagination
58
+ item becomes `rg-pagination-page`; the existing `rg-page` layout shell is preserved.
59
+ Every published preset extra is listed in `manifest.json`.
60
+
61
+ ## State And Interaction Contracts
62
+
63
+ - Use native `disabled`, `aria-busy`, `aria-invalid`, `aria-selected`, and
64
+ `aria-current` attributes. Static `.is-hover`, `.is-focus`, `.is-pressed`,
65
+ `.is-loading`, and `.is-disabled` classes are available for specimens.
66
+ - Associate visible error text with its input using `aria-describedby`.
67
+ - Keep switch inputs focusable. Include the `rg-switch-thumb` inside the track.
68
+ - Set `--rg-value` to a percentage for range fill and meter position. Update it
69
+ alongside the native input value and an accessible `output`.
70
+ - Set `--rg-progress-value` on `rg-progress-bar`. Supply the progressbar name and
71
+ `aria-valuemin`, `aria-valuemax`, and `aria-valuenow` on the track.
72
+ - Use native `dialog.showModal()` for modal behavior and native `details` for
73
+ disclosure. A visual `rg-modal` class alone does not create a focus trap.
74
+ - Set `--rg-token-swatch-color` to the semantic color shown by a token swatch.
75
+ - Standalone, semantic, and native busy indicators share a complete circular
76
+ track with one highlighted quadrant. Busy controls reserve a non-shrinking
77
+ 16px indicator; reduced-motion preferences stop rotation.
78
+ - Disabled choices retain readable labels and use dashed outlines to distinguish
79
+ their state without relying on faded text. Keep the native `disabled` attribute.
80
+ - Anchor buttons retain the same contrast-safe foreground as button elements.
81
+ Marketing seals use opaque chrome with inherited text color.
82
+
83
+ CSS supplies visual states; applications own interaction behavior. The demo adds
84
+ roving keyboard focus for tabs and listbox options, file selection and drop,
85
+ range output, filter chips, pagination, a menu, and a native modal dialog.
86
+ Examples use inert local data and do not upload or delete real documents.
87
+
88
+ ## Preset Isolation
89
+
90
+ The demo renders preset extras only for their owner. All exclusive regions use
91
+ `data-preset-only` and a shared visibility synchronizer. Changing the style removes
92
+ the prior preset's generated markup; presets with no extras show no extras region.
93
+ This rule applies to all presets, including the Cyberpunk and Retro Glass boards.
94
+
95
+ ## Assets
96
+
97
+ The demo vendors Lucide 0.468.0 icons in `demo/assets/lucide`, including the upstream
98
+ license. The build generates `demo/demo-icons.js` from those source files so icons
99
+ work offline through either HTML entry point, including `file:` URLs.
100
+
101
+ The semantic demo settings icon uses a 24px SVG in a stable 44px control across
102
+ presets. Retro Glass feature checks use a heavier SVG stroke inside the medallion.
103
+
104
+ `npm run build` regenerates the default, visual, focused, and bridge bundles,
105
+ containment foundations, demo icon asset, and README bundle-size metadata.
@@ -2,13 +2,13 @@
2
2
 
3
3
  | UI style | Best for |
4
4
  |---|---|
5
- | Minimal SaaS | Dashboards, admin tools, SaaS apps |
6
- | Bento UI | Landing pages, feature sections, showcases |
5
+ | Minimal SaaS | Dense dashboards, admin tools, and focused SaaS workflows |
6
+ | Bento UI | Friendly product surfaces, feature mosaics, and showcase dashboards |
7
7
  | Maximalist / Playful | Creators, entertainment, bold client sites |
8
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 |
9
+ | Skeuomorphic / Tactile | Physical workspace configuration, control panels and instrument-like product UI |
10
+ | Neumorphism | Sculpted same-surface dashboards and quiet configuration workflows |
11
+ | Retrofuturism | Atomic-age dashboards, instrument panels, and configuration workspaces |
12
12
  | Brutalism | Bold creative websites |
13
13
  | Cyberpunk | Security, gaming, encryption, tech demos |
14
14
  | Y2K | Nostalgic, playful, fashion/music/event sites |
@@ -25,6 +25,11 @@
25
25
 
26
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.
27
27
 
28
+ Omit `data-theme` to use the chosen preset's native light, dark, or contrast colors.
29
+ The [demo guide](DEMO-SHOWCASE.md) explains the unified style-specific gallery and
30
+ optional reference boards. Native material colors can be edited in the workbench
31
+ without assigning a shared theme or changing geometry.
32
+
28
33
  Use `data-mode="contrast"` for high-contrast variants and pair it with semantic HTML for best accessibility outcomes.
29
34
 
30
35
  ## Preset identity and component roles
@@ -33,29 +38,39 @@ UI presets own geometry, material, spacing, depth, and typographic character. Co
33
38
 
34
39
  | UI style | Repeated component identity |
35
40
  |---|---|
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 |
41
+ | Minimal SaaS | Flat neutral modules, fine rules, tight radii, compact controls and negligible elevation |
42
+ | Bento UI | Large rounded tiles, theme-tinted mosaic washes, nested highlights, friendly typography and soft elevation |
43
+ | Maximalist / Playful | Punk-collage paper panels, hard ink strokes and loud condensed type |
44
+ | Bauhaus / Swiss Modern | Strict grids, heavy rules, primary geometry, flat construction and condensed uppercase type |
45
+ | Skeuomorphic / Tactile | Paper plates, serif headings, compact uppercase labels, dark instrument navigation, hard keylines, chamfered keycaps, squared lever thumbs and segmented gauges |
46
+ | Neumorphism | Borderless same-surface shells, generous radii, quiet modern type, opposing light/dark extrusion, deeply concave fields and tracks, and visibly pressed actions |
47
+ | Retrofuturism | Rounded enamel shells, nested metallic rims, recessed instrument bays, oval actions, jewel-light feedback, condensed display type, calibrated ranges and segmented progress gauges |
48
+ | Brutalism | Square full-bleed grids, heavy rules, numbered modules, blunt controls and segmented meters |
49
+ | Cyberpunk | Chamfered HUD panels, clipped controls, technical condensed type and signal-colored edges |
50
+ | Y2K | Dense portal panels, 1px bevels, title bars, system typography and segmented indicators |
51
+ | Retro Glass | Brushed application chrome, glossy navigation, beveled controls, glass panes and dark dock treatment |
52
+ | Editorial Luxe | Didone hierarchy, double rules, rigid editorial geometry and restrained couture material |
53
+ | Organic Modern | Warm material surfaces, serif identity type, fine hairlines, asymmetry and leaf-tipped details |
54
+ | Industrial Utility | Metal-framed panels, recessed instruments, mechanical actions, safety gauges and technical type |
55
+ | Technical Blueprint | Drafting grids, technical linework, square measured controls, annotations and calibrated geometry |
56
+ | Art Deco | Stepped symmetry, metallic double keylines, fanburst geometry, elegant display type and jewel controls |
57
+ | Clay | A continuous sculpted slab with soft mineral surfaces, raised rounded controls and carved seams |
58
+ | Data Terminal | A dense 1px command grid with mono typography, bracketed actions and strict semantic signals |
59
+ | Paper Editorial | A physical field-manual sheet with binder details, index tabs, print rules, condensed headings and monospaced data |
60
+ | Neo-Noir | Cinematic slants, trapezoid controls, diagonal cuts, subtle grain and amber, teal and red semantic signaling |
56
61
 
57
62
  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
63
 
64
+ Minimal SaaS and Bento deliberately share semantic roles but not presentation. Minimal SaaS keeps controls near `2.375rem`, uses narrow spacing and flat bordered modules, and reserves theme color for action and state emphasis. Bento uses `2.75rem` controls and `1.5rem` tiles, applies theme-derived primary, accent and secondary washes, and reinforces the mosaic hierarchy with inset highlights and soft shadows. This distinction must remain visible in every theme and mode.
65
+
66
+ Neumorphism and Tactile also share component roles without sharing material. Neumorphism removes visible keylines and sculpts cards and actions outward from one theme-derived surface while fields, tracks, table cells, and pressed states sink inward through paired light and dark shadows. Tactile keeps a denser paper-workspace rhythm: serif headings sit above compact uppercase labels, framed plates use visible rules and shallow chamfers, actions behave like raised keycaps, and dark troughs hold squared thumbs and segmented progress gauges. Theme channels may recolor both systems, but those geometry, typography, elevation, inset-depth, feedback, and table contracts remain stable.
67
+
68
+ Retrofuturism uses a mid-century atomic appliance language rather than cyberpunk scanlines or generic neon glass. Light mode reads as bright enamel with softly recessed instrument wells; dark mode reads as deep enamel with stronger recess depth. Both retain nested metallic keylines, rounded equipment housings, condensed display typography, compact uppercase labels, oval mechanical actions, dial-like range thumbs, and segmented jewel-lamp progress. Theme channels recolor the enamel, instruments, actions, and status lamps without changing that material or geometry contract.
69
+
70
+ Every preset must carry its contract through the same complete role set: buttons, fields, choices, navigation, cards, panels, tables, badges, alerts, tooltips, dialogs, ranges, progress, meters, service cards, feature strips, callouts, loading, disabled, focus and pressed states. The registry and regression suite compare typography, density, geometry, material, feedback and data presentation pairwise; theme changes are expected to alter paint while those structural identity axes remain stable.
71
+
72
+ The registry also exposes executable reference traits for all six identity axes. Each trait identifies an authored selector, property, and required value fragment, so the tests verify real CSS rather than descriptive metadata. Browser identity checks are split by preset, viewport, mode, and pair to support exact reruns without replaying unrelated passing cases.
73
+
59
74
  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
75
 
61
76
  ## Visual regression baseline
@@ -0,0 +1,38 @@
1
+ # Tactile workspace components
2
+
3
+ Use `data-ui="tactile"` and `data-mode="light"`, `dark`, or `contrast` on the
4
+ owning root. Omit `data-theme` for the native material palette; a named theme
5
+ repaints the existing materials through shared `--usk-*-rgb` roles.
6
+
7
+ Import `ui-style-kit-css/tactile.css` for the complete preset or
8
+ `ui-style-kit-css/visual/tactile.css` for the focused visual distribution.
9
+ Existing semantic `.ui-*` components, native controls, and `tactile-*` classes
10
+ remain available without the workspace composition.
11
+
12
+ ## Advanced workspace inventory
13
+
14
+ The authored workspace classes are listed in
15
+ `manifest.classApi.presetExtras.tactile` so consuming tools can discover them.
16
+ They are an optional preset-specific composition, not new universal `.ui-*` aliases.
17
+
18
+ | Area | Classes (with the `tactile-` prefix) |
19
+ | --- | --- |
20
+ | Frame and navigation | `workspace-shell`, `workspace-sidebar`, `workspace-menu`, `workspace-link`, `workspace-icon`, `workspace-sidebar-note` |
21
+ | Identity | `workspace-brand`, `workspace-brand-mark`, `workspace-header`, `workspace-title` |
22
+ | Main settings | `workspace-main`, `workspace-body`, `workspace-settings`, `workspace-row`, `workspace-fields`, `workspace-switches` |
23
+ | Instrument panels | `workspace-security`, `workspace-readiness`, `workspace-gauge`, `workspace-gauge-key`, `workspace-shelf`, `workspace-progress` |
24
+
25
+ Keep real links, labels, inputs, and buttons inside these visual containers.
26
+ Use `aria-current="page"` for an active workspace link. CSS supplies appearance;
27
+ application code owns navigation, settings persistence, and instrument values.
28
+
29
+ ## Material colors and accessibility
30
+
31
+ Native mode exposes preset material RGB channels such as paper and ink in the
32
+ [demo workbench](DEMO-SHOWCASE.md). Native exports target `--tactile-*-rgb`;
33
+ named-theme exports retain `--usk-*-rgb`. The shared background token resolves
34
+ to the final Tactile background instead of requiring an explicit theme.
35
+
36
+ Trust-seal captions inherit their paired foreground, including the dark
37
+ instrument treatment. Recheck contrast after custom palette edits. Passing token
38
+ checks does not replace keyboard, zoom, screen-reader, and rendered contrast QA.
@@ -0,0 +1,60 @@
1
+ # Technical Blueprint
2
+
3
+ The Technical Blueprint preset follows the retained Technical Blueprint element
4
+ boards and design guide: square controls, a 16px construction grid, drafting
5
+ registration marks, calibrated line weights, and restrained semantic ink colors.
6
+ The canonical public prefix is `blueprint-`; source-template `tb-` aliases are
7
+ not exported.
8
+
9
+ ## Theme and Material
10
+
11
+ Set `data-ui="technical-blueprint"` and `data-mode="light"` or `"dark"` on the
12
+ containing element. Existing `--usk-*` semantic tokens feed the `--blueprint-*`
13
+ aliases, so changing `data-theme` changes color without replacing drafting
14
+ geometry. In the demo, **Use reference palette** selects the guide's fallback
15
+ colors instead of a named color theme. Primary action fill and foreground are
16
+ paired separately from annotation ink for readable labels in both modes.
17
+
18
+ ## Component Surface
19
+
20
+ The manifest is the authoritative class inventory. Alongside the shared button,
21
+ input, card, table, alert, badge, tooltip, progress, spinner, and switch families,
22
+ Technical Blueprint exports these preset-only components:
23
+
24
+ - Sheet frame, datum marker, line sample, section title, overline, token swatch.
25
+ - Choice, input wrapper/icon, helper/error text, range, critical range, meter.
26
+ - Dropdown/option, file upload surface, tags, chips and semantic chip variants.
27
+ - Segmented controls, tabs, breadcrumb, pagination and pagination page.
28
+ - Stepper/step, revision progress, toast, skeleton.
29
+ - Avatars and groups, code, quote, list, metric, empty state.
30
+ - Popover, modal/actions, accordion.
31
+
32
+ `blueprint-page` remains the page shell. Pagination items use
33
+ `blueprint-pagination-page` to avoid changing that existing API.
34
+
35
+ ## Demo and Accessibility
36
+
37
+ The demo includes all ten reference groups: actions, forms, choices, selects and
38
+ upload, ranges and progress, alerts and loading, navigation, data display,
39
+ overlays, and foundations. Additional code, quote, metric, and empty-state
40
+ examples live in the preset-specific extras section. Every preset-owned demo
41
+ region is hidden when a different preset is selected.
42
+
43
+ The specimen uses labeled native inputs, named icon buttons, keyboard-operated
44
+ tabs and listboxes, a native dialog, file selection, and live range outputs.
45
+ Sample actions are local demonstrations; they do not upload or delete data.
46
+ CSS alone provides presentation, not dialog/listbox application behavior.
47
+ Controls retain visible focus, disabled-state cues, reduced-motion handling,
48
+ forced-color fallbacks, and 44px touch targets on coarse-pointer devices.
49
+
50
+ Native date/time formatting, file pickers, font rasterization, and responsive
51
+ reflow follow the browser rather than reproducing static illustration pixels.
52
+
53
+ ## Focused Verification
54
+
55
+ - `node --test tests/technical-blueprint-template.test.js`
56
+ - `npx playwright test tests/e2e/technical-blueprint-template.spec.js --project=chromium`
57
+
58
+ The browser checks use the generated bundle, verify all preset-only regions,
59
+ audit both reference modes with axe, and exercise keyboard behavior, token
60
+ overrides, and mobile overflow. Rebuild distribution CSS before browser checks.
package/docs/TOKENS.md CHANGED
@@ -8,13 +8,44 @@ shared scheme channels -> prefixed aliases -> UI rules
8
8
 
9
9
  `styles/theme-colors.css` defines the active scheme and mode once as `--usk-*` RGB channels. Each UI style maps those shared channels to its public prefix, then component rules consume prefixed functional variables. `styles/native-elements.css` owns native HTML fallback selectors and consumes `--usk-native-*` tokens that each preset maps back to its own public variables.
10
10
 
11
+ ## Demo palette workbench
12
+
13
+ The demo starts with **Color Theme: None — style defaults**. This omits `data-theme`
14
+ and displays the selected preset's native light, dark, or contrast palette. All 20
15
+ named color themes remain available; selecting one applies the shared color roles
16
+ without changing component classes or preset geometry.
17
+
18
+ ```js
19
+ document.body.dataset.ui = "minimal-saas";
20
+ document.body.dataset.mode = "light";
21
+ document.body.removeAttribute("data-theme");
22
+ ```
23
+
24
+ The named-theme color table reads 23 shared RGB roles. Native mode reads the preset's
25
+ RGB inventory, including material channels such as paper, ink, brass, and enamel.
26
+ Native exports use `--<prefix>-*-rgb`; named-theme exports use `--usk-*-rgb`.
27
+ Native-palette edits are isolated by preset and mode; named-theme edits are shared
28
+ across presets using the same theme and mode. Native exports are
29
+ scoped to the selected `[data-ui]:not([data-theme])[data-mode]` combination, so they
30
+ do not override a subsequently selected named theme.
31
+
32
+ Reset a single role or use **Reset palette edits** to restore only the active
33
+ palette. Edits are temporary until reload. Invalid values leave the last valid
34
+ preview intact. Custom colors can reduce contrast; validate edited palettes before
35
+ using them in production. The library's CSS expects `data-theme` to be absent, not
36
+ the literal strings `"None"` or `"null"`; the demo normalizes empty/null selections.
37
+
11
38
  ## Shared semantic token handshake
12
39
 
13
- The existing `[data-ui][data-theme][data-mode]` native-token root publishes 12 fully typed `--ui-*` values. UI Style Kit is the primary producer, but the names are intentionally package-neutral so a third-party theme can produce the same contract. Consumer libraries treat these values as optional fallbacks: a package-specific override wins first, then the shared semantic value, then the consumer's legacy token and literal default.
40
+ The background handshake resolves through `--usk-native-bg`, which each preset
41
+ maps to its functional `--<prefix>-bg`. It therefore follows the actual native
42
+ material even when shared `--usk-bg-rgb` channels are absent.
43
+
44
+ The `[data-ui][data-mode]` native-token root publishes 12 fully typed `--ui-*` values whether or not `data-theme` is present. UI Style Kit is the primary producer, but the names are intentionally package-neutral so a third-party theme can produce the same contract. Consumer libraries treat these values as optional fallbacks: a package-specific override wins first, then the shared semantic value, then the consumer's legacy token and literal default.
14
45
 
15
46
  | Shared token | CSS type | UI Style Kit source |
16
47
  |---|---|---|
17
- | `--ui-color-bg` | `<color>` | `rgb(var(--usk-bg-rgb))` |
48
+ | `--ui-color-bg` | `<color>` | `var(--usk-native-bg)` |
18
49
  | `--ui-color-surface` | `<color>` | `var(--usk-native-surface-strong)` |
19
50
  | `--ui-color-text` | `<color>` | `var(--usk-native-text)` |
20
51
  | `--ui-color-muted` | `<color>` | `var(--usk-native-text-muted)` |
@@ -207,9 +238,55 @@ Native HTML coverage is shared in `styles/native-elements.css` to avoid repeatin
207
238
  --usk-native-shadow
208
239
  --usk-native-shadow-md
209
240
  --usk-native-focus-ring
241
+ --usk-native-choice-size
242
+ --usk-native-choice-background
243
+ --usk-native-choice-border
244
+ --usk-native-checkbox-radius
245
+ --usk-native-radio-radius
246
+ --usk-native-choice-shadow
247
+ --usk-native-choice-checked-background
248
+ --usk-native-choice-mark-color
249
+ --usk-native-select-indicator-image
250
+ --usk-native-select-indicator-size
251
+ --usk-native-select-indicator-position
252
+ --usk-native-select-padding-inline-end
253
+ --usk-native-range-track-size
254
+ --usk-native-range-track-background
255
+ --usk-native-range-track-border
256
+ --usk-native-range-track-radius
257
+ --usk-native-range-track-shadow
258
+ --usk-native-range-progress-background
259
+ --usk-native-range-thumb-size
260
+ --usk-native-range-thumb-background
261
+ --usk-native-range-thumb-border
262
+ --usk-native-range-thumb-radius
263
+ --usk-native-range-thumb-shadow
264
+ --usk-native-progress-size
265
+ --usk-native-progress-track-background
266
+ --usk-native-progress-track-border
267
+ --usk-native-progress-track-radius
268
+ --usk-native-progress-track-shadow
269
+ --usk-native-progress-value-background
270
+ --usk-native-progress-value-radius
271
+ --usk-native-progress-value-shadow
272
+ --usk-native-meter-optimum-background
273
+ --usk-native-meter-suboptimum-background
274
+ --usk-native-meter-critical-background
275
+ --usk-native-file-button-background
276
+ --usk-native-file-button-border
277
+ --usk-native-file-button-radius
278
+ --usk-native-file-button-shadow
279
+ --usk-native-color-swatch-border
280
+ --usk-native-color-swatch-radius
281
+ --usk-native-indicator-opacity
282
+ --usk-native-indicator-filter
283
+ --usk-native-scrollbar-size
284
+ --usk-native-scrollbar-track
285
+ --usk-native-scrollbar-thumb
286
+ --usk-native-scrollbar-radius
210
287
  ```
211
288
 
212
- Consumers usually override the prefixed public tokens, not these internal bridge tokens. Use `--usk-native-*` only when intentionally customizing native fallback styling across every UI preset.
289
+ Every preset maps the complete identity set. Consumers usually override the prefixed public tokens, not these internal bridge tokens. Use `--usk-native-*` only when intentionally customizing native fallback styling across every UI preset.
213
290
 
214
291
  Use prefixed RGB aliases for component-local alpha effects:
215
292