tofu_expressive 0.0.1 copy "tofu_expressive: ^0.0.1" to clipboard
tofu_expressive: ^0.0.1 copied to clipboard

Material 3 expressive theme with dynamic color, dark/light mode, and platform support.

๐Ÿงˆ Tofu Expressive #

Tofu Expressive is a Flutter theme package built with Material 3 expressive design principles. It includes dynamic color support, dark/light mode switching (system and manual), and works across mobile and desktop platforms.

โœจ Features #

  • Material 3 expressive design
  • Dynamic color support (Material You on Android 12+)
  • Manual and system-based theme switching
  • Works on Android, iOS, Web, macOS, Windows, and Linux
  • Built using flex_color_scheme

๐Ÿ“ฆ Installation #

Add this to your pubspec.yaml:

dependencies:
  tofu_expressive: ^0.1.0

Then run:

flutter pub get

๐Ÿš€ Getting Started #

Wrap your app with a ChangeNotifierProvider and use the theme controller:

final themeController = ThemeController();

MaterialApp(
  theme: TofuTheme.light(),
  darkTheme: TofuTheme.dark(),
  themeMode: themeController.themeMode,
);

To toggle the theme manually:

themeController.toggleTheme(isDarkMode);

Or to follow the system setting:

themeController.setThemeMode(ThemeMode.system);

๐Ÿงช Example #

See the example/ folder for a full sample Flutter app using Tofu Expressive.

๐Ÿ–ผ๏ธ Screenshots #

Light Mode Dark Mode
[light] [dark]

โš™๏ธ Custom Seed Colors #

Want to apply your own seed color?

TofuTheme.light(Colors.teal);
TofuTheme.dark(Colors.teal);

๐Ÿ“š API Reference #

  • TofuTheme.light([Color? seedColor])
  • TofuTheme.dark([Color? seedColor])
  • ThemeController.toggleTheme(bool isDarkMode)
  • ThemeController.setThemeMode(ThemeMode)

pub package

๐Ÿ’ก Inspiration #

Based on Material 3 keynote color schemes and Google's expressive UI principles.

๐Ÿ› ๏ธ Built With #

  • Flutter
  • flex_color_scheme
  • dynamic_color
  • provider

๐Ÿ“„ License #

MIT License ยฉ 2025 Peter Kure


Made with ๐Ÿ’› for Flutter developers.

3
likes
0
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

Material 3 expressive theme with dynamic color, dark/light mode, and platform support.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dynamic_color, flex_color_scheme, flutter, provider

More

Packages that depend on tofu_expressive