The Coconut Design System is a reusable UI component library for Flutter, developed by Nonce Lab. It provides consistent, customizable, and theme-aware components for building mobile applications.
- Reusable UI Components – Buttons, inputs, overlays, indicators, and more.
- Theme-Aware – Supports light and dark modes.
- Customizable – Configure colors, typography, sizing, and component behavior.
- Animations – Includes reusable entrance, exit, shake, slide, typewriter, and zoom animations.
- MIT Licensed – Open source under the MIT License.
To use Coconut Design System in your Flutter project, add it as a dependency:
flutter pub add coconut_design_systemOr manually add it in your pubspec.yaml:
dependencies:
coconut_design_system: latest_versionimport 'package:coconut_design_system/coconut_design_system.dart';CoconutButton(
text: 'Click Me',
onPressed: () {
print('Button Clicked!');
},
);CoconutToast.showToast(
context: context,
text: 'This is a toast message!',
);showModalBottomSheet(
context: context,
isScrollControlled: true,
builder: (context) => CoconutBottomSheet(
appBar: AppBar(title: const Text('Title')),
body: const Text('This is a bottom sheet.'),
),
);The Coconut Design System supports light and dark mode, and allows you to customize:
- Colors
- Typography
- Shapes and borders
- Icons and sizes
Example:
CoconutButton(
text: 'Custom Button',
onPressed: () {},
backgroundColor: Colors.purple,
foregroundColor: Colors.white,
);| Category | Components |
|---|---|
| Buttons & controls | Button, Underlined Button, Segmented Control |
| Inputs | Checkbox, Chip, Date Picker, Option Picker, Pulldown, Stepper, Switch, Tag Chip, Text Field |
| Overlays | Bottom Sheet, Popup, Pulldown Menu, Toast, Tooltip |
| Indicators | Circular Indicator, Progress Indicator |
| Navigation | App Bar, Frosted App Bar, App Bar Button |
| Icons | Custom icon component |
| Animations | Bounce, Character Fade, Fade, Scale, Shake, Slide, Typewriter, Zoom |
| Theme & styling | Colors, layout, sizes, styles, theme, typography |
We welcome contributions! If you’d like to improve the Coconut Design System, follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b new-feature) - Commit your changes (
git commit -m "Add new feature") - Push to the branch (
git push origin new-feature) - Submit a Pull Request! 🚀
For issues, feature requests, or feedback, feel free to:
- Open an issue on GitHub
- Contact us at hello@noncelab.com
If you like this project, please star the repo and follow us for updates! 🚀✨
Reference LICENSE