flawless_theme 0.1.0-alpha.7 copy "flawless_theme: ^0.1.0-alpha.7" to clipboard
flawless_theme: ^0.1.0-alpha.7 copied to clipboard

Shared theming utilities and tokens for Flawless UI.

flawless_theme #

flawless_theme is the theme orchestration layer for Flawless.

It connects your app’s ThemeData with an active FlawlessDesignSystem and provides:

  • FlawlessThemeController for runtime theme-mode switching
  • FlawlessThemeControllerProvider for wiring controllers into the widget tree
  • FlawlessTheme (InheritedWidget) for subtree design-system overrides
  • FlawlessThemeExtension for storing the active design system in ThemeData.extensions

Usage #

Create a ThemeData from a concrete theme package (Material 3 or Glass), then read the design system anywhere.

final designSystem = FlawlessTheme.designSystemOf(context);

To override the design system for a subtree:

FlawlessTheme(
  designSystem: GlassDesignSystem(),
  child: const MyWidgetTree(),
)

Notes #

  • flawless_theme depends on flawless_core for contracts.
  • Concrete themes add a FlawlessThemeExtension via their create...Theme(...) helpers.
0
likes
160
points
27
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Shared theming utilities and tokens for Flawless UI.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#flutter #ui #theming #design-system #tokens

License

MIT (license)

Dependencies

flawless_core, flutter, provider, shared_preferences

More

Packages that depend on flawless_theme