ColorScheme
A set of 40+ colors based on the Material Design spec that can be used to configure the color properties of most components.Primary Colors
- primary: The color displayed most frequently across your app’s screens and components
- on_primary: A color that’s clearly legible when drawn on
primary - primary_container: A color used for elements needing less emphasis than
primary - on_primary_container: A color that’s clearly legible when drawn on
primary_container - primary_fixed: A substitute for
primary_containerthat’s the same color for dark and light themes - primary_fixed_dim: A color used for elements needing more emphasis than
primary_fixed - on_primary_fixed: Text/icons on top of
primary_fixedcolor - on_primary_fixed_variant: Lower-emphasis option for text/icons than
on_primary_fixed
Secondary Colors
- secondary: An accent color for less prominent components
- on_secondary: Legible color on
secondary - secondary_container: Less emphasis than
secondary - on_secondary_container: Legible on
secondary_container - secondary_fixed: Same for dark/light themes
- secondary_fixed_dim: More emphasis than
secondary_fixed - on_secondary_fixed: Text/icons on
secondary_fixed - on_secondary_fixed_variant: Lower emphasis option
Tertiary Colors
- tertiary: Contrasting accent to balance primary and secondary
- on_tertiary: Legible on
tertiary - tertiary_container: Less emphasis than
tertiary - on_tertiary_container: Legible on
tertiary_container - tertiary_fixed: Same for dark/light themes
- tertiary_fixed_dim: More emphasis than
tertiary_fixed - on_tertiary_fixed: Text/icons on
tertiary_fixed - on_tertiary_fixed_variant: Lower emphasis option
Error Colors
- error: Color for input validation errors
- on_error: Legible on
error - error_container: Error elements with less emphasis
- on_error_container: Legible on
error_container
Surface Colors
- surface: Background color for widgets like Card
- on_surface: Legible on
surface - on_surface_variant: Legible on
surface_container_highest - surface_tint: Overlay to indicate elevation
- surface_dim: Always darkest in dark or light theme
- surface_bright: Always lightest in dark or light theme
- surface_container: Distinct area within surface
- surface_container_low: Lighter tone than
surface_container - surface_container_lowest: Lightest tone, least emphasis
- surface_container_high: Darker tone
- surface_container_highest: Darkest tone, most emphasis
Utility Colors
- outline: Creates boundaries and emphasis to improve usability
- outline_variant: For decorative elements (dividers)
- shadow: Color for drop shadows
- scrim: Color for modal component backgrounds
Inverse Colors
- inverse_surface: Reverse UI (e.g., in SnackBar)
- on_inverse_surface: Legible on
inverse_surface - inverse_primary: Highlight on
inverse_surfacebackgrounds
TextTheme
Customizes Text styles following Material 3 design system.- Display: Hero text, large numbers, short impactful statements
- Headline: Section headers, dialog titles
- Title: List item titles, card headers, smaller headings
- Body: Paragraphs, descriptions, general content
- Label: Button text, chips, small supporting text
PageTransitionTheme
Controls how pages transition during navigation.PageTransitionsTheme
Per-platform mapping of route transition presets.Component-Specific Themes
Flet provides theme classes for customizing specific components:- ScrollbarTheme: Customize scrollbar appearance
- TabBarTheme: Customize TabBar controls
- DialogTheme: Customize AlertDialog appearance
- ButtonTheme: Customize Button controls
- OutlinedButtonTheme: Customize OutlinedButton
- TextButtonTheme: Customize TextButton
- FilledButtonTheme: Customize FilledButton
- IconButtonTheme: Customize IconButton
- BottomSheetTheme: Customize BottomSheet
- CardTheme: Customize Card appearance
- ChipTheme: Customize Chip controls
- FloatingActionButtonTheme: Customize FAB
- NavigationRailTheme: Customize NavigationRail
- AppBarTheme: Customize AppBar
- BottomAppBarTheme: Customize BottomAppBar
- RadioTheme: Customize Radio buttons
- CheckboxTheme: Customize Checkbox controls
- BadgeTheme: Customize Badge appearance
- SwitchTheme: Customize Switch controls
- DividerTheme: Customize Divider appearance
- SnackBarTheme: Customize SnackBar