Documentation Index
Fetch the complete documentation index at: https://synapsync.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This guide helps you migrate from other design systems to Nebux, and also covers migration between different versions of Nebux Design System.Migrating from Material Design
Nebux is built on top of Flutter’s Material Design but provides additional theming capabilities.Theme Setup
Accessing Theme Colors
Typography Mapping
| Material TextTheme | Nebux Typography | Notes |
|---|---|---|
headlineMedium | heading | Page titles, primary headers |
titleLarge | section | Section headers |
bodyLarge | content | Articles, descriptions |
bodyMedium | paragraph | Default body text |
bodySmall | caption | Captions, metadata |
labelLarge | label | Small labels, status |
labelLarge (bold) | primaryAction | Button text |
labelLarge (semibold) | secondaryAction | Secondary button text |
bodyMedium | formInput | Input text |
bodyMedium (italic) | placeholder | Placeholder text |
Migrating from Custom Themes
From Theme Classes
If you have custom theme classes:From JSON/YAML Configuration
Nebux supports JSON configuration out of the box. See the Advanced Usage Guide for TOML support.Version Migration
v0.3.1 → v1.0.0
Typography Changes: All typography roles now includeheight and letterSpacing values aligned with Material Design 3.
v0.2.0 → v0.3.0
Translation Loading (Country Picker): Translation loading is now async, but the public API is unchanged.CountryProvider→ UseCountryDecoderinsteadAlphaScrollerwidget → Removed (was unused)
v0.1.18 → v0.2.0
InputParameters Context Removal:v0.1.17 → v0.1.18
Validation API Changes:| Old API | New API | Notes |
|---|---|---|
showEyeIcon: true | suffixIconType: NbxSuffixIconType.eye | For password fields |
showCancelIcon: true | suffixIconType: NbxSuffixIconType.cancel | Clear button |
showSuffixIcon: true | suffixIconType: NbxSuffixIconType.eye or .cancel | Choose specific type |
forceShowSuffixIcon: true | N/A | Suffix icon now always visible when type is set |
v0.0.11 → v0.0.12
Button Component Refactoring:The legacy constructor
NbxButton.legacy() is available for backward compatibility but is deprecated.Breaking Changes Summary
v1.0.0
- Typography now includes
heightandletterSpacingby default - Typography role mappings corrected (
heading→headlineMedium, etc.)
v0.3.0
- Translation loading is now async (no consumer changes needed)
- Removed
CountryProvider(useCountryDecoder) - Removed
AlphaScrollerwidget
v0.2.0
NbxInputParametersno longer acceptscontextparameterNbxNetworkImagerestructured with config classescacheManagernow properly typed asBaseCacheManager?
v0.1.18
customValidator→validator+onValidationResult- Suffix icon boolean flags →
suffixIconTypeenum
v0.0.12
NbxButtonrefactored with config classes- Button variant naming:
primary→filled,secondary→text
Version History
Nebux Design System follows Semantic Versioning:- Patch (0.0.x): Bug fixes and documentation
- Minor (0.x.0): New features, deprecations (with 1+ minor version runway)
- Major (x.0.0): Breaking changes, removed deprecated APIs
1.0.2
Key milestones:
- 1.0.0 (Stable release): 81%+ test coverage, frozen public API
- 0.3.0: Async translation loading, component cleanup
- 0.2.0: API surface stabilization, config class architecture
- 0.1.18: Validation API improvements
- 0.0.12: Button component modernization
Migration Checklist
Review Breaking Changes
Check the breaking changes for versions between your current and target version
Run Tests
Ensure all tests pass. Use
NebuxTypography.custom('Roboto', null) in tests to avoid Google Fonts network callsNeed Help?
If you encounter issues during migration:- Check the CHANGELOG.md for detailed version notes
- Review the examples in the source repository
- Open an issue on GitHub
Related Pages
Customization Guide
Learn how to customize themes and components
Advanced Usage
JSON/TOML configuration and best practices
Quickstart
Get started with Nebux Design System