Flutter package that builds matched light and dark ThemeData from color schemes, surface blends, and component theme options. Includes a Themes Playground to copy configuration code.
Overview
FlexColorScheme is a Flutter package for creating and using color-scheme-based Material themes. It produces matched light and dark ThemeData with fuller ColorScheme wiring than Flutter's ThemeData.from or colorSchemeSeed factories, and targets current Flutter SDK UI packages material and cupertino.
You can start from built-in FlexScheme palettes or define custom colors. Optional surface alpha blends and seed-generated ColorSchemes support multiple seed colors, minimum chroma controls, and custom tone mapping beyond the built-in seed factory. Component themes expose flat properties for shared styling such as global border radius without verbose ShapeBorder boilerplate for common cases.
Material 3 is the default in recent major versions, with per-widget radii aligned to the Material 3 guide or overridable globally and per component. The Themes Playground web and desktop companion lets you configure themes visually and copy the resulting API setup. Example projects include a heavily commented counter demo and tutorial steps culminating in the playground example.
The package themes Flutter SDK UI components from your ColorScheme and custom colors in Material 2 or Material 3 mode. Desktop builds of the playground are offered for Windows, macOS, and Linux when a local tool is preferred over the web build.
Key features
- Light and dark ThemeData pairs
- Built-in FlexScheme palettes
- Seed-generated ColorSchemes
- Surface alpha blends
- Component theme flat properties
- Material 2 and Material 3 modes
- Themes Playground code generator
- Visual theme configuration workflow
Use cases
- Material apps needing custom color schemes
- Consistent light and dark Flutter themes
- Rapid theme prototyping in Flutter
- Material 3 component theming
- Teaching Flutter theme setup patterns