layout-style-css 2.1.1 → 3.0.1
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.
- package/CHANGELOG.md +47 -0
- package/README.md +127 -143
- package/dist/core.css +2 -1
- package/dist/foundation.css +194 -0
- package/dist/layout-style-css.css +527 -984
- package/dist/layout-style-css.min.css +1 -1
- package/dist/personalities/bauhaus.css +13 -42
- package/dist/personalities/bento.css +16 -40
- package/dist/personalities/brutalism.css +13 -33
- package/dist/personalities/cyberpunk.css +12 -32
- package/dist/personalities/f-pattern.css +16 -45
- package/dist/personalities/maximalist.css +16 -48
- package/dist/personalities/minimal-saas.css +7 -33
- package/dist/personalities/mondrian.css +12 -40
- package/dist/personalities/neumorphism.css +15 -39
- package/dist/personalities/retro-glass.css +14 -42
- package/dist/personalities/retrofuturism.css +12 -32
- package/dist/personalities/split-screen.css +24 -36
- package/dist/personalities/synthwave.css +13 -41
- package/dist/personalities/tactile.css +15 -32
- package/dist/personalities/y2k.css +13 -33
- package/dist/personalities/z-pattern.css +16 -46
- package/dist/personalities.css +1 -1
- package/dist/primitives.css +27 -63
- package/dist/recipes.css +92 -175
- package/dist/utilities.css +39 -104
- package/dist/wrappers.css +28 -108
- package/docs/wiki/Contributing.md +3 -1
- package/docs/wiki/Demo-And-GitHub-Pages.md +24 -33
- package/docs/wiki/Getting-Started.md +39 -27
- package/docs/wiki/Home.md +21 -27
- package/docs/wiki/Installation-And-CDN.md +47 -42
- package/docs/wiki/Layout-Primitives.md +48 -34
- package/docs/wiki/Layout-Recipes.md +42 -33
- package/docs/wiki/Layout-Styles.md +60 -26
- package/docs/wiki/Migrating-To-3.0.md +205 -0
- package/docs/wiki/Release-And-Publishing.md +36 -51
- package/docs/wiki/Security-And-Support.md +18 -22
- package/docs/wiki/UI-Style-Kit-Compatibility.md +21 -30
- package/docs/wiki/_Sidebar.md +12 -15
- package/manifest.json +98 -0
- package/package.json +33 -28
- package/personalities.json +147 -0
- package/CONTRIBUTING.md +0 -55
- package/SECURITY.md +0 -50
- package/demo/assets/apple-touch-icon.svg +0 -7
- package/demo/assets/favicon.svg +0 -7
- package/demo/assets/social-card.png +0 -0
- package/demo/browserconfig.xml +0 -9
- package/demo/demo.css +0 -523
- package/demo/demo.js +0 -605
- package/demo/index.html +0 -325
- package/demo/robots.txt +0 -4
- package/demo/site.webmanifest +0 -23
- package/demo/sitemap.xml +0 -9
- package/dist/integrations/ui-style-kit.css +0 -175
- package/dist/legacy.css +0 -822
- package/styles/core.css +0 -6
- package/styles/integrations/ui-style-kit.css +0 -175
- package/styles/legacy.css +0 -173
- package/styles/personalities/bauhaus.css +0 -49
- package/styles/personalities/bento.css +0 -46
- package/styles/personalities/brutalism.css +0 -39
- package/styles/personalities/cyberpunk.css +0 -39
- package/styles/personalities/f-pattern.css +0 -51
- package/styles/personalities/maximalist.css +0 -54
- package/styles/personalities/minimal-saas.css +0 -39
- package/styles/personalities/mondrian.css +0 -47
- package/styles/personalities/neumorphism.css +0 -46
- package/styles/personalities/retro-glass.css +0 -47
- package/styles/personalities/retrofuturism.css +0 -39
- package/styles/personalities/split-screen.css +0 -41
- package/styles/personalities/synthwave.css +0 -48
- package/styles/personalities/tactile.css +0 -39
- package/styles/personalities/y2k.css +0 -39
- package/styles/personalities/z-pattern.css +0 -52
- package/styles/personalities.css +0 -18
- package/styles/primitives.css +0 -219
- package/styles/recipes.css +0 -278
- package/styles/utilities.css +0 -162
- package/styles/wrappers.css +0 -174
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,53 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `layout-style-css` are documented here. This project follows semantic versioning.
|
|
4
4
|
|
|
5
|
+
## [3.0.1] - 2026-08-09
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Corrected the GitHub Pages homepage used by npm, kept readable package defaults alongside explicit minified CDN metadata, and included the maintained packaged documentation.
|
|
10
|
+
- Synchronized the package, lockfile, public manifest, demo metadata, Pages sitemap, release guidance, and current ecosystem contract while preserving the complete 13-export API and existing CSS behavior.
|
|
11
|
+
|
|
12
|
+
### Security
|
|
13
|
+
|
|
14
|
+
- Retained the audited dependency overrides and secure release tooling used by the protected publication workflow without adding runtime or peer dependencies.
|
|
15
|
+
|
|
16
|
+
### Tests
|
|
17
|
+
|
|
18
|
+
- Added version-sensitive package, manifest, layout, documentation, demo, Pages, release, packed-export, clean-install, and ecosystem checks for the patch candidate.
|
|
19
|
+
|
|
20
|
+
## [3.0.0] - 2026-07-29
|
|
21
|
+
|
|
22
|
+
### Breaking
|
|
23
|
+
|
|
24
|
+
- Rebuilt the package as a clean-break intrinsic responsive system with attribute-only recipes and one shared container-query engine.
|
|
25
|
+
- Removed `legacy.css`, the deprecated UI Style Kit structural bridge, v1/v2 aliases, recipe class aliases, extensionless export aliases, responsive/order utility families, and the scrollbar-unsafe `.ly-bleed` helper.
|
|
26
|
+
- Reduced the npm tarball to the public generated CSS modules and personality profiles; package metadata, README, and license remain npm-standard package files.
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- Added `foundation.css` for shared reset, tokens, named `ly-scope` containment, dynamic viewport sizing, and the `44rem`/`30rem` height tiers.
|
|
31
|
+
- Made `.ly-root`, every wrapper, and every recipe root a named responsive scope so recipes work without wrappers and respond to the nearest wrapper when nested.
|
|
32
|
+
- Added `data-ly-responsive="manual"` for application-owned topology with a safe stacked fallback.
|
|
33
|
+
- Added device, independent width/height, automatic/manual, dimension, and active-topology controls to the demo.
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- Replaced breakpoint-heavy primitives with intrinsic Grid and Flexbox behavior and standardized shrink safety.
|
|
38
|
+
- Moved Split Hero, List Detail, Docs, App Shell, and Dashboard topology to the shared `42rem`, `44rem`, `48rem`, `52rem`, and `72rem` query tiers.
|
|
39
|
+
- Converted all sixteen personalities into breakpoint-free token/topology profiles with at least two distinguishing spatial characteristics.
|
|
40
|
+
- Made dynamic viewport and container-relative tokens feature-detected enhancements over valid `vh` and `vw` fallbacks.
|
|
41
|
+
- Made manual Gallery and Card Grid recipes single-column, isolated nested personality split ratios, and aligned gap utilities across Grid, Stack, and Cluster.
|
|
42
|
+
- Restricted deliberate horizontal scrolling to Reel and deliberate bounded vertical scrolling to Scroll.
|
|
43
|
+
- Corrected case-sensitive GitHub Pages metadata and versioned local demo assets to prevent stale v2/v3 asset combinations.
|
|
44
|
+
|
|
45
|
+
### Tests
|
|
46
|
+
|
|
47
|
+
- Added package/export/tarball, canonical-selector, removed-surface, generated-parity, ownership, and personality-engine contracts.
|
|
48
|
+
- Added exact flattened/minified parity, actual tarball contents, complete v2 selector migration, nested-profile isolation, and fallback-enhancement contracts.
|
|
49
|
+
- Added threshold-edge, six-device, short-height, root-direct, nearest-wrapper, manual-query, DOM/focus-order, overflow, wrapper, recipe, and all-personality rendered matrices.
|
|
50
|
+
- Made Chromium, Firefox, and WebKit the complete release gate and retained the connected-browser interaction spot check.
|
|
51
|
+
|
|
5
52
|
## [2.1.1] - 2026-07-27
|
|
6
53
|
|
|
7
54
|
### Fixed
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# layout-style-css
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Zero-configuration, dependency-free structural CSS that responds to the width and height a layout actually receives.
|
|
4
4
|
|
|
5
|
-
`layout-style-css@
|
|
5
|
+
`layout-style-css@3.0.1` is the current v3 patch release and preserves the clean-break structural contract introduced in 3.0.0. It provides intrinsic wrappers, composition primitives, seven semantic recipes, and sixteen spatial personalities. Layout owns structure; UI Style Kit owns paint; Interactive Surface owns interaction styling.
|
|
6
6
|
|
|
7
7
|
## Requirements
|
|
8
8
|
|
|
@@ -10,74 +10,53 @@ Container-first, dependency-free structural CSS for responsive application layou
|
|
|
10
10
|
- Current evergreen Chromium, Firefox, or WebKit for consumers
|
|
11
11
|
- No runtime or peer dependencies
|
|
12
12
|
|
|
13
|
-
`ui-style-kit-css@2.1.0` and `interactive-surface-css@1.5.0` are released registry fixtures for optional ecosystem verification. Neither package is installed for consumers.
|
|
14
|
-
|
|
15
13
|
## Install
|
|
16
14
|
|
|
17
15
|
```bash
|
|
18
|
-
npm install layout-style-css@
|
|
16
|
+
npm install layout-style-css@3.0.1
|
|
19
17
|
```
|
|
20
18
|
|
|
21
|
-
|
|
19
|
+
Most applications need one import:
|
|
22
20
|
|
|
23
21
|
```js
|
|
24
22
|
import "layout-style-css";
|
|
25
23
|
```
|
|
26
24
|
|
|
27
|
-
The
|
|
28
|
-
|
|
29
|
-
## Ecosystem Imports
|
|
25
|
+
The full bundle includes the core modules and all personality profiles. No breakpoint configuration, wrapper, JavaScript, or companion library is required.
|
|
30
26
|
|
|
31
|
-
|
|
27
|
+
Package and bundler defaults (`main`, `style`, and the root export) resolve to the readable `dist/layout-style-css.css` bundle for straightforward inspection and debugging. The `unpkg` and `jsdelivr` convenience fields remain minified, and `layout-style-css/min.css` is the explicit minified package import.
|
|
32
28
|
|
|
33
|
-
|
|
29
|
+
## Zero-Configuration Start
|
|
34
30
|
|
|
35
|
-
|
|
36
|
-
import "ui-style-kit-css/visual.css";
|
|
37
|
-
import "layout-style-css";
|
|
38
|
-
```
|
|
31
|
+
Use `.ly-root` as the responsive boundary and keep the mobile DOM order authoritative:
|
|
39
32
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
33
|
+
```html
|
|
34
|
+
<body class="ly-root" data-ly-layout="minimal-saas">
|
|
35
|
+
<main data-ly-recipe="docs">
|
|
36
|
+
<header data-ly-area="header">Documentation</header>
|
|
37
|
+
<nav data-ly-area="nav" aria-label="Documentation">Navigation</nav>
|
|
38
|
+
<article data-ly-area="main">Guide</article>
|
|
39
|
+
<aside data-ly-area="aside">On this page</aside>
|
|
40
|
+
<footer data-ly-area="footer">Next steps</footer>
|
|
41
|
+
</main>
|
|
42
|
+
</body>
|
|
47
43
|
```
|
|
48
44
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
## Public Exports
|
|
52
|
-
|
|
53
|
-
| Import | Contents |
|
|
54
|
-
| --- | --- |
|
|
55
|
-
| `layout-style-css` | Full v2 core plus all personalities. |
|
|
56
|
-
| `layout-style-css/min.css` | Minified full v2 bundle. |
|
|
57
|
-
| `layout-style-css/core.css` | Wrappers, primitives, recipes, and utilities. |
|
|
58
|
-
| `layout-style-css/wrappers.css` | Tokens, reset, and semantic wrappers. |
|
|
59
|
-
| `layout-style-css/primitives.css` | Composition primitives. |
|
|
60
|
-
| `layout-style-css/recipes.css` | Seven named responsive recipes. |
|
|
61
|
-
| `layout-style-css/utilities.css` | Structural utilities and ordering escape hatches. |
|
|
62
|
-
| `layout-style-css/personalities.css` | All sixteen personalities. |
|
|
63
|
-
| `layout-style-css/personalities/minimal-saas.css` | One personality; substitute any public personality name. |
|
|
64
|
-
| `layout-style-css/integrations/ui-style-kit.css` | Deprecated import-free structural bridge for legacy UI Style Kit structural aliases. |
|
|
65
|
-
| `layout-style-css/legacy.css` | Full v2 bundle plus v1 compatibility aliases. |
|
|
66
|
-
|
|
67
|
-
The old root-level personality files and `all-with-ui-kit*` aggregates were removed. See [Migrating To 2.0](docs/wiki/Migrating-To-2.0.md) for exact mappings.
|
|
45
|
+
`.ly-root`, wrappers, and recipe roots establish the named `ly-scope` inline-size container. A recipe works directly in the root; when it is nested in a wrapper, it responds to that nearest wrapper.
|
|
68
46
|
|
|
69
|
-
##
|
|
47
|
+
## Wrappers
|
|
70
48
|
|
|
71
|
-
Every
|
|
49
|
+
Wrappers are optional measure and nesting controls. Every wrapper uses logical properties, fluid container-relative gutters, safe-area compensation, and shrink-safe sizing.
|
|
72
50
|
|
|
73
|
-
| Wrapper |
|
|
51
|
+
| Wrapper | Purpose |
|
|
74
52
|
| --- | --- |
|
|
75
|
-
| `.ly-wrapper
|
|
76
|
-
| `.ly-wrapper--
|
|
77
|
-
| `.ly-wrapper--
|
|
78
|
-
| `.ly-wrapper--
|
|
53
|
+
| `.ly-wrapper` | Personality-aware content measure |
|
|
54
|
+
| `.ly-wrapper--compact` | `40rem` compact measure |
|
|
55
|
+
| `.ly-wrapper--prose` | `68ch` reading measure |
|
|
56
|
+
| `.ly-wrapper--content` | `72rem` content measure |
|
|
57
|
+
| `.ly-wrapper--wide` | `112rem` wide measure |
|
|
79
58
|
| `.ly-wrapper--full` | Full available inline size |
|
|
80
|
-
| `.ly-wrapper--breakout` |
|
|
59
|
+
| `.ly-wrapper--breakout` | Clamped content, feature, and full lanes |
|
|
81
60
|
|
|
82
61
|
```html
|
|
83
62
|
<main class="ly-wrapper ly-wrapper--breakout">
|
|
@@ -87,149 +66,154 @@ Every `.ly-wrapper` has fluid logical gutters, safe-area compensation, and `cont
|
|
|
87
66
|
</main>
|
|
88
67
|
```
|
|
89
68
|
|
|
90
|
-
|
|
69
|
+
All lanes clamp to the available inline size, including allocations from 320px through ultrawide screens.
|
|
91
70
|
|
|
92
|
-
##
|
|
71
|
+
## Composition Primitives
|
|
93
72
|
|
|
94
|
-
|
|
73
|
+
The core includes:
|
|
95
74
|
|
|
96
|
-
-
|
|
97
|
-
- `
|
|
98
|
-
- `
|
|
99
|
-
-
|
|
100
|
-
- `split-hero`
|
|
101
|
-
- `gallery`
|
|
102
|
-
- `card-grid`
|
|
75
|
+
- `.ly-stack`, `.ly-cluster`, `.ly-center`, and `.ly-cover`
|
|
76
|
+
- `.ly-switcher`, `.ly-sidebar`, `.ly-grid`, and `.ly-split`
|
|
77
|
+
- `.ly-panes` and `.ly-media`
|
|
78
|
+
- `.ly-reel`, `.ly-frame`, and `.ly-scroll`
|
|
103
79
|
|
|
104
|
-
|
|
80
|
+
Grid and flex primitives wrap intrinsically whenever track wrapping can replace a query. Page, cover, and bounded-scroll sizing use `vh` fallbacks followed by `100dvh`-aware behavior. Only `.ly-reel` deliberately scrolls horizontally; only `.ly-scroll` deliberately creates a bounded vertical scroll region.
|
|
105
81
|
|
|
106
|
-
|
|
107
|
-
<section class="ly-wrapper ly-wrapper--wide">
|
|
108
|
-
<div class="ly-dashboard" data-ly-recipe="dashboard">
|
|
109
|
-
<header data-ly-area="header">Dashboard</header>
|
|
110
|
-
<nav data-ly-area="nav" aria-label="Dashboard">Navigation</nav>
|
|
111
|
-
<main data-ly-area="main">Primary workspace</main>
|
|
112
|
-
<aside data-ly-area="aside">Supporting details</aside>
|
|
113
|
-
<footer data-ly-area="footer">Status</footer>
|
|
114
|
-
</div>
|
|
115
|
-
</section>
|
|
116
|
-
```
|
|
82
|
+
## Automatic Recipe Engine
|
|
117
83
|
|
|
118
|
-
|
|
84
|
+
Recipes use attributes only. The stacked semantic source order is always safe, and automatic enhancement is the default.
|
|
119
85
|
|
|
120
|
-
|
|
86
|
+
| Recipe | Automatic topology |
|
|
87
|
+
| --- | --- |
|
|
88
|
+
| `data-ly-recipe="split-hero"` | Two tracks at `42rem` |
|
|
89
|
+
| `data-ly-recipe="list-detail"` | Two tracks at `44rem` |
|
|
90
|
+
| `data-ly-recipe="docs"` | Documentation rail at `48rem` |
|
|
91
|
+
| `data-ly-recipe="app-shell"` | Medium at `52rem`, wide at `72rem` |
|
|
92
|
+
| `data-ly-recipe="dashboard"` | Medium at `52rem`, wide at `72rem` |
|
|
93
|
+
| `data-ly-recipe="gallery"` | Intrinsic tracks; no topology breakpoint |
|
|
94
|
+
| `data-ly-recipe="card-grid"` | Intrinsic tracks; no topology breakpoint |
|
|
121
95
|
|
|
122
|
-
|
|
96
|
+
Canonical regions use `data-ly-area`, including `header`, `sidebar`, `nav`, `main`, `aside`, `footer`, `content`, `media`, `actions`, `primary`, and `secondary`.
|
|
123
97
|
|
|
124
|
-
|
|
125
|
-
| --- | --- |
|
|
126
|
-
| `.ly-stack`, `.ly-cluster`, `.ly-center`, `.ly-cover` | Flow, grouping, centering, and full-height composition. |
|
|
127
|
-
| `.ly-switcher`, `.ly-sidebar`, `.ly-grid`, `.ly-split` | Adaptive multi-item layouts. |
|
|
128
|
-
| `.ly-panes`, `.ly-media` | Workspaces and media-object arrangements. |
|
|
129
|
-
| `.ly-reel`, `.ly-frame`, `.ly-scroll` | Horizontal flow, stable ratios, and bounded scrolling. |
|
|
98
|
+
Recipe class aliases such as `.ly-dashboard` no longer exist. Use:
|
|
130
99
|
|
|
131
|
-
|
|
100
|
+
```html
|
|
101
|
+
<section data-ly-recipe="dashboard">
|
|
102
|
+
<header data-ly-area="header">Dashboard</header>
|
|
103
|
+
<nav data-ly-area="nav" aria-label="Dashboard">Navigation</nav>
|
|
104
|
+
<main data-ly-area="main">Primary workspace</main>
|
|
105
|
+
<aside data-ly-area="aside">Supporting details</aside>
|
|
106
|
+
<footer data-ly-area="footer">Status</footer>
|
|
107
|
+
</section>
|
|
108
|
+
```
|
|
132
109
|
|
|
133
|
-
##
|
|
110
|
+
## Custom Responsive Topology
|
|
134
111
|
|
|
135
|
-
|
|
112
|
+
Add `data-ly-responsive="manual"` to retain the safe stack and disable built-in topology enhancement. Application CSS can then use the same named container:
|
|
136
113
|
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
114
|
+
```css
|
|
115
|
+
@container ly-scope (min-width: 56rem) {
|
|
116
|
+
[data-ly-recipe="docs"][data-ly-responsive="manual"] {
|
|
117
|
+
/* Application-owned topology. */
|
|
118
|
+
}
|
|
119
|
+
}
|
|
141
120
|
```
|
|
142
121
|
|
|
143
|
-
|
|
144
|
-
| --- | --- |
|
|
145
|
-
| Left-rail applications | Minimal SaaS, Bauhaus, Tactile, Cyberpunk, F-Pattern |
|
|
146
|
-
| Right-rail workspaces | Brutalism, Neumorphism, Y2K, Retro Glass, Z-Pattern |
|
|
147
|
-
| Three-zone layouts | Retrofuturism, Mondrian, Synthwave |
|
|
148
|
-
| Full-width mosaics | Bento, Maximalist |
|
|
149
|
-
| Equal split | Split Screen |
|
|
122
|
+
This opt-out changes topology ownership, not the semantic DOM, shrink safety, gaps, or named regions.
|
|
150
123
|
|
|
151
|
-
|
|
124
|
+
## Vertical Responsiveness
|
|
152
125
|
|
|
153
|
-
|
|
126
|
+
The system responds to available block size without orientation queries:
|
|
154
127
|
|
|
155
|
-
|
|
128
|
+
- At viewport heights of `44rem` or less, gaps, section padding, header height, and bounded-scroll maxima tighten.
|
|
129
|
+
- At viewport heights of `30rem` or less, recipe-owned sticky behavior becomes normal flow, and cover/shell minimums stop forcing full-height regions.
|
|
130
|
+
- Safe-area block insets remain available, and required regions are never hidden solely because the viewport is short.
|
|
156
131
|
|
|
157
|
-
|
|
132
|
+
Use the public height, gap, measure, ratio, rail, media, card, and grid-minimum custom properties for advanced tuning. Defaults use `100vh` fallbacks followed by `100dvh`.
|
|
158
133
|
|
|
159
|
-
##
|
|
134
|
+
## Personalities
|
|
160
135
|
|
|
161
|
-
|
|
136
|
+
Set one of sixteen canonical `data-ly-layout` values on `.ly-root`:
|
|
162
137
|
|
|
163
|
-
|
|
138
|
+
`minimal-saas`, `bauhaus`, `tactile`, `cyberpunk`, `f-pattern`, `brutalism`, `neumorphism`, `y2k`, `retro-glass`, `z-pattern`, `retrofuturism`, `mondrian`, `synthwave`, `bento`, `maximalist`, or `split-screen`.
|
|
164
139
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
140
|
+
Each personality is a token/topology profile consumed by the shared recipe engine. A profile changes at least two spatial characteristics—such as measure, gap, rail, media size, card minimum, or ratio—but does not declare its own container or viewport breakpoint system.
|
|
141
|
+
|
|
142
|
+
## Public Exports
|
|
168
143
|
|
|
169
|
-
|
|
144
|
+
| Import | Contents |
|
|
145
|
+
| --- | --- |
|
|
146
|
+
| `layout-style-css` | Full v3 bundle |
|
|
147
|
+
| `layout-style-css/min.css` | Minified full v3 bundle |
|
|
148
|
+
| `layout-style-css/core.css` | Foundation, wrappers, primitives, recipes, and utilities |
|
|
149
|
+
| `layout-style-css/foundation.css` | Reset, shared tokens, containment, and vertical responsiveness |
|
|
150
|
+
| `layout-style-css/wrappers.css` | Semantic wrappers and breakout lanes |
|
|
151
|
+
| `layout-style-css/primitives.css` | Intrinsic composition primitives |
|
|
152
|
+
| `layout-style-css/recipes.css` | Seven attribute-only recipes |
|
|
153
|
+
| `layout-style-css/utilities.css` | Small structural utility set |
|
|
154
|
+
| `layout-style-css/personalities.css` | All sixteen profiles |
|
|
155
|
+
| `layout-style-css/personalities/minimal-saas.css` | One profile; substitute any public personality name |
|
|
156
|
+
| `layout-style-css/personalities.json` | Public layout-to-visual pairing recommendations |
|
|
157
|
+
| `layout-style-css/package.json` | Package metadata |
|
|
158
|
+
|
|
159
|
+
The cascade order is `ly.reset`, `ly.tokens`, `ly.wrappers`, `ly.primitives`, `ly.recipes`, `ly.utilities`, and `ly.personalities`.
|
|
170
160
|
|
|
171
|
-
##
|
|
161
|
+
## Ecosystem Imports
|
|
172
162
|
|
|
173
|
-
|
|
163
|
+
Companion libraries are optional and explicit. Layout does not import them.
|
|
174
164
|
|
|
175
165
|
```js
|
|
176
|
-
import "
|
|
166
|
+
import "ui-style-kit-css/visual.css";
|
|
167
|
+
import "ui-style-kit-css/interactive-surface-theme.css";
|
|
168
|
+
import "interactive-surface-css/state-core.css";
|
|
169
|
+
import "layout-style-css";
|
|
177
170
|
```
|
|
178
171
|
|
|
179
|
-
This
|
|
172
|
+
This order lets UI Style Kit establish paint and theme roles, Interactive Surface add interaction states, and Layout apply structure.
|
|
180
173
|
|
|
181
|
-
|
|
174
|
+
`data-ly-layout`, `data-ui`, `data-theme`, and `data-mode` are independently selectable. See [Layout Styles](docs/wiki/Layout-Styles.md#visual-pairing-guidance) for the full recommendation matrix; pairings are never dependencies.
|
|
182
175
|
|
|
183
176
|
## CDN
|
|
184
177
|
|
|
185
178
|
```html
|
|
186
|
-
<link rel="stylesheet" href="https://unpkg.com/layout-style-css@
|
|
187
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layout-style-css@
|
|
179
|
+
<link rel="stylesheet" href="https://unpkg.com/layout-style-css@3.0.1/dist/layout-style-css.min.css">
|
|
180
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layout-style-css@3.0.1/dist/layout-style-css.min.css">
|
|
188
181
|
```
|
|
189
182
|
|
|
190
|
-
|
|
183
|
+
## Clean-Break Migration
|
|
184
|
+
|
|
185
|
+
v3 has no compatibility bundle. It removes `legacy.css`, the deprecated UI Style Kit structural bridge, v1/v2 aliases, responsive `ly-md-*` and `ly-lg-*` utilities, and all visual-order utilities. See [Migrating To 3.0](docs/wiki/Migrating-To-3.0.md) for exact mappings.
|
|
191
186
|
|
|
192
|
-
##
|
|
187
|
+
## Demo And Verification
|
|
188
|
+
|
|
189
|
+
The demo provides independent width and height controls plus phone, tablet, and desktop portrait/landscape presets. It displays rendered dimensions and active topology, compares automatic with manual responsiveness, and generates canonical copy-ready markup.
|
|
193
190
|
|
|
194
191
|
```bash
|
|
195
192
|
npm ci
|
|
196
193
|
npm run build
|
|
197
194
|
npm run lint
|
|
198
195
|
npm run check:demo-js
|
|
199
|
-
npm run test:demo:quick
|
|
200
196
|
npm test
|
|
197
|
+
npm run test:full
|
|
198
|
+
npm run release:verify
|
|
201
199
|
```
|
|
202
200
|
|
|
203
|
-
`npm test`
|
|
201
|
+
`npm test` runs the quick Chromium gate. `npm run test:full` exercises the rendered matrix in Chromium, Firefox, and WebKit. `npm run release:verify` includes the full build and test gate, tarball verification, `npm audit --audit-level=moderate`, and publish dry-run; it does not publish.
|
|
204
202
|
|
|
205
|
-
## Documentation
|
|
203
|
+
## Documentation
|
|
206
204
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
| [Security And Support](docs/wiki/Security-And-Support.md) | Supported versions and reporting. |
|
|
220
|
-
| [Contributing](docs/wiki/Contributing.md) | Source, generated output, and review rules. |
|
|
221
|
-
| [Wiki sidebar source](docs/wiki/_Sidebar.md) | Navigation source for a GitHub Wiki mirror. |
|
|
222
|
-
| [Changelog](CHANGELOG.md) | Release history. |
|
|
223
|
-
| [Repository contributing guide](CONTRIBUTING.md) | Contribution workflow. |
|
|
224
|
-
| [Security policy](SECURITY.md) | Security policy. |
|
|
225
|
-
|
|
226
|
-
## Ownership Boundary
|
|
227
|
-
|
|
228
|
-
- `layout-style-css` owns wrappers, flow, grids, areas, measures, spans, containment, and structural responsiveness.
|
|
229
|
-
- `ui-style-kit-css` owns theme and component paint.
|
|
230
|
-
- `interactive-surface-css` owns interaction-state styling.
|
|
231
|
-
|
|
232
|
-
Authored CSS lives in `styles/`; `dist/` is generated. Keep public layout classes prefixed with `ly-`, add tests before changing contracts, and never edit generated CSS directly.
|
|
205
|
+
- [Getting Started](docs/wiki/Getting-Started.md)
|
|
206
|
+
- [Installation And CDN](docs/wiki/Installation-And-CDN.md)
|
|
207
|
+
- [Layout Primitives](docs/wiki/Layout-Primitives.md)
|
|
208
|
+
- [Layout Recipes](docs/wiki/Layout-Recipes.md)
|
|
209
|
+
- [Layout Styles](docs/wiki/Layout-Styles.md)
|
|
210
|
+
- [Migrating To 3.0](docs/wiki/Migrating-To-3.0.md)
|
|
211
|
+
- [Demo And GitHub Pages](docs/wiki/Demo-And-GitHub-Pages.md)
|
|
212
|
+
- [Release And Publishing](docs/wiki/Release-And-Publishing.md)
|
|
213
|
+
- [Security And Support](docs/wiki/Security-And-Support.md)
|
|
214
|
+
- [Changelog](CHANGELOG.md)
|
|
215
|
+
|
|
216
|
+
Authored CSS lives in `styles/`; `dist/` is generated. Keep application markup in correct DOM, reading, keyboard, and focus order.
|
|
233
217
|
|
|
234
218
|
## License
|
|
235
219
|
|
package/dist/core.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
@layer ly.reset, ly.tokens, ly.wrappers, ly.primitives, ly.recipes, ly.utilities, ly.personalities
|
|
1
|
+
@layer ly.reset, ly.tokens, ly.wrappers, ly.primitives, ly.recipes, ly.utilities, ly.personalities;
|
|
2
2
|
|
|
3
|
+
@import url("./foundation.css");
|
|
3
4
|
@import url("./wrappers.css");
|
|
4
5
|
@import url("./primitives.css");
|
|
5
6
|
@import url("./recipes.css");
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
@layer ly.reset, ly.tokens, ly.wrappers, ly.primitives, ly.recipes, ly.utilities, ly.personalities;
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
Foundation owns only shared spatial tokens, containment, and defensive
|
|
5
|
+
sizing. Theme and interaction libraries remain responsible for paint.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@layer ly.tokens {
|
|
9
|
+
:where(.ly-root) {
|
|
10
|
+
--ly-space-0: 0;
|
|
11
|
+
--ly-space-1: 0.25rem;
|
|
12
|
+
--ly-space-2: 0.5rem;
|
|
13
|
+
--ly-space-3: 0.75rem;
|
|
14
|
+
--ly-space-4: 1rem;
|
|
15
|
+
--ly-space-5: 1.5rem;
|
|
16
|
+
--ly-space-6: 2rem;
|
|
17
|
+
--ly-space-7: 3rem;
|
|
18
|
+
--ly-space-8: 4rem;
|
|
19
|
+
--ly-space-9: 6rem;
|
|
20
|
+
|
|
21
|
+
--ly-wrapper-compact: 40rem;
|
|
22
|
+
--ly-wrapper-prose: 68ch;
|
|
23
|
+
--ly-wrapper-content: 72rem;
|
|
24
|
+
--ly-wrapper-wide: 112rem;
|
|
25
|
+
--ly-page-padding-inline: clamp(1rem, 4vw, 3rem);
|
|
26
|
+
--ly-safe-area-inline: max(
|
|
27
|
+
env(safe-area-inset-left, 0px),
|
|
28
|
+
env(safe-area-inset-right, 0px)
|
|
29
|
+
);
|
|
30
|
+
--ly-safe-area-block-start: env(safe-area-inset-top, 0px);
|
|
31
|
+
--ly-safe-area-block-end: env(safe-area-inset-bottom, 0px);
|
|
32
|
+
--ly-wrapper-gutter: max(var(--ly-page-padding-inline), var(--ly-safe-area-inline));
|
|
33
|
+
|
|
34
|
+
--ly-profile-gap: var(--ly-space-5);
|
|
35
|
+
--ly-gap: var(--ly-profile-gap);
|
|
36
|
+
--ly-grid-gap: var(--ly-gap);
|
|
37
|
+
--ly-stack-gap: var(--ly-space-4);
|
|
38
|
+
--ly-cluster-gap: var(--ly-space-3);
|
|
39
|
+
--ly-section-padding-block: clamp(3rem, 7vh, 6rem);
|
|
40
|
+
--ly-header-height: 4.5rem;
|
|
41
|
+
--ly-sticky-position: sticky;
|
|
42
|
+
--ly-cover-min: 100vh;
|
|
43
|
+
--ly-shell-min: 100vh;
|
|
44
|
+
--ly-scroll-max: min(70vh, 50rem);
|
|
45
|
+
|
|
46
|
+
--ly-switcher-threshold: 42rem;
|
|
47
|
+
--ly-sidebar-size: 18rem;
|
|
48
|
+
--ly-sidebar-content-min: 50%;
|
|
49
|
+
--ly-grid-columns: 12;
|
|
50
|
+
--ly-grid-min: 16rem;
|
|
51
|
+
--ly-split-min: 20rem;
|
|
52
|
+
--ly-pane-min: 18rem;
|
|
53
|
+
--ly-pane-size: 22rem;
|
|
54
|
+
--ly-media-min: 18rem;
|
|
55
|
+
--ly-media-size: 14rem;
|
|
56
|
+
--ly-reel-item-min: 16rem;
|
|
57
|
+
--ly-reel-item-max: 28rem;
|
|
58
|
+
--ly-frame-ratio: 16 / 9;
|
|
59
|
+
--ly-split-primary: 1fr;
|
|
60
|
+
--ly-split-secondary: 1fr;
|
|
61
|
+
|
|
62
|
+
--ly-recipe-rail: 18rem;
|
|
63
|
+
--ly-recipe-aside: 22rem;
|
|
64
|
+
--ly-gallery-min: 12rem;
|
|
65
|
+
--ly-card-grid-min: 16rem;
|
|
66
|
+
|
|
67
|
+
--ly-app-shell-medium-areas:
|
|
68
|
+
"header header"
|
|
69
|
+
"sidebar main"
|
|
70
|
+
"aside main"
|
|
71
|
+
"footer footer";
|
|
72
|
+
--ly-app-shell-medium-columns:
|
|
73
|
+
minmax(min(100%, var(--ly-recipe-rail)), auto)
|
|
74
|
+
minmax(0, 1fr);
|
|
75
|
+
--ly-app-shell-wide-areas:
|
|
76
|
+
"sidebar header header"
|
|
77
|
+
"sidebar main aside"
|
|
78
|
+
"sidebar footer footer";
|
|
79
|
+
--ly-app-shell-wide-columns:
|
|
80
|
+
minmax(min(100%, var(--ly-recipe-rail)), auto)
|
|
81
|
+
minmax(0, 1fr)
|
|
82
|
+
minmax(min(100%, var(--ly-recipe-aside)), 0.35fr);
|
|
83
|
+
|
|
84
|
+
--ly-dashboard-medium-areas:
|
|
85
|
+
"header header"
|
|
86
|
+
"nav nav"
|
|
87
|
+
"main aside"
|
|
88
|
+
"footer footer";
|
|
89
|
+
--ly-dashboard-medium-columns:
|
|
90
|
+
minmax(0, 1fr)
|
|
91
|
+
minmax(min(100%, var(--ly-recipe-aside)), 0.35fr);
|
|
92
|
+
--ly-dashboard-wide-areas:
|
|
93
|
+
"nav header header"
|
|
94
|
+
"nav main aside"
|
|
95
|
+
"nav footer footer";
|
|
96
|
+
--ly-dashboard-wide-columns:
|
|
97
|
+
minmax(min(100%, var(--ly-recipe-rail)), auto)
|
|
98
|
+
minmax(0, 1fr)
|
|
99
|
+
minmax(min(100%, var(--ly-recipe-aside)), 0.35fr);
|
|
100
|
+
|
|
101
|
+
--ly-docs-wide-areas:
|
|
102
|
+
"header header"
|
|
103
|
+
"nav main"
|
|
104
|
+
"nav aside"
|
|
105
|
+
"footer footer";
|
|
106
|
+
--ly-docs-wide-columns:
|
|
107
|
+
minmax(min(100%, var(--ly-recipe-rail)), auto)
|
|
108
|
+
minmax(0, 1fr);
|
|
109
|
+
--ly-list-detail-wide-areas:
|
|
110
|
+
"primary secondary"
|
|
111
|
+
"actions actions";
|
|
112
|
+
--ly-list-detail-wide-columns:
|
|
113
|
+
minmax(min(100%, var(--ly-pane-size)), 0.7fr)
|
|
114
|
+
minmax(0, 1fr);
|
|
115
|
+
--ly-split-hero-wide-areas:
|
|
116
|
+
"content media"
|
|
117
|
+
"actions media";
|
|
118
|
+
--ly-split-hero-wide-columns:
|
|
119
|
+
minmax(0, var(--ly-split-primary, 1fr))
|
|
120
|
+
minmax(0, var(--ly-split-secondary, 1fr));
|
|
121
|
+
|
|
122
|
+
container-name: ly-scope;
|
|
123
|
+
container-type: inline-size;
|
|
124
|
+
min-inline-size: 0;
|
|
125
|
+
min-block-size: 0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Enhance viewport-bound tokens only when dynamic viewport units parse. */
|
|
129
|
+
@supports (height: 100dvh) {
|
|
130
|
+
:where(.ly-root) {
|
|
131
|
+
--ly-cover-min: 100dvh;
|
|
132
|
+
--ly-shell-min: 100dvh;
|
|
133
|
+
--ly-scroll-max: min(70dvh, 50rem);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@layer ly.reset {
|
|
139
|
+
:where(.ly-root),
|
|
140
|
+
:where(.ly-root *) {
|
|
141
|
+
box-sizing: border-box;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:where(.ly-root) {
|
|
145
|
+
margin: 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:where(.ly-root img),
|
|
149
|
+
:where(.ly-root svg),
|
|
150
|
+
:where(.ly-root video),
|
|
151
|
+
:where(.ly-root canvas),
|
|
152
|
+
:where(.ly-root iframe) {
|
|
153
|
+
max-inline-size: 100%;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@layer ly.tokens {
|
|
158
|
+
@media (max-height: 44rem) {
|
|
159
|
+
:where(.ly-root) {
|
|
160
|
+
--ly-gap: min(var(--ly-profile-gap), var(--ly-space-4));
|
|
161
|
+
--ly-grid-gap: var(--ly-gap);
|
|
162
|
+
--ly-stack-gap: min(var(--ly-space-4), 3vh);
|
|
163
|
+
--ly-cluster-gap: min(var(--ly-space-3), 2vh);
|
|
164
|
+
--ly-section-padding-block: clamp(1.5rem, 6vh, 3rem);
|
|
165
|
+
--ly-header-height: 3.5rem;
|
|
166
|
+
--ly-scroll-max: min(62vh, 34rem);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@supports (height: 100dvh) {
|
|
170
|
+
:where(.ly-root) {
|
|
171
|
+
--ly-stack-gap: min(var(--ly-space-4), 3dvh);
|
|
172
|
+
--ly-cluster-gap: min(var(--ly-space-3), 2dvh);
|
|
173
|
+
--ly-section-padding-block: clamp(1.5rem, 6dvh, 3rem);
|
|
174
|
+
--ly-scroll-max: min(62dvh, 34rem);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@media (max-height: 30rem) {
|
|
180
|
+
:where(.ly-root) {
|
|
181
|
+
--ly-cover-min: auto;
|
|
182
|
+
--ly-shell-min: auto;
|
|
183
|
+
--ly-sticky-position: static;
|
|
184
|
+
--ly-section-padding-block: var(--ly-space-5);
|
|
185
|
+
--ly-scroll-max: max(12rem, calc(100vh - 8rem));
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@supports (height: 100dvh) {
|
|
189
|
+
:where(.ly-root) {
|
|
190
|
+
--ly-scroll-max: max(12rem, calc(100dvh - 8rem));
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|