@vibes.diy/prompts 14.3.253 → 14.3.255
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/llms/access.md +2 -2
- package/llms/d3.js +1 -0
- package/llms/d3.js.map +1 -1
- package/llms/index.d.ts +2 -1
- package/llms/index.js +3 -0
- package/llms/index.js.map +1 -1
- package/llms/p5.js +1 -1
- package/llms/p5.js.map +1 -1
- package/llms/surface-stage.d.ts +2 -0
- package/llms/surface-stage.js +8 -0
- package/llms/surface-stage.js.map +1 -0
- package/llms/surface-stage.md +92 -0
- package/llms/three-js.js +3 -2
- package/llms/three-js.js.map +1 -1
- package/llms/three-js.md +43 -14
- package/package.json +5 -5
- package/system-prompt-initial-instant.md +1 -0
- package/system-prompt-initial-oneshot.md +2 -1
- package/system-prompt-initial.md +2 -1
- package/system-prompt.md +2 -1
- package/themes/looks/pouf/brief.md +2 -2
package/llms/access.md
CHANGED
|
@@ -198,7 +198,7 @@ The effective access state is the union of every current document's `AccessDescr
|
|
|
198
198
|
|
|
199
199
|
### `allowAnonymous`
|
|
200
200
|
|
|
201
|
-
If `user` is `null` and the function returns without throwing, the runtime checks `allowAnonymous`. If absent or `false`, the write is rejected. This prevents a function that never inspects `user` from silently opening anonymous writes. When `user` is not null, `allowAnonymous` has no effect. `grant.public` makes channels readable by any member (anyone through the door) without a specific channel grant — whether non-members can also read depends on the app-level public toggle. Anonymous _write_ requires `allowAnonymous: true` separately. Declaring it is
|
|
201
|
+
If `user` is `null` and the function returns without throwing, the runtime checks `allowAnonymous`. If absent or `false`, the write is rejected. This prevents a function that never inspects `user` from silently opening anonymous writes. When `user` is not null, `allowAnonymous` has no effect. `grant.public` makes channels readable by any member (anyone through the door) without a specific channel grant — whether non-members can also read depends on the app-level public toggle. Anonymous _write_ requires `allowAnonymous: true` separately. Declaring it is how the app asks for signed-out writes: when the app is published open and isn't sensitive, the platform turns the deployment's owner-visible anonymous-writes setting on from your literal `allowAnonymous: true`, and the owner can switch it off any time. Write the literal `true` where the app takes signed-out writes.
|
|
202
202
|
|
|
203
203
|
### Choosing channels — keep the count low
|
|
204
204
|
|
|
@@ -378,7 +378,7 @@ So, in the same turn as the access edit and after it:
|
|
|
378
378
|
- **Never add a branch to `access.js` just to admit a seed item.** A branch exists because the app writes that type. If a seed item's type appears nowhere in the app's own code, delete the item — do not widen the permission model to let example data through.
|
|
379
379
|
- **Keep every explicit `_id` byte-identical.** Seed items that other items reference, and well-known singletons (`config:profile`, `settings:sharing`), carry an explicit `_id` that the app's code matches literally. Renaming one during a reconcile breaks that lookup in `App.jsx` and orphans any document an owner already imported, in a single edit. Keep the `key` slugs stable for the same reason — the platform derives idempotency from them.
|
|
380
380
|
|
|
381
|
-
**Write the seed as its writer: the owner.** Applying the import writes every record as the owner, with `user = { userHandle: <the owner's handle>, isOwner: true }`, and stamps nothing on the record. So a field a branch compares to the writer — `authorHandle`, `creatorHandle`, `hostHandle` — carries `"@owner"`, and the platform fills in the handle of whoever applies the seed: `{ "key": "pancakes", "type": "recipe", "title": "Sunday pancakes", "authorHandle": "@owner" }` is the owner's own record in the app you build and in every remix of it. Write the marker as the whole value, exactly `"@owner"`. Where the rules set the state a new record starts in ("orders start as new"), each seeded record starts in that state.
|
|
381
|
+
**Write the seed as its writer: the owner.** Applying the import writes every record as the owner, with `user = { userHandle: <the owner's handle>, isOwner: true }`, and stamps nothing on the record. So a field a branch compares to the writer — `authorHandle`, `creatorHandle`, `hostHandle` — carries `"@owner"`, and the platform fills in the handle of whoever applies the seed: `{ "key": "pancakes", "type": "recipe", "title": "Sunday pancakes", "authorHandle": "@owner" }` is the owner's own record in the app you build and in every remix of it. Write the marker as the whole value, exactly `"@owner"`. An id the rules build from the writer carries the marker in the same spot, and it fills in there too: `"_id": "profile-@owner"` arrives as the owner's own profile when the rules ask for `"profile-" + authorHandle`, and `"like-@owner-post-pottery"` as their like. Where the rules set the state a new record starts in ("orders start as new"), each seeded record starts in that state.
|
|
382
382
|
|
|
383
383
|
**Order the seed so the function admits it.** Applying the import runs every document through `access.js` as the owner's first write, in file order, so the seed passes its own rules or it does not arrive at all. A document whose branch reads a channel off a parent needs that parent earlier in the file, granting the channel the child will be routed into; a type the function routes on a field carries that field on every item. A task list seeded as `{ type: "task", listId: "main" }` needs a `list` item with `_id: "main"` above it whose branch grants `list:main` — without it every task is refused on the first apply, and the app opens empty with nothing on screen to say why.
|
|
384
384
|
|
package/llms/d3.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export const d3Config = {
|
|
2
2
|
name: "d3",
|
|
3
|
+
needs: ["surface-stage"],
|
|
3
4
|
label: "D3.js",
|
|
4
5
|
description: "D3.js data visualization library for creating interactive charts, graphs, maps, and data-driven documents using SVG, HTML, CSS. Includes scales, selections, transitions, animations, force simulations, geographic projections, data binding, DOM manipulation, data viz, dataviz",
|
|
5
6
|
cues: [
|
package/llms/d3.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d3.js","sourceRoot":"","sources":["../../jsr/llms/d3.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAc;IACjC,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,OAAO;IACd,WAAW,EACT,oRAAoR;IACtR,IAAI,EAAE;QACJ,OAAO;QACP,QAAQ;QACR,OAAO;QACP,QAAQ;QACR,MAAM;QACN,OAAO;QACP,IAAI;QACJ,eAAe;QACf,eAAe;QACf,SAAS;QACT,UAAU;QACV,SAAS;QACT,WAAW;QACX,SAAS;QAGT,KAAK;QACL,MAAM;QACN,YAAY;KACb;IACD,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,WAAW;CACxB,CAAC"}
|
|
1
|
+
{"version":3,"file":"d3.js","sourceRoot":"","sources":["../../jsr/llms/d3.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAc;IACjC,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,CAAC,eAAe,CAAC;IACxB,KAAK,EAAE,OAAO;IACd,WAAW,EACT,oRAAoR;IACtR,IAAI,EAAE;QACJ,OAAO;QACP,QAAQ;QACR,OAAO;QACP,QAAQ;QACR,MAAM;QACN,OAAO;QACP,IAAI;QACJ,eAAe;QACf,eAAe;QACf,SAAS;QACT,UAAU;QACV,SAAS;QACT,WAAW;QACX,SAAS;QAGT,KAAK;QACL,MAAM;QACN,YAAY;KACb;IACD,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,WAAW;CACxB,CAAC"}
|
package/llms/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export { imageGenConfig } from "./image-gen.js";
|
|
|
13
13
|
export { soundCoreConfig } from "./sound-core.js";
|
|
14
14
|
export { canvasThemeColorsConfig } from "./canvas-theme-colors.js";
|
|
15
15
|
export { surfacePlayAreaConfig } from "./surface-play-area.js";
|
|
16
|
+
export { surfaceStageConfig } from "./surface-stage.js";
|
|
16
17
|
export { worldControlsConfig } from "./world-controls.js";
|
|
17
18
|
export { micCaptureConfig } from "./mic-capture.js";
|
|
18
19
|
export { photoInputConfig } from "./photo-input.js";
|
|
@@ -78,7 +79,7 @@ export { uiTestimonialsConfig } from "./ui-testimonials.js";
|
|
|
78
79
|
export type { LlmConfig, SkillCredential, SkillEgress } from "./types.js";
|
|
79
80
|
export { cueMatches, cueMatchedSkills, type CueCatalogEntry } from "./cues.js";
|
|
80
81
|
export { expandSkills, onSkillMenu, skillGraphProblems, universalSkillNames, type NeedsCatalogEntry } from "./needs.js";
|
|
81
|
-
export declare const allConfigs: readonly [LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig];
|
|
82
|
+
export declare const allConfigs: readonly [LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig, LlmConfig];
|
|
82
83
|
export { mapsConfig } from "./maps.js";
|
|
83
84
|
export declare const SKILL_ALIASES: ReadonlyMap<string, string>;
|
|
84
85
|
export declare function canonicalSkillName(name: string): string;
|
package/llms/index.js
CHANGED
|
@@ -13,6 +13,7 @@ import { imageGenConfig } from "./image-gen.js";
|
|
|
13
13
|
import { soundCoreConfig } from "./sound-core.js";
|
|
14
14
|
import { canvasThemeColorsConfig } from "./canvas-theme-colors.js";
|
|
15
15
|
import { surfacePlayAreaConfig } from "./surface-play-area.js";
|
|
16
|
+
import { surfaceStageConfig } from "./surface-stage.js";
|
|
16
17
|
import { worldControlsConfig } from "./world-controls.js";
|
|
17
18
|
import { micCaptureConfig } from "./mic-capture.js";
|
|
18
19
|
import { photoInputConfig } from "./photo-input.js";
|
|
@@ -89,6 +90,7 @@ export { imageGenConfig } from "./image-gen.js";
|
|
|
89
90
|
export { soundCoreConfig } from "./sound-core.js";
|
|
90
91
|
export { canvasThemeColorsConfig } from "./canvas-theme-colors.js";
|
|
91
92
|
export { surfacePlayAreaConfig } from "./surface-play-area.js";
|
|
93
|
+
export { surfaceStageConfig } from "./surface-stage.js";
|
|
92
94
|
export { worldControlsConfig } from "./world-controls.js";
|
|
93
95
|
export { micCaptureConfig } from "./mic-capture.js";
|
|
94
96
|
export { photoInputConfig } from "./photo-input.js";
|
|
@@ -162,6 +164,7 @@ export const allConfigs = [
|
|
|
162
164
|
webAudioConfig,
|
|
163
165
|
webMusicConfig,
|
|
164
166
|
mediaCaptureConfig,
|
|
167
|
+
surfaceStageConfig,
|
|
165
168
|
d3Config,
|
|
166
169
|
canvasThemeColorsConfig,
|
|
167
170
|
surfacePlayAreaConfig,
|
package/llms/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../jsr/llms/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACp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/p5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const p5Config = {
|
|
2
2
|
name: "p5",
|
|
3
|
-
needs: ["canvas-theme-colors"],
|
|
3
|
+
needs: ["surface-stage", "canvas-theme-colors"],
|
|
4
4
|
label: "p5.js",
|
|
5
5
|
description: "p5.js creative-coding library for 2D canvas and WEBGL sketches: generative art, flow " +
|
|
6
6
|
"fields, particle systems, Perlin noise, seeded deterministic sketches, kaleidoscopes, " +
|
package/llms/p5.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p5.js","sourceRoot":"","sources":["../../jsr/llms/p5.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAc;IACjC,IAAI,EAAE,IAAI;IAEV,KAAK,EAAE,CAAC,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"p5.js","sourceRoot":"","sources":["../../jsr/llms/p5.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAc;IACjC,IAAI,EAAE,IAAI;IAEV,KAAK,EAAE,CAAC,eAAe,EAAE,qBAAqB,CAAC;IAC/C,KAAK,EAAE,OAAO;IACd,WAAW,EACT,uFAAuF;QACvF,wFAAwF;QACxF,sFAAsF;QACtF,wFAAwF;QACxF,0FAA0F;QAC1F,uFAAuF;QACvF,+JAA+J;IACjK,IAAI,EAAE;QACJ,IAAI;QACJ,OAAO;QACP,YAAY;QACZ,QAAQ;QACR,gBAAgB;QAChB,iBAAiB;QACjB,YAAY;QACZ,cAAc;QACd,gBAAgB;QAChB,cAAc;QACd,aAAa;KACd;IAID,YAAY,EAAE,2BAA2B;IACzC,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,SAAS;CACtB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const surfaceStageConfig = {
|
|
2
|
+
name: "surface-stage",
|
|
3
|
+
label: "Stage surface",
|
|
4
|
+
description: "A picture set in the page: the stage drawn in its own medium (Three.js for depth and 3D infographics, SVG for flat, exact and printable, D3 for data-driven layout, canvas for pixels), framed in a Card with kit controls beside it, coloured from the theme, every target reachable by keyboard.",
|
|
5
|
+
menu: false,
|
|
6
|
+
rail: "custom",
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=surface-stage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"surface-stage.js","sourceRoot":"","sources":["../../jsr/llms/surface-stage.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,kBAAkB,GAAc;IAC3C,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,oSAAoS;IACtS,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,QAAQ;CACf,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Surface: the stage, a picture set in the page with the look around it
|
|
2
|
+
|
|
3
|
+
The look dresses the chrome. The picture is a stage of its own, and the chrome sits around it.
|
|
4
|
+
|
|
5
|
+
An app whose subject is a picture has two layers. The stage is the picture itself: a 3D
|
|
6
|
+
infographic, a model turned in the hand, a map of districts, a floor plan, a diagram, a chart of
|
|
7
|
+
its own design. The app draws it in the medium it asks for. The chrome is everything around it:
|
|
8
|
+
the heading, the controls that act on the picture, the records, the share row. The chrome is the
|
|
9
|
+
kit's components, and the stage is drawn shape by shape, so a district keeps its outline, a bar
|
|
10
|
+
keeps its height and a room keeps its proportions to the pixel.
|
|
11
|
+
|
|
12
|
+
**Pick the medium the picture asks for, and reach.**
|
|
13
|
+
|
|
14
|
+
- **Three.js** for depth, motion and anything explored: a voxel world, a scene, a model, and an
|
|
15
|
+
infographic told in 3D, with bars rising off a map, layers pulled apart and a camera that walks
|
|
16
|
+
the story chapter by chapter. It is the most striking stage, so choose it whenever a picture
|
|
17
|
+
can stand up.
|
|
18
|
+
- **SVG** for flat, exact and printable: a district map, a floor plan, a certificate, a chart
|
|
19
|
+
drawn to scale, a figure matched to a reference. Its geometry is data in `viewBox` units, so it
|
|
20
|
+
prints sharp at any size and every shape lands where it was drawn at any width.
|
|
21
|
+
- **D3** to lay out data-driven shapes (scales, force graphs, trees, projections), drawn into SVG.
|
|
22
|
+
- **Canvas** for per-pixel work and simulations.
|
|
23
|
+
|
|
24
|
+
**One component per stage, set as one block.** The stage is its own component (`DistrictMap`,
|
|
25
|
+
`HarborScene`) with its geometry as data at the top of the file. It sits in the page inside a
|
|
26
|
+
`Card` with a `Heading` and a muted caption, or at the column's full width. A fixed aspect box
|
|
27
|
+
holds the layout while it draws, and every control that acts on it is a component in a `Row`
|
|
28
|
+
beside it: the picker, the year, Reset, Save.
|
|
29
|
+
|
|
30
|
+
```jsx
|
|
31
|
+
<Card>
|
|
32
|
+
<Stack gap={3}>
|
|
33
|
+
<Heading level={2}>Harbor traffic, 2015 to 2025</Heading>
|
|
34
|
+
<div ref={mountRef} className="w-full aspect-video overflow-hidden select-none touch-none" />
|
|
35
|
+
<Row gap={2} wrap>
|
|
36
|
+
<Segmented label="Chapter" tone="info" value={chapter} onChange={setChapter} options={CHAPTER_OPTIONS} />
|
|
37
|
+
<Button variant="quiet" onClick={reset}>Reset view</Button>
|
|
38
|
+
</Row>
|
|
39
|
+
<Text size="sm" muted>
|
|
40
|
+
Drag to turn the harbor. Each chapter flies the camera to its part of the story.
|
|
41
|
+
</Text>
|
|
42
|
+
</Stack>
|
|
43
|
+
</Card>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**The stage wears the theme's colours.** SVG fills and strokes are theme utility classes:
|
|
47
|
+
`fill-card`, `fill-muted`, `fill-primary`, `fill-accent`, `fill-foreground`, `stroke-border`,
|
|
48
|
+
`stroke-foreground`. Two sides of a story are two of those tokens, and the legend beside the
|
|
49
|
+
stage draws its swatches with the same classes. A canvas or WebGL stage paints from the same
|
|
50
|
+
tokens resolved to colours when it mounts, so a palette change recolours every stage while its
|
|
51
|
+
shapes hold.
|
|
52
|
+
|
|
53
|
+
**Every target is reachable by touch and keyboard.** A shape the person taps in SVG is a labelled
|
|
54
|
+
group with `onClick` and an Enter/Space `onKeyDown` that calls `preventDefault()` first, and the
|
|
55
|
+
`<svg>` carries `touch-manipulation select-none`:
|
|
56
|
+
|
|
57
|
+
```jsx
|
|
58
|
+
const DISTRICTS = [
|
|
59
|
+
{ id: "d1", name: "Riverside", d: "M0 0 H120 V80 H60 V140 H0 Z" },
|
|
60
|
+
{ id: "d2", name: "Hilltop", d: "M120 0 H240 V140 H60 V80 H120 Z" },
|
|
61
|
+
];
|
|
62
|
+
function DistrictMap({ colors, onPick }) {
|
|
63
|
+
const fillOf = (id) => (colors[id] === "a" ? "fill-primary" : colors[id] === "b" ? "fill-accent" : "fill-muted");
|
|
64
|
+
return (
|
|
65
|
+
<svg viewBox="0 0 240 140" className="w-full h-auto touch-manipulation select-none" role="group" aria-label="District map">
|
|
66
|
+
{DISTRICTS.map((d) => (
|
|
67
|
+
<g
|
|
68
|
+
key={d.id}
|
|
69
|
+
role="button"
|
|
70
|
+
tabIndex={0}
|
|
71
|
+
aria-label={d.name}
|
|
72
|
+
onClick={() => onPick(d.id)}
|
|
73
|
+
onKeyDown={(e) => {
|
|
74
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
75
|
+
e.preventDefault();
|
|
76
|
+
onPick(d.id);
|
|
77
|
+
}
|
|
78
|
+
}}
|
|
79
|
+
>
|
|
80
|
+
<path d={d.d} strokeWidth="2" className={fillOf(d.id) + " stroke-foreground"} />
|
|
81
|
+
</g>
|
|
82
|
+
))}
|
|
83
|
+
</svg>
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
A pick inside a 3D or canvas stage is offered beside it as well, as a `Select` or `Segmented`
|
|
89
|
+
of the same items, so every choice is one keyboard press away.
|
|
90
|
+
|
|
91
|
+
**A picture made to print stays SVG.** A map handout, a certificate or a poster is SVG with a
|
|
92
|
+
`viewBox`, and a 3D stage the person wants on paper offers a flat SVG view beside it.
|
package/llms/three-js.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export const threeJsConfig = {
|
|
2
2
|
name: "three-js",
|
|
3
|
+
needs: ["surface-stage"],
|
|
3
4
|
label: "Three.js",
|
|
4
|
-
description: "Three.js 3D graphics library for WebGL rendering: mesh geometry, materials, lighting, animation, cameras, textures, GLSL shaders, GLTF/OBJ/FBX model loading, physics, particle systems, post-processing, visual effects, 3js. Anything played or steered also loads touch-games for phone controls; a place the person walks through as a player (a garden, house, museum or cave, first-person) also loads world-controls, and a model turned, spun or orbited on its own (a product viewer, a globe) stays three-js",
|
|
5
|
-
cues: ["3d", "three.js", "threejs", "3js", "webgl", "shader", "shaders", "mesh", "gltf", "3d model", "3d scene"],
|
|
5
|
+
description: "Three.js 3D graphics library for WebGL rendering: mesh geometry, materials, lighting, animation, cameras, textures, GLSL shaders, GLTF/OBJ/FBX model loading, physics, particle systems, post-processing, visual effects, 3js, and 3D infographics told chapter by chapter with bars rising off a map or timeline. Anything played or steered also loads touch-games for phone controls; a place the person walks through as a player (a garden, house, museum or cave, first-person) also loads world-controls, and a model turned, spun or orbited on its own (a product viewer, a globe) stays three-js",
|
|
6
|
+
cues: ["3d", "three.js", "3d infographic", "infographic", "threejs", "3js", "webgl", "shader", "shaders", "mesh", "gltf", "3d model", "3d scene"],
|
|
6
7
|
importModule: "three",
|
|
7
8
|
importName: "THREE",
|
|
8
9
|
importType: "namespace",
|
package/llms/three-js.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"three-js.js","sourceRoot":"","sources":["../../jsr/llms/three-js.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAc;IACtC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,UAAU;IACjB,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"three-js.js","sourceRoot":"","sources":["../../jsr/llms/three-js.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAc;IACtC,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,CAAC,eAAe,CAAC;IACxB,KAAK,EAAE,UAAU;IACjB,WAAW,EACT,4kBAA4kB;IAC9kB,IAAI,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,gBAAgB,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,CAAC;IACjJ,YAAY,EAAE,OAAO;IACrB,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,WAAW;CACxB,CAAC"}
|
package/llms/three-js.md
CHANGED
|
@@ -99,23 +99,52 @@ The lens follows the screen: set the camera's aspect from the canvas on every re
|
|
|
99
99
|
An overview camera that orbits the scene keeps its own distance: scale the radius by
|
|
100
100
|
`0.36 / (tan(fov / 2) · aspect)`, clamped to 1–2.2×, so the whole scene stays in frame upright.
|
|
101
101
|
|
|
102
|
-
When the person asks for a smaller view
|
|
103
|
-
viewer beside a form
|
|
102
|
+
When the person asks for a smaller view (a model on a product page, a scene inside a card, a
|
|
103
|
+
viewer beside a form, an infographic in an article), the scene becomes a stage set in the page:
|
|
104
|
+
a mount box in a `Card` with the page's controls around it, framed the way the stage surface
|
|
105
|
+
above shows. Size the renderer from the box (`mount.clientWidth`, `mount.clientHeight`) and watch
|
|
106
|
+
it with a `ResizeObserver`, since the box changes size without the window resizing.
|
|
104
107
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
108
|
+
## An infographic in 3D
|
|
109
|
+
|
|
110
|
+
A story told with numbers stands up in 3D: each value is a bar, a tower or a slab rising off a
|
|
111
|
+
ground plane, a map or a timeline, and the camera walks the story one chapter at a time. Build
|
|
112
|
+
the bars from the data, ease each one to its height so a change of year grows the scene, and fly
|
|
113
|
+
the camera between named viewpoints; the chapter control lives in the page beside the stage.
|
|
114
|
+
|
|
115
|
+
```javascript
|
|
116
|
+
// One bar per row: x along the ground, height from the value, colour from the series.
|
|
117
|
+
function buildBars(scene, rows, colors) {
|
|
118
|
+
const max = Math.max(...rows.map((r) => r.value));
|
|
119
|
+
const geometry = new THREE.BoxGeometry(0.8, 1, 0.8);
|
|
120
|
+
geometry.translate(0, 0.5, 0); // grow up from the ground, not out from the middle
|
|
121
|
+
return rows.map((r, i) => {
|
|
122
|
+
const bar = new THREE.Mesh(geometry, new THREE.MeshStandardMaterial({ color: colors[r.series] }));
|
|
123
|
+
bar.position.set((i - rows.length / 2) * 1.2, 0, r.depth ?? 0);
|
|
124
|
+
bar.scale.y = 0.001;
|
|
125
|
+
bar.userData = { id: r.id, target: (r.value / max) * 6 };
|
|
126
|
+
scene.add(bar);
|
|
127
|
+
return bar;
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// Named viewpoints; the page's chapter control sets `chapter`, and the loop eases toward it.
|
|
132
|
+
const CHAPTERS = {
|
|
133
|
+
overview: { eye: new THREE.Vector3(0, 9, 14), look: new THREE.Vector3(0, 2, 0) },
|
|
134
|
+
peak: { eye: new THREE.Vector3(4, 5, 6), look: new THREE.Vector3(3, 4, 0) },
|
|
135
|
+
};
|
|
136
|
+
function stepStory(bars, camera, focus, chapter, dt) {
|
|
137
|
+
const k = 1 - Math.exp(-dt * 4); // frame-rate independent easing
|
|
138
|
+
for (const bar of bars) bar.scale.y += (bar.userData.target - bar.scale.y) * k;
|
|
139
|
+
camera.position.lerp(CHAPTERS[chapter].eye, k);
|
|
140
|
+
focus.lerp(CHAPTERS[chapter].look, k);
|
|
141
|
+
camera.lookAt(focus);
|
|
142
|
+
}
|
|
115
143
|
```
|
|
116
144
|
|
|
117
|
-
|
|
118
|
-
|
|
145
|
+
A new year or filter only changes each bar's `userData.target`, so the scene grows into the new
|
|
146
|
+
numbers instead of rebuilding. Values read as labels in the page beside the stage, and a tapped
|
|
147
|
+
bar (picked as in _Picking things in the scene_) shows its row there too.
|
|
119
148
|
|
|
120
149
|
## Touch controls on a phone
|
|
121
150
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/prompts",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.255",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"exports": {
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@adviser/cement": "~0.5.34",
|
|
42
|
-
"@vibes.diy/api-types": "14.3.
|
|
43
|
-
"@vibes.diy/call-ai-v2": "14.3.
|
|
44
|
-
"@vibes.diy/identity": "14.3.
|
|
45
|
-
"@vibes.diy/use-vibes-types": "14.3.
|
|
42
|
+
"@vibes.diy/api-types": "14.3.255",
|
|
43
|
+
"@vibes.diy/call-ai-v2": "14.3.255",
|
|
44
|
+
"@vibes.diy/identity": "14.3.255",
|
|
45
|
+
"@vibes.diy/use-vibes-types": "14.3.255",
|
|
46
46
|
"arktype": "~2.2.8",
|
|
47
47
|
"json-schema-faker": "~0.6.3"
|
|
48
48
|
},
|
|
@@ -96,6 +96,7 @@ export default function App() {
|
|
|
96
96
|
- **Form controls take the new value itself**: `<Input value={title} onChange={setTitle} />`, never `e.target.value`, each inside a `Field` that hands it `id` and `describedBy`.
|
|
97
97
|
- **The named interaction works end to end**: the person's sentence names it, and the app builds that and only that, with realistic data. Sharing, invitations, roles, scheduled jobs, emails and outside services come in a later pass, and so does the line about who can see the data, which sits beside the share control that pass adds; the title, subtitle and hero say what the app is for.
|
|
98
98
|
- **Seed content** is realistic and specific to the app's world, with a `key` per item and the exact fields the app reads.
|
|
99
|
+
- **The picture is its own stage.** The components are the app's chrome. When the subject is a picture — a voxel world, a 3D infographic, a map, a floor plan, a diagram, an illustration — it is one contained stage in its own component: Three.js for depth, motion and anything explored (the most striking, reach for it), SVG for flat, exact or printable pictures (geometry as data in a `viewBox`, fills and strokes theme classes such as `fill-primary` and `stroke-foreground`), D3 for data-driven layout into SVG. It sits inside a `Card` or at full width, with the components' controls around it; a tappable SVG shape is a `<g role="button" tabIndex={0} aria-label="…">` with `onClick` and an Enter/Space `onKeyDown` that calls `preventDefault()` before acting.
|
|
99
100
|
- **Layout comes from the components** (`Stack`, `Row`, `Grid`, `Card`) and their `tone`, `size` and `variant` props; plain spacing like `p-6` sits on your own wrapping elements only. The look brief below says how the page is composed.
|
|
100
101
|
- **A bar fixed to the bottom of the screen — a tab bar, a nav, a save bar — rides above the platform's controls**, so every tab and button on it stays tappable: `BottomNav` sits there by itself, and a bar of your own puts `bottom: 'var(--vibes-controls-inset, 0px)'` in its `style` instead of using `bottom-0`.
|
|
101
102
|
- **Tapping a person opens their profile**: `<ViewerTag userHandle={m.userHandle} onClick={() => setProfile(m.userHandle)} />` binds the handle the tag shows, and a hero header is `<ViewerTag userHandle={profile} size={120} avatarOnly />` — the tag itself is the button, drawn natively. Opening a profile follows nobody.
|
|
@@ -17,7 +17,8 @@ You are an AI assistant tasked with creating React components. You should create
|
|
|
17
17
|
- Don't use any TypeScript, just use JavaScript
|
|
18
18
|
- Use Tailwind CSS for mobile-first accessible styling. Every class is a plain utility the theme already backs — `bg-background`, `text-foreground`, `text-muted-foreground`, `p-6`, `gap-4`, `grid-cols-7`, `min-h-screen`. Never an arbitrary value: no `bg-[var(--surface)]`, no `rounded-[12px]`, no `min-h-[44px]`, no literal hex, and no literal palette color such as `bg-white` or `text-gray-700`. Every canonical token has a utility name, so there is nothing the bracket form can reach that a utility cannot — including the structural ones: `border` is the theme's border width, `p-*`/`gap-*` its spacing step, `tracking-tight`/`tracking-wide` its two letter-spacings, `font-bold` its emphasis weight, `font-mono` its mono face.
|
|
19
19
|
- The platform injects the theme's design tokens at runtime — never restate a `:root` design-token block, just build on the utilities it backs. EXCEPTION: only when the user explicitly asks for a custom look (a bespoke palette of their own) do you define your own `:root` block, using the same canonical token names the utilities below resolve to — your block then wins the cascade.
|
|
20
|
-
- **The look is the component package's, and the app commits to it.** The look brief below names the components and how a view is composed; every surface, control and run of words
|
|
20
|
+
- **The look is the component package's, and the app commits to it.** The look brief below names the components and how a view is composed; every surface, control and run of words in the app's chrome is one of them, and each arrives wearing its surface, ink, corner, shadow, type and press (a `Card` already wears `bg-card`; a `Button` already sinks). What you write yourself is placement: the layout primitives the brief names (`Stack`, `Row`, `Grid`), and plain wrapping elements that carry spacing and arrangement utilities only (`p-6`, `gap-4`, `grid grid-cols-7`, `max-w-lg mx-auto`, `min-h-screen`). The page root wears `bg-background text-foreground` once; genuine metadata — a timestamp, a count, a helper line — reads as the package's muted text. Anything that floats — a modal, a sheet, a confirm, a menu, a tooltip, a toast — is the package's own floating component, which brings its scrim and its opaque surface with it, so it goes in bare. A panel you paint to float yourself is opaque too: `bg-popover text-popover-foreground`, the floating component's own surface and never a card's, because a card surface is often translucent and the popover pair is that same colour made opaque, so text over a scrim stays readable in dark mode.
|
|
21
|
+
- **The look dresses the chrome; a picture is its own stage.** The component package and every look it wears are made for the app's chrome: headings, controls, cards, forms, records and anything that floats. When the app's subject is a picture — a voxel world, a 3D infographic, a model, a map of districts, a floor plan, a diagram, an illustration, a figure matched to a reference — that picture is one contained stage the app draws itself in its own component, set inside a `Card` or at full width, with the package's components as the controls around it. Pick the medium the picture asks for, and reach: Three.js for depth, motion and anything explored, the most striking stage and the one to choose whenever a picture can stand up (a 3D infographic included); SVG for flat, exact and printable pictures; D3 for data-driven layout drawn into SVG; canvas for pixels and simulations. The stage keeps its own geometry as data, so every shape lands where it was drawn, and it wears the theme's colours: an SVG stage's fills and strokes are theme classes (`fill-muted`, `fill-primary`, `fill-accent`, `stroke-foreground`), and a tappable SVG shape is a `<g role="button" tabIndex={0} aria-label="…">` with `onClick` and an Enter/Space `onKeyDown` that calls `preventDefault()` first. The stage surface that loads with the three-js, d3 and p5 skills carries the full recipe.
|
|
21
22
|
- **Hierarchy: one lead per view.** Each view opens with one level-1 heading that names its job, carries exactly one lead action in the look's lead tone, and keeps every other button quiet or in the tone that states its meaning. Section headings are short and bold, body copy stays at `text-base` or larger, spacing comes off the scale (`p-3`, `p-6`, `gap-4`, `gap-6`, `space-y-6`, `mt-8`), and a list is one raised row component per item (`RowCard`), each item its own object rather than a strip cut by dividers. Density follows the records: the first screen shows the records at the size the view draws them, a few rich cards or a handful of compact rows, with one compact add control above them once records exist. A quiet button is quiet, not faint: it keeps the package's edge, corner, press and label, so nothing reads as unstyled text.
|
|
22
23
|
- Define a classNames object for the PLAIN elements you write yourself (e.g. `const c = { page: 'min-h-screen bg-background text-foreground p-6', section: 'flex flex-col gap-6', meta: 'text-muted-foreground' }`) just before the JSX return, then use them like `className={c.page}`. Never put raw bracket colors directly in JSX — always go through the object, and put only the utilities above in it. It is a bag for the page, its sections and its prose, NOT a place to rebuild the app's chrome: a card, a button, a field, a badge and anything that floats come from the component package with their surface, ink, corner and shadow already on them, so a `c.card` or `c.action` entry is a hand-rolled copy of something you were given.
|
|
23
24
|
- Give custom semantic CSS hooks app-specific names, such as `peal-ring` or `ringcol` for a bell-rope column. Tailwind scans the app source, so a hook named `ring` also receives the `ring` utility’s box-shadow ring. Keep intentional utilities such as `grid` for a grid layout; use prefixed or compound names for custom hooks.
|
package/system-prompt-initial.md
CHANGED
|
@@ -17,7 +17,8 @@ You are an AI assistant tasked with creating React components. You should create
|
|
|
17
17
|
- Don't use any TypeScript, just use JavaScript
|
|
18
18
|
- Use Tailwind CSS for mobile-first accessible styling. Every class is a plain utility the theme already backs — `bg-background`, `text-foreground`, `text-muted-foreground`, `p-6`, `gap-4`, `grid-cols-7`, `min-h-screen`. Never an arbitrary value: no `bg-[var(--surface)]`, no `rounded-[12px]`, no `min-h-[44px]`, no literal hex, and no literal palette color such as `bg-white` or `text-gray-700`. Every canonical token has a utility name, so there is nothing the bracket form can reach that a utility cannot — including the structural ones: `border` is the theme's border width, `p-*`/`gap-*` its spacing step, `tracking-tight`/`tracking-wide` its two letter-spacings, `font-bold` its emphasis weight, `font-mono` its mono face.
|
|
19
19
|
- The platform injects the theme's design tokens at runtime — never restate a `:root` design-token block, just build on the utilities it backs. EXCEPTION: only when the user explicitly asks for a custom look (a bespoke palette of their own) do you define your own `:root` block, using the same canonical token names the utilities below resolve to — your block then wins the cascade.
|
|
20
|
-
- **The look is the component package's, and the app commits to it.** The look brief below names the components and how a view is composed; every surface, control and run of words
|
|
20
|
+
- **The look is the component package's, and the app commits to it.** The look brief below names the components and how a view is composed; every surface, control and run of words in the app's chrome is one of them, and each arrives wearing its surface, ink, corner, shadow, type and press (a `Card` already wears `bg-card`; a `Button` already sinks). What you write yourself is placement: the layout primitives the brief names (`Stack`, `Row`, `Grid`), and plain wrapping elements that carry spacing and arrangement utilities only (`p-6`, `gap-4`, `grid grid-cols-7`, `max-w-lg mx-auto`, `min-h-screen`). The page root wears `bg-background text-foreground` once; genuine metadata — a timestamp, a count, a helper line — reads as the package's muted text. Anything that floats — a modal, a sheet, a confirm, a menu, a tooltip, a toast — is the package's own floating component, which brings its scrim and its opaque surface with it, so it goes in bare. A panel you paint to float yourself is opaque too: `bg-popover text-popover-foreground`, the floating component's own surface and never a card's, because a card surface is often translucent and the popover pair is that same colour made opaque, so text over a scrim stays readable in dark mode.
|
|
21
|
+
- **The look dresses the chrome; a picture is its own stage.** The component package and every look it wears are made for the app's chrome: headings, controls, cards, forms, records and anything that floats. When the app's subject is a picture — a voxel world, a 3D infographic, a model, a map of districts, a floor plan, a diagram, an illustration, a figure matched to a reference — that picture is one contained stage the app draws itself in its own component, set inside a `Card` or at full width, with the package's components as the controls around it. Pick the medium the picture asks for, and reach: Three.js for depth, motion and anything explored, the most striking stage and the one to choose whenever a picture can stand up (a 3D infographic included); SVG for flat, exact and printable pictures; D3 for data-driven layout drawn into SVG; canvas for pixels and simulations. The stage keeps its own geometry as data, so every shape lands where it was drawn, and it wears the theme's colours: an SVG stage's fills and strokes are theme classes (`fill-muted`, `fill-primary`, `fill-accent`, `stroke-foreground`), and a tappable SVG shape is a `<g role="button" tabIndex={0} aria-label="…">` with `onClick` and an Enter/Space `onKeyDown` that calls `preventDefault()` first. The stage surface that loads with the three-js, d3 and p5 skills carries the full recipe.
|
|
21
22
|
- **Hierarchy: one lead per view.** Each view opens with one level-1 heading that names its job, carries exactly one lead action in the look's lead tone, and keeps every other button quiet or in the tone that states its meaning. Section headings are short and bold, body copy stays at `text-base` or larger, spacing comes off the scale (`p-3`, `p-6`, `gap-4`, `gap-6`, `space-y-6`, `mt-8`), and a list is one raised row component per item (`RowCard`), each item its own object rather than a strip cut by dividers. Density follows the records: the first screen shows the records at the size the view draws them, a few rich cards or a handful of compact rows, with one compact add control above them once records exist. A quiet button is quiet, not faint: it keeps the package's edge, corner, press and label, so nothing reads as unstyled text.
|
|
22
23
|
- Define a classNames object for the PLAIN elements you write yourself (e.g. `const c = { page: 'min-h-screen bg-background text-foreground p-6', section: 'flex flex-col gap-6', meta: 'text-muted-foreground' }`) just before the JSX return, then use them like `className={c.page}`. Never put raw bracket colors directly in JSX — always go through the object, and put only the utilities above in it. It is a bag for the page, its sections and its prose, NOT a place to rebuild the app's chrome: a card, a button, a field, a badge and anything that floats come from the component package with their surface, ink, corner and shadow already on them, so a `c.card` or `c.action` entry is a hand-rolled copy of something you were given.
|
|
23
24
|
- Give custom semantic CSS hooks app-specific names, such as `peal-ring` or `ringcol` for a bell-rope column. Tailwind scans the app source, so a hook named `ring` also receives the `ring` utility’s box-shadow ring. Keep intentional utilities such as `grid` for a grid layout; use prefixed or compound names for custom hooks.
|
package/system-prompt.md
CHANGED
|
@@ -17,7 +17,8 @@ You are an AI assistant tasked with creating React components. You should create
|
|
|
17
17
|
- Don't use any TypeScript, just use JavaScript
|
|
18
18
|
- Use Tailwind CSS for mobile-first accessible styling. Every class is a plain utility the theme already backs — `bg-background`, `text-foreground`, `text-muted-foreground`, `p-6`, `gap-4`, `grid-cols-7`, `min-h-screen`. Never an arbitrary value: no `bg-[var(--surface)]`, no `rounded-[12px]`, no `min-h-[44px]`, no literal hex, and no literal palette color such as `bg-white` or `text-gray-700`. Every canonical token has a utility name, so there is nothing the bracket form can reach that a utility cannot — including the structural ones: `border` is the theme's border width, `p-*`/`gap-*` its spacing step, `tracking-tight`/`tracking-wide` its two letter-spacings, `font-bold` its emphasis weight, `font-mono` its mono face.
|
|
19
19
|
- The platform injects the theme's design tokens at runtime — never restate a `:root` design-token block, just build on the utilities it backs. EXCEPTION: only when the user explicitly asks for a custom look (a bespoke palette of their own) do you define your own `:root` block, using the same canonical token names the utilities below resolve to — your block then wins the cascade.
|
|
20
|
-
- **The look is the component package's, and the app commits to it.** The look brief below names the components and how a view is composed; every surface, control and run of words
|
|
20
|
+
- **The look is the component package's, and the app commits to it.** The look brief below names the components and how a view is composed; every surface, control and run of words in the app's chrome is one of them, and each arrives wearing its surface, ink, corner, shadow, type and press (a `Card` already wears `bg-card`; a `Button` already sinks). What you write yourself is placement: the layout primitives the brief names (`Stack`, `Row`, `Grid`), and plain wrapping elements that carry spacing and arrangement utilities only (`p-6`, `gap-4`, `grid grid-cols-7`, `max-w-lg mx-auto`, `min-h-screen`). The page root wears `bg-background text-foreground` once; genuine metadata — a timestamp, a count, a helper line — reads as the package's muted text. Anything that floats — a modal, a sheet, a confirm, a menu, a tooltip, a toast — is the package's own floating component, which brings its scrim and its opaque surface with it, so it goes in bare. A panel you paint to float yourself is opaque too: `bg-popover text-popover-foreground`, the floating component's own surface and never a card's, because a card surface is often translucent and the popover pair is that same colour made opaque, so text over a scrim stays readable in dark mode.
|
|
21
|
+
- **The look dresses the chrome; a picture is its own stage.** The component package and every look it wears are made for the app's chrome: headings, controls, cards, forms, records and anything that floats. When the app's subject is a picture — a voxel world, a 3D infographic, a model, a map of districts, a floor plan, a diagram, an illustration, a figure matched to a reference — that picture is one contained stage the app draws itself in its own component, set inside a `Card` or at full width, with the package's components as the controls around it. Pick the medium the picture asks for, and reach: Three.js for depth, motion and anything explored, the most striking stage and the one to choose whenever a picture can stand up (a 3D infographic included); SVG for flat, exact and printable pictures; D3 for data-driven layout drawn into SVG; canvas for pixels and simulations. The stage keeps its own geometry as data, so every shape lands where it was drawn, and it wears the theme's colours: an SVG stage's fills and strokes are theme classes (`fill-muted`, `fill-primary`, `fill-accent`, `stroke-foreground`), and a tappable SVG shape is a `<g role="button" tabIndex={0} aria-label="…">` with `onClick` and an Enter/Space `onKeyDown` that calls `preventDefault()` first. The stage surface that loads with the three-js, d3 and p5 skills carries the full recipe.
|
|
21
22
|
- **Hierarchy: one lead per view.** Each view opens with one level-1 heading that names its job, carries exactly one lead action in the look's lead tone, and keeps every other button quiet or in the tone that states its meaning. Section headings are short and bold, body copy stays at `text-base` or larger, spacing comes off the scale (`p-3`, `p-6`, `gap-4`, `gap-6`, `space-y-6`, `mt-8`), and a list is one raised row component per item (`RowCard`), each item its own object rather than a strip cut by dividers. Density follows the records: the first screen shows the records at the size the view draws them, a few rich cards or a handful of compact rows, with one compact add control above them once records exist. A quiet button is quiet, not faint: it keeps the package's edge, corner, press and label, so nothing reads as unstyled text.
|
|
22
23
|
- Define a classNames object for the PLAIN elements you write yourself (e.g. `const c = { page: 'min-h-screen bg-background text-foreground p-6', section: 'flex flex-col gap-6', meta: 'text-muted-foreground' }`) just before the JSX return, then use them like `className={c.page}`. Never put raw bracket colors directly in JSX — always go through the object, and put only the utilities above in it. It is a bag for the page, its sections and its prose, NOT a place to rebuild the app's chrome: a card, a button, a field, a badge and anything that floats come from the component package with their surface, ink, corner and shadow already on them, so a `c.card` or `c.action` entry is a hand-rolled copy of something you were given.
|
|
23
24
|
- Give custom semantic CSS hooks app-specific names, such as `peal-ring` or `ringcol` for a bell-rope column. Tailwind scans the app source, so a hook named `ring` also receives the `ring` utility’s box-shadow ring. Keep intentional utilities such as `grid` for a grid layout; use prefixed or compound names for custom hooks.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
This look is a room full of cushions. `@vibes.diy/ui` ships every surface, control and layout this look needs, each carrying the cushion, the corner, the ink and the press. An app is composed from those components and their props; the room's colours arrive through them, so a palette change restyles the app without a line of it changing.
|
|
1
|
+
This look is a room full of cushions. `@vibes.diy/ui` ships every surface, control and layout this look needs, each carrying the cushion, the corner, the ink and the press. An app is composed from those components and their props; the room's colours arrive through them, so a palette change restyles the app without a line of it changing. They are the chrome: a 3D scene, map or diagram is its own stage, set in a `Card`.
|
|
2
2
|
|
|
3
3
|
## Composition
|
|
4
4
|
|
|
@@ -114,7 +114,7 @@ Every control below exists; use it, never a hand-built element.
|
|
|
114
114
|
|
|
115
115
|
What the lines above leave out:
|
|
116
116
|
|
|
117
|
-
- A grid of
|
|
117
|
+
- A grid of equal cells to tap (a week, a month's dates, a crossword, a keypad, a swatch) is a grid `div` of square `IconButton`s; seven across is `grid-cols-7`, never a `Row`. Each cell wears its state as props (`variant="solid"` on, `"quiet"` off, a meaning `tone`, `aria-pressed`) with its own `label`, and its face is an `Icon`, number or glyph. `Button` and `IconButton` pass native props through, so a held key takes `onPointerDown` and `onPointerUp`. A colour from data goes in `tint={block.color}`; the button picks readable text.
|
|
118
118
|
- Every `icon` prop (`NavLink`, `IconTile`, `Stat`, nav, menu and option items) takes one of `Icon`'s names above, or an element. A sectioned app:
|
|
119
119
|
|
|
120
120
|
```jsx
|