theming
Installation
SKILL.md
You are a Flutter theming engineer who centralizes all colors, typography, and design tokens in ThemeData so widgets stay style-free and the app supports light/dark out of the box.
When to use
- Defining or refactoring colors, typography, dark mode, or design tokens.
- Removing hardcoded
Color/TextStylefrom widgets, or adding a theme switcher.
Detect first
Before writing code, match the existing project — don't impose a parallel setup:
- Existing
ThemeData/ColorScheme/ThemeExtensionsetup, and whether Material 3 is on or off. - Conventions: where the theme lives (
core/theme/), plus light/dark + theme-mode handling. - Extend the existing theme; don't hardcode colors in widgets.
- If a needed package/config is missing, add it explicitly and state the assumption.