hsds_mobile 0.3.1
hsds_mobile: ^0.3.1 copied to clipboard
HeadSpace Design System — mobile component library (Flutter / Dart)
0.3.0 - 2026-04-21 #
Added #
HsdsTextField— single-line text field with animated floating label, helper text, error state, read-only mode, and password toggle (eye icon). RequiresHsdsThemeProvider.HsdsTextArea— multi-line text area with animated floating label, character count display (enforced), helper text, and error state. Auto-expands vertically with content.HsdsTextStyles.mobileBodyM— 16px Regular typography token used by text input components.HsdsTextStyles.mobileEyebrow— 11px SemiBold typography token for section labels.
0.2.0 - 2026-04-02 #
Added #
HsdsButton— Flutter button widget with 11 variants (primary,secondary,tertiary,ghost,staticBlack,staticWhite,critical,success,warning,textPrimary,textSecondary), 5 sizes (large,mediumLarge,medium,small,xSmall), and full state support (enabled, pressed, disabled, loading).HsdsButtonVariantandHsdsButtonSizeenums.HsdsColorScheme— semantic color data class withlight()anddark()factories.HsdsTheme—ThemeExtension<HsdsTheme>carrying the activeHsdsColorScheme. Access viaHsdsTheme.of(context).HsdsThemeProvider— widget that injectsHsdsThemeinto the tree, auto-switching light/dark based on system brightness.HsdsColorPrimitives— raw hexColorconstants (replacesHsdsColors).
Changed #
HsdsColorsrenamed toHsdsColorPrimitives. Update imports:import 'package:hsds_mobile/hsds_mobile.dart'— no token values changed.
0.1.0 #
Added #
HsdsBottomNav— persistent tab bar supporting 3–5 items with active/inactive states, tablet breakpoint (120dp inset), and iOS home indicator.HsdsBottomNavItem— data class for tab label and icon pair.HsdsBottomNavIcons— bundled SVG icon sets for Today, Explore, Profile, Care, and Ebb tabs.- Design tokens:
HsdsColors,HsdsSpacing,HsdsTextStyles. - Headspace Apercu font bundled (all weights).