design_token_lints 0.1.2
design_token_lints: ^0.1.2 copied to clipboard
Enforce your Flutter design system: flag raw colors, magic spacing, inline text styles and off-system widgets, auto-fix to your own tokens, and measure design-system coverage.
0.1.2 #
- README: a shorter introduction, a table of contents, a getting-started section with requirements, a link to the example app, a comparison with related tools, and a grouped roadmap.
- Add a pub.dev screenshot of the quick fix.
0.1.1 #
- Fix the README on pub.dev: the demo GIF, the video links and the license links now use absolute URLs, so they render outside GitHub.
0.1.0 #
First release.
- Six analyzer rules, on by default once the matching tokens are configured:
avoid_raw_color,avoid_magic_spacing,avoid_raw_radius,avoid_inline_text_style,avoid_raw_shadowandprefer_design_system_component. - Quick fixes that replace raw values with your own tokens: exact matches, and "nearest" matches within the configured spacing, radius and CIEDE2000 tolerances. The component fix swaps the widget and adds the import.
- Configuration through a
design_token_lints:section inanalysis_options.yamlor a standalonedesign_token_lints.yaml, with workspace-root fallback. Token values are read from your existing token classes; no annotations, no code generation. - Automatic exemptions for design-system paths and packages, the token files themselves, and generated files.
design_token_lints coverage(console, JSON, Markdown,--fail-under) anddesign_token_lints check-config.- Works with
analysis_server_plugin0.3.15 to 0.3.26 (analyzer 13.0 to 14.7).
See the roadmap in the README for what comes next.