tokens 0.1.0 copy "tokens: ^0.1.0" to clipboard
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.

  • TokenScope widget — wrap once at app root.
  • context.x extension — all tokens from any BuildContext.
  • 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).
  • contrastRatio and meetsWcagAA utilities exposed for manual checks.
0
likes
150
points
0
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A constraint-checked design token substrate for Flutter. One import, one access point — context.x — zero design decisions in screen code.

Repository (GitHub)

License

MIT (license)

Dependencies

flutter

More

Packages that depend on tokens