@tfrc/foundation
v1.1.0
Published
Color ramps, spacing base, reset, and the token contract. No user-facing components. Consumed by @tfrc/marketing and @tfrc/product — never the other way around.
Maintainers
Readme
@tfrc/foundation
Ships no user-facing CSS directly. Consumed by @tfrc/marketing and
@tfrc/product, and therefore installed transitively by every consumer —
which is why the consumer-side checker lives here rather than in a fourth
package (decisions/0009.md).
Contains:
bin/tfrc-verify.js— the check a consumer runs on itself, vianpx tfrc-verify. Enforces one-dialect-only, pinned versions, no raw color values, and the reserved gain/loss colors, in repositories this one cannot see. Tested byscripts/test-verify-consumer.js.src/palettes/meridian.css— the active v1 palette (raw ramps only)src/palettes/{lilac,meadow,daylight}.css— designed alternates, not wired into any shipped package. Seedecisions/0003.md.src/base.css— reset, focus-visible, reduced-motion, the 4px spacing scale, and shared easing curve shapes (not durations — those diverge per package, seedecisions/0004.md).src/index.css— imports the active palette + base, in that order.
Does not contain semantic tokens (--color-accent and friends) or any
component. See CONTRACT.md for what every consumer must define, and
decisions/0004-token-contract-not-shared-values.md for why the contract
lives here but the values don't.
To change the active palette, do not edit this package — point
@tfrc/marketing's and @tfrc/product's tokens.css imports at a different
palette file, and update STATE.md.
