dievas 1.0.0
dievas: ^1.0.0 copied to clipboard
Dievas design system. A Flutter theme and component layer for building branded, token-driven interfaces.
Change Log #
1.0.0 #
The naming unification release. Every size axis token, enum value, and theme value field now follows one law - <base><UPPERCASE SIZE> - brand expression is driven by a single selectable palette, and component elevation now paints the Dievas token shadow stacks directly.
Breaking component elevation fields are now shadow stacks #
Every component that painted elevation through Flutter's Material / Drawer / showModalBottomSheet numeric elevation now paints the Dievas token shadow list directly, so overlays read as the same soft halo as the rest of the system and no longer pick up the M3 surfaceTintColor wash. - Renamed and retyped double elevation → List<BoxShadow> shadow on DievasModalThemeData, DievasDrawerThemeData, DievasBottomSheetThemeData, and DievasPopoverThemeData. - Renamed DievasDropdownThemeData.overlayElevation → shadow. - Removed the shadow from the accordion entirely - DievasAccordionThemeData no longer exposes a shadow field and the panel paints no elevation. - Added DievasSearchThemeData.shadow; the search field's coloured focus glow is now the standard token shadow. - DievasPopoverThemeData.elevation was previously ignored by the widget; the popover now reads shadow from its theme data. - DievasDrawerThemeData.borderRadius is now applied to the drawer's shape (it was previously unused).
Breaking size token naming #
All size axis identifiers were renamed to <base><SIZE> (lowercase base, UPPERCASE size suffix, multiplier trailing): - Suffixes: XS, SM, MD, LG, XL, XL2…XL8; half steps SMPlus, MDPlus, LGPlus, XLPlus. - Examples: spacingMD, radiusLG, fontSizeXL, sizeXL2, breakpointSM. - Enum values follow the same law (DievasButtonSize.MD, DievasGridBreakpoint.XL). - Component theme value record fields follow the same law (heightLG, paddingMD). - Not renamed (not size axes): opacity roles, z index, easing, animation intents, touchMin.
Breaking removed duplicate easing - DievasAnimationThemeData.easingEmphasize was an exact duplicate of easingStandard and has been removed. #
Breaking shadow opacities moved to the elevation domain #
The six shadow opacity aliases leaked into the opacity API. They are removed from DievasOpacityThemeData: - Removed: shadow1, shadow1Light, shadow2, shadow2Upper, shadow2Lower, shadow2Heavy. - The shadow tints now live inside the elevation layer records (see dievas_tokens), so no SHADOW_TINT_* constants are exposed.