tokens 0.1.0
tokens: ^0.1.0 copied to clipboard
A constraint-checked design token substrate for Flutter. One import, one access point — context.x — zero design decisions in screen code.
0.1.0 #
Initial release.
TokenScopewidget — wrap once at app root.context.xextension — all tokens from anyBuildContext.- Color tokens with automatic light/dark/high-contrast resolution.
- WCAG 2.1 AA contrast enforcement via
TokenPalette. - Modular Major Third type scale (6 steps, base 16dp).
- 4dp spacing rhythm (6 steps).
- Non-linear motion tokens with physically ordered durations.
- Elevation scale (4 steps).
contrastRatioandmeetsWcagAAutilities exposed for manual checks.