Search packages, repositories and app categories

moon_design cover
Package detailsv1.1.0

moon_design

Moon Design System for Flutter. A set of coherent, themable, and extensible widgets following the Moon Design System.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
1.5K
Likes
102
Pub points
140

Install package

flutter pub add moon_design

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Moon Design System for Flutter provides a cohesive collection of themable and extensible widgets aligned with the Moon Design System. Built for consistency across platforms, it enables developers to create visually unified applications on Android, iOS, Web, macOS, Windows, and Linux. The system supports custom theming and easy integration via a simple pub command. With well-documented components and a focus on accessibility and scalability, it streamlines UI development while maintaining design integrity.

Use cases

  • Building cross-platform apps with consistent UI
  • Implementing brand-aligned design systems
  • Rapid prototyping with pre-designed components
  • Creating accessible and responsive interfaces
  • Enabling team-wide design consistency

Key features

  • Theming support for dynamic color schemes
  • Extensible widget architecture
  • Cross-platform compatibility
  • Accessibility-focused components
  • Modular and reusable design elements

Suitable for

  • UI/UX designers collaborating with developers
  • Teams adopting a standardized design language
  • Projects requiring multi-platform deployment
  • Startups building scalable product interfaces
  • Developers seeking time-efficient UI solutions

Considerations

  • Requires understanding of Flutter's widget system
  • Customization may require deeper knowledge of themes
  • Limited to use cases aligned with Moon Design principles
  • May introduce overhead for very simple apps
  • Dependent on GitHub repository for updates and bug fixes

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Moon Design System

Version Build Conventional Commits

Moon Design System

Note: This project uses Release Please and Conventional Commits spec, please follow the conventions or consider using Commitizen to write commit messages.

Disclaimer

The current major release, v1.0.0, will be maintained as-is and will not receive further updates, except for patches. The v1 theming is based on the soon-to-be deprecated Moon Design Figma v1 and lacks flexibility. For greater control over theming with v1 of moon_flutter, it is recommended to create custom wrapper widgets around the moon_flutter widgets that align with your project's specific theming requirements.

There is ongoing background work for v2 which aims to be more modular, scalable and themable.

Resources

Applying theming and overrides

  • Declare tokens variable and optionally override values:
final lightTokens = MoonTokens.light.copyWith(
  colors: MoonColors.light.copyWith(
    piccolo: Colors.blue,
    textPrimary: Colors.amber,
  ),
  typography: MoonTypography.typography.copyWith(
    heading: MoonTypography.typography.heading.apply(
      // Using variable font and bumping down the font weight compared to the
      // baseline 600 for heading.
      fontFamily: "DMSans",
      fontWeightDelta: -1,
      fontVariations: [const FontVariation('wght', 500)],
    ),
  ),
);

final lightTheme = ThemeData.light().copyWith(
    extensions: <ThemeExtension<dynamic>>[MoonTheme(tokens: lightTokens)],
  );
  • Or if needed override widget theming:
final lightTheme = ThemeData.light().copyWith(
  extensions: <ThemeExtension<dynamic>>[
    MoonTheme(tokens: lightTokens).copyWith(
      accordionTheme: MoonAccordionTheme(tokens: lightTokens).copyWith(
        colors: MoonAccordionTheme(tokens: lightTokens).colors.copyWith(
              backgroundColor: Colors.green,
            ),
      ),
    ),
  ],
);
  • Apply the declared theme:
return MaterialApp(
      title: 'Moon Design System example',
      theme: lightTheme,
      home: const HomePage(),
 );

Categories

Dependencies

Dependency list 2 items

  • moon_icons^1.1.0
  • moon_tokens^0.0.6

Source repository

Projects using this package

No data available yet.