duskmoon_theme library
DuskMoon Design System theme package.
Provides codegen-driven color schemes, text themes, and theme data factories for Material 3 applications.
Classes
- DmColorExtension
- A ThemeExtension carrying non-standard semantic color tokens.
- DmColors
- Typed color token bag — color scheme and extension tokens in one place.
- DmColorScheme
- Factory for building DuskMoon ColorScheme instances from generated tokens.
- DmPlatformOverride
- An InheritedWidget that overrides the platform style for its subtree.
- DmTextTheme
- Factory for building the DuskMoon TextTheme following the Material 3 type scale.
- DmTheme
- Platform-agnostic DuskMoon design-token container.
- DmThemeData
- Factory for building complete DuskMoon ThemeData instances.
- DmThemeEntry
- Bundles a named theme with its light and dark ThemeData variants.
- DuskmoonApp
- App-level platform-style provider for DuskMoon adaptive widgets.
- ForestTokens
- MoonlightTokens
- OceanTokens
- SunshineTokens
Enums
- DmPlatformStyle
- The three platform rendering styles supported by adaptive widgets.
Mixins
- AdaptiveWidget
- Mixin that gives a StatelessWidget platform-adaptive rendering.
Extensions
- ThemeModeExtension on ThemeMode
- Convenience helpers on ThemeMode for serialization and UI display.
Functions
-
resolvePlatformStyle(
BuildContext context, {DmPlatformStyle? widgetOverride}) → DmPlatformStyle - Resolves the DmPlatformStyle for the current context.