@poodle64/ui 2026.10.23 → 2026.10.24
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/README.md +11 -11
- package/dist/components/ui/app-shell/app-shell.svelte +1 -1
- package/dist/components/ui/app-shell/app-shell.svelte.d.ts +1 -1
- package/dist/components/ui/app-shell/measure.d.ts +1 -1
- package/dist/components/ui/collection-detail/collection-detail.svelte +1 -1
- package/dist/styles.css +8 -8
- package/package.json +1 -1
- package/registry/component-map.json +1 -1
- package/registry/component-map.md +1 -1
package/README.md
CHANGED
|
@@ -489,7 +489,7 @@ How wide the page body may get, chosen once in the layout from a scale of four:
|
|
|
489
489
|
|
|
490
490
|
| Value | Width | Reach for it when the page is |
|
|
491
491
|
| ------- | -------- | -------------------------------------------------------------------- |
|
|
492
|
-
| `prose` | `
|
|
492
|
+
| `prose` | `40rem` | long-form running text: documentation, an article, a policy, a guide |
|
|
493
493
|
| `page` | `80rem` | an everyday page: a form, a detail view, settings, a wizard |
|
|
494
494
|
| `wide` | `120rem` | an index or a dashboard: card grids, tables, charts, board columns |
|
|
495
495
|
| `full` | no cap | a canvas that should use the whole panel: a map, a diagram, a board |
|
|
@@ -512,16 +512,17 @@ names cannot drift like that.
|
|
|
512
512
|
span a large display would be worse than what it replaces, and worse everywhere
|
|
513
513
|
at once. Measured in Chromium at 2560px: the same paragraph runs to **311
|
|
514
514
|
characters per line** uncapped, against an accepted band of 45–90 for continuous
|
|
515
|
-
text. `prose` puts it at
|
|
516
|
-
|
|
517
|
-
|
|
515
|
+
text. `prose` puts it at about 70. It is stated in `rem`, not `ch`: `ch` resolves
|
|
516
|
+
against each element's own font size, so a lead, a paragraph and a small intro in
|
|
517
|
+
one column ended at three right edges. A root-relative length gives every block
|
|
518
|
+
the same one.
|
|
518
519
|
|
|
519
520
|
Every tier is a CSS custom property, so an app retunes one without waiting on a
|
|
520
521
|
release of this package:
|
|
521
522
|
|
|
522
523
|
```css
|
|
523
524
|
:root {
|
|
524
|
-
--ds-shell-measure-prose:
|
|
525
|
+
--ds-shell-measure-prose: 36rem;
|
|
525
526
|
--ds-shell-measure-page: 72rem;
|
|
526
527
|
--ds-shell-measure-wide: 100rem;
|
|
527
528
|
}
|
|
@@ -532,10 +533,9 @@ Two things worth knowing before you set it:
|
|
|
532
533
|
- **The cap is a ceiling, never a floor.** `page` caps at 80rem; a 1440px laptop
|
|
533
534
|
has less than that available, so nothing changes there. A measure never narrows
|
|
534
535
|
a window that was already narrower than the tier.
|
|
535
|
-
- **`prose`
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
are lengths and never move.
|
|
536
|
+
- **`prose` is a length, so it does not follow the font.** Text set larger or
|
|
537
|
+
smaller than the body fits more or fewer characters in the same column and
|
|
538
|
+
ends at the same right edge as its neighbours; that is the point of it.
|
|
539
539
|
- **The cap is the border box, so `padded` spends its padding inside it.**
|
|
540
540
|
`measure="page"` with the default padding is 80rem of box holding 78rem of
|
|
541
541
|
content, which is the same arithmetic as the `mx-auto max-w-4xl px-6` idiom it
|
|
@@ -562,9 +562,9 @@ measure. Cap the block, not the route:
|
|
|
562
562
|
|
|
563
563
|
Same attribute and same custom properties as the shell's own measure, so the
|
|
564
564
|
block retunes when the scale does. That is the point of it: the alternative an
|
|
565
|
-
app reaches for is a local `max-w-prose` or `max-w-[72ch]`, a number typed once
|
|
565
|
+
app reaches for is a local `max-w-prose` or `max-w-[72ch]` (both in `ch`, so blocks of different sizes end at different edges), a number typed once
|
|
566
566
|
that never hears about a retune — four apps had written ten of them between
|
|
567
|
-
them and not one matched this package's own
|
|
567
|
+
them and not one matched this package's own measure.
|
|
568
568
|
|
|
569
569
|
`.ds-measure` caps and nothing else. `.ds-shell-measure`, which the shell puts
|
|
570
570
|
on its own content box, is that plus `margin-inline: auto` — right for a content
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
onToggleTheme?: () => void;
|
|
203
203
|
padded?: boolean;
|
|
204
204
|
/**
|
|
205
|
-
* How wide the page body may get, from a named scale: `prose` (
|
|
205
|
+
* How wide the page body may get, from a named scale: `prose` (40rem, for
|
|
206
206
|
* long-form running text), `page` (80rem — forms, detail views,
|
|
207
207
|
* settings), `wide` (120rem — indexes, grids, tables, dashboards), or
|
|
208
208
|
* `full` (no cap).
|
|
@@ -159,7 +159,7 @@ type $$ComponentProps = {
|
|
|
159
159
|
onToggleTheme?: () => void;
|
|
160
160
|
padded?: boolean;
|
|
161
161
|
/**
|
|
162
|
-
* How wide the page body may get, from a named scale: `prose` (
|
|
162
|
+
* How wide the page body may get, from a named scale: `prose` (40rem, for
|
|
163
163
|
* long-form running text), `page` (80rem — forms, detail views,
|
|
164
164
|
* settings), `wide` (120rem — indexes, grids, tables, dashboards), or
|
|
165
165
|
* `full` (no cap).
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* `styles.css`), so an app retunes any of them in one declaration.
|
|
14
14
|
*/
|
|
15
15
|
/**
|
|
16
|
-
* - `prose` — a genuine reading measure (`
|
|
16
|
+
* - `prose` — a genuine reading measure (`40rem`, about 70 characters) for long-form running text.
|
|
17
17
|
* - `page` — everyday pages: forms, detail views, settings (`80rem`).
|
|
18
18
|
* - `wide` — indexes, card grids, tables, dashboards (`120rem`).
|
|
19
19
|
* - `full` — no cap. The default, so omitting `measure` changes nothing.
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
<p class="text-muted-foreground text-sm">{collection.subtitle}</p>
|
|
111
111
|
{/if}
|
|
112
112
|
{#if collection.description}
|
|
113
|
-
<p class="mt-2
|
|
113
|
+
<p class="ds-measure mt-2 text-sm" data-measure="prose">{collection.description}</p>
|
|
114
114
|
{/if}
|
|
115
115
|
{#if !collection.subtitle && !collection.description}
|
|
116
116
|
<p class="text-muted-foreground text-sm">No description recorded.</p>
|
package/dist/styles.css
CHANGED
|
@@ -357,14 +357,14 @@
|
|
|
357
357
|
for the same reason the rail width is one: an app retunes a tier in one
|
|
358
358
|
declaration instead of waiting on a release of this package.
|
|
359
359
|
|
|
360
|
-
`prose` is in `
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
360
|
+
`prose` is in `rem`, like the other two, though it is a reading measure.
|
|
361
|
+
`ch` resolves against each element's OWN font size, so blocks of 20, 16
|
|
362
|
+
and 14px in one column stopped at three different right edges (982, 770
|
|
363
|
+
and 674px measured). A root-relative length gives them one edge. 40rem
|
|
364
|
+
is about 70 characters of body text in the household face; a caller that
|
|
365
|
+
wants a different count retunes the property.
|
|
366
366
|
──────────────────────────────────────────────────────────────────────── */
|
|
367
|
-
--ds-shell-measure-prose:
|
|
367
|
+
--ds-shell-measure-prose: 40rem;
|
|
368
368
|
--ds-shell-measure-page: 80rem;
|
|
369
369
|
--ds-shell-measure-wide: 120rem;
|
|
370
370
|
}
|
|
@@ -1161,7 +1161,7 @@
|
|
|
1161
1161
|
rather than drifting from it. That is the whole point: the alternative an
|
|
1162
1162
|
app reaches for is a local `max-w-prose` or `max-w-[72ch]`, which is a
|
|
1163
1163
|
number typed once that never hears about a retune — four apps had written
|
|
1164
|
-
ten of them between them, and not one matched this package's own
|
|
1164
|
+
ten of them between them, and not one matched this package's own measure. */
|
|
1165
1165
|
.ds-measure[data-measure='prose'],
|
|
1166
1166
|
.ds-shell-measure[data-measure='prose'] {
|
|
1167
1167
|
max-width: var(--ds-shell-measure-prose);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poodle64/ui",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.24",
|
|
4
4
|
"description": "Household shared component layer: shadcn-svelte primitives (bits-ui) plus the composed page chrome every app builds its routes from, restyled by each app's @poodle64/design-tokens alias layer. One fix reaches every app.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @poodle64/ui — situation → component map
|
|
2
2
|
|
|
3
3
|
<!-- GENERATED by scripts/generate-registry.mjs from scripts/situations.json + package source. DO NOT EDIT. -->
|
|
4
|
-
Generated from `@poodle64/ui@2026.10.
|
|
4
|
+
Generated from `@poodle64/ui@2026.10.24`. 76 components, 20 situations.
|
|
5
5
|
|
|
6
6
|
**Read this before writing a `<div>`.** Find the SITUATION you are in below, then compose the component named for it — do not hand-build it from raw `Card` or utility classes. Import is `import { Name } from '<import path>'`. Props marked `?` are optional. This map is the retrieval step the [`frontend-design` skill] makes mandatory; the [CHI 2026 study] measured composing-from-a-registry at 95% design-system compliance against 71% for writing the CSS from a prose style guide.
|
|
7
7
|
|