# prop-for-that

what JS knows, now CSS knows

Canonical page: https://www.reposhelf.co.uk/projects/github/argyleink/prop-for-that.html

- Project ID: argyleink/prop-for-that
- Source: GitHub
- Original project: https://github.com/argyleink/prop-for-that
- Description attribution: project author metadata
- Categories: Design
- Technologies: Not recorded
- Licence: MIT
- Repository availability checked: 2026-11-03T01:27:37.093Z
- Demo page loaded: 2026-11-16T12:36:30.435Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> Expose what JavaScript knows but CSS can't see — as live CSS custom properties.

> Sliders, pointer position, element visibility, viewport size, battery, network, sensors — JavaScript can read all of it; CSS can't. prop-for-that writes that runtime state into --live- and --const- custom properties — batched and diffed down to one setProperty per frame — so your CSS can compose and react to it with plain calc\(\) and var\(\).

> Zero dependencies. TypeScript. ESM + CJS. SSR-safe.

- CSS does the work. No per-element event handlers or render loops — bind once, compose in stylesheets.
- Fast by design. One requestAnimationFrame flush per frame — idle when nothing changes, frozen while the tab is hidden — plus write-on-change diffing and a single shared ResizeObserver / IntersectionObserver for the…
- Ship only what you use. Four lightweight core sources are built in; everything else is an opt-in, tree-shakeable plugin — and under auto each plugin loads on demand, the moment a data-props-for attribute asks for it.
- Plays with the platform. Opt into typed @property values for interpolation, or FOUC-safe constants written before first paint.
- Tiny and dependency-free, in every bundle format.

## Author-documented requirements and audience

> Expose what JavaScript knows but CSS can't see — as live CSS custom properties.





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/argyleink/prop-for-that/blob/main/README.md

Extraction checked: 2026-10-29T13:30:07.715Z

Last recorded source update: 2026-07-25T22:36:17.000Z

Saved release: v0.7.12 — 2026-07-25T22:36:20.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=argyleink%2Fprop-for-that). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
