antd_tokens 1.0.1
antd_tokens: ^1.0.1 copied to clipboard
Ant Design v6 Design Token system. Seed tokens, token generation algorithms, color token maps, and shadow tokens.
Changelog #
1.0.1 #
- Fix pub.dev static analysis results by aligning internal dependency constraints.
- Ship the package example and tighten pubspec metadata for better pub.dev scoring.
- Documentation and changelog polish.
1.0.0 #
- Added
AntSeedTokenwith antd-aligned defaults for seed colors, font family and size, line width and type, motion curve and duration, radius, size unit and step, control height, z-index, opacity, wireframe, and focus outline. - Added
AntSeedToken.dark()andcopyWith, enabling dark-neutral seeds and partial overrides without rebuilding every field. - Added
antGenFontSizes,antGetLineHeight, andantGenFontMapTokenfor the font-size ladder, component and heading sizes, line heights, and font heights. - Added
antGenRadiusfor theXS/SM/LG/Outerradius ladder, including antd's range-based derivation rules. - Added
antGenSizeMapTokenfor thesizeXXS-sizeXXLspacing ladder. - Added
antGenControlHeightforcontrolHeightSM,controlHeightXS, andcontrolHeightLG. - Added
antGenMotionDurationfor fast, mid, and slow durations, with a zeroed result when motion is disabled. - Added
AntColorTokenswith light and dark factories, around 100 parsed color aliases, andAntColorTokensCssfor the raw CSS strings behind each alias. - Added
AntShadowTokens.generatewith 13 elevation sets covering popups, cards, arrows, four drawer directions, and four tabs-overflow directions.