theme library
Theme tokens, typography, shadows, breakpoints, and palette presets.
import 'package:vvk_ui_kit/theme.dart';
MaterialApp(
theme: UIAppTheme.light,
darkTheme: UIAppTheme.dark,
);
Classes
- UIAlertTheme
- Inline alert styling tokens.
- UIAppTheme
- Ready-to-use light and dark themes for host applications.
- UIBadgeTheme
- Badge styling tokens.
- UIBreakpoints
- Responsive width breakpoints used by kit layout helpers.
- UIButtonTheme
- Button sizing tokens for kit buttons.
- UICardTheme
- Card surface tokens.
- UIGlassMetrics
- Frosted-glass design tokens shared by all glass widgets.
- UIInputTheme
- Input decoration tokens for kit form fields.
- UIMetrics
- Layout metrics attached to the theme.
- Navigation component tokens (breadcrumbs, menus).
- UIShadows
- Box-shadow presets inspired by shadcn/ui elevation tokens.
- UIThemeColors
- Semantic color tokens used to build a UIAppTheme.
- UIThemeExtension
- Kit-specific layout and surface tokens attached to ThemeData.
- UIThemePalette
- Default light/dark palettes for UIAppTheme.
- UIThemePalettes
- Named color presets beyond the default teal palette.
- UITypography
- Semantic typography scale for kit widgets.
Enums
- UIGlassPerformanceMode
- Performance strategy for frosted-glass widgets.
Extensions
Functions
-
buildUIKitTheme(
{required Brightness brightness, required UIThemeColors colors, UIThemeExtension extension = UIThemeExtension.light, String? fontFamily, UIMetrics metrics = const UIMetrics(sectionHPad: 20)}) → ThemeData - Builds a Material 3 theme from semantic color tokens.
Typedefs
- UIButtonMetrics = UIButtonTheme
- Alias for UIButtonTheme; the design-token name used across the kit.
- UIInputMetrics = UIInputTheme
- Alias for UIInputTheme; the design-token name used across the kit.