svrnty_design_system 0.1.0
svrnty_design_system: ^0.1.0 copied to clipboard
Server-driven design system for Flutter with dynamic style tokens. Supports Apple HIG and custom brand styles.
0.1.0 #
Initial Release #
Core System:
StyleModel- Server-driven design token containerStyleModelProvider- InheritedWidget for providing StyleModel to widget treeStyleModelLoader- Load StyleModel from server with caching supportStyleModelApiConfig- API configuration for server connection
Design Tokens:
- Colors with light/dark mode support (
getColor) - Typography scale (
getTextStyle) - Spacing system on 4pt grid (
getSpacing) - Border radius tokens (
getRadius,getBorderRadius) - Gradient support (
getGradient) - Animation curves and durations (
getAnimationCurve,getAnimationDuration)
Pre-built Token Sets:
AppleTokens- Apple Human Interface Guidelines styleSvrntyTokens- Svrnty brand style (dark theme)PlanBBrandTokens- Plan B logistics brand styleFallbackTokens- Default fallback tokens
Atomic Components:
SvButton- Button with filled, outlined, ghost, tinted variantsSvIconButton- Icon-only buttonSvToggleButton- Toggle state button
Molecular Components:
SvTextField- Text input with label, helper, error statesSvFormField- TextField with built-in validationSvSearchField- Search-optimized text fieldSvChip/SvChipGroup- Selection chips (filter, choice styles)SvCard/SvGlassCard/SvSegmentedCard- Card containersSvListTile/SvListSection- List items with iOS-style sectionsSvAvatar- User avatar with initials/image supportSvDropdown- Dropdown selection widget
Organism Components:
SvDialog/SvAlertDialog/SvConfirmationDialog- Modal dialogsSvBottomSheet- Bottom sheet containerSvEmptyState- Empty state placeholder with illustration
Templates:
SvScaffold- Base scaffold with StyleModel integrationSvAppLayout- Application layout structureSvDetailPageLayout- Detail page with navigation
Typography:
- Montserrat font integration for UI text
- IBM Plex Mono for data/code display
Design Philosophy: #
- Cupertino-first (iOS-style widgets only, no Material)
- Server-driven styling for runtime brand customization
- 4pt spacing grid system
- Automatic dark/light mode adaptation