Files
s41r4j-pixie/resources/README.md
T
s41r4jandClaude Opus 5.5 c7df33ddc2 Apply blueprint theme tokens and add a local media pack
- resources/theme.json with the BUILD-SPEC §8 tokens, served to the UI as CSS vars
- restyle panel and setup: near-black chrome, glass rows, paper note, gel orb
- app prefers a per-user local pack in Application Support over bundled media
- scripts/local-assets.mjs builds that pack (never writes to the repo)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 02:20:05 +05:30

36 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# resources/
All media is loaded by **slot name** through `manifest.json`; code never hardcodes a path.
```jsonc
"sounds": {
"badge-pop": { "files": ["sounds/badge-pop-1.wav", "…-2", "…-3"], "gain": 0.8, "category": "ui" },
"pencil-paper-bed": { "files": ["…"], "category": "ambient", "bed": true }
}
```
- `files`: one or more variants (sounds pick one at random; icons/fonts/videos use the first).
- `gain`: per-slot gain (0–2), multiplied by the category gain (`ui`, `agent`, `ambient`) and master.
- `bed`: long looping sound; only one bed plays at a time.
## Replacing media
Drop a file at the same path (or point the manifest at a new one). No code changes.
Every file here is an original placeholder generated by `npm run placeholders`
(`scripts/gen-placeholders.mjs`): synthesized tones/noise, drawn gradient icons, a blank
2 s clip. The script never overwrites existing files. Fonts are the upstream OFL releases
(Barlow, Patrick Hand) from github.com/google/fonts, licences in `fonts/OFL-*.txt`.
Do not copy media from other products into this folder; use originals or CC0 sources.
## Theme
`theme.json` holds the design tokens (BUILD-SPEC §8). The UI reads it at startup and sets
them as CSS custom properties (`colors.ink` → `--ink`, `draw.sky` → `--draw-sky`).
## Local pack
`npm run assets:local` copies media you have locally into
`~/Library/Application Support/com.openclicky.app/resources`, which the app loads before
these files. Use it for private testing; it never touches this folder.