flutter-theme

A set of rules for managing visual design choices in a Flutter app, such as colors, spacing, fonts, text styles, themes, and light or dark mode.

In plain words
What is it for?
Use it when changing Flutter theme files, color or spacing tokens, typography, component styles, Google Fonts, ThemeData, or theme switching.
Why use it?
It keeps the interface consistent and makes theme changes easier without scattering one-off values throughout the code.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/yendangn/flutter-app-builder/flutter-theme
Any agent
npx skills add yendangn/flutter-app-builder --skill flutter-theme
Clone the repo
git clone --depth 1 https://github.com/yendangn/flutter-app-builder

Made for: Claude Code, Codex.

Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 498 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00076 $0.00498
Opus 5 $0.00038 $0.00249
Sonnet 5 $0.00015 $0.00100
Haiku 4.5 $0.00008 $0.00050

Measured 2d ago against content hash 7886535634be, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

flutter-theme scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/flutter-theme/SKILL.md · 39 lines

What it actually says

Flutter Theme

Full reference: template.md

Files

lib/src/app/theme/
  app_colors.dart       ← color tokens + ColorScheme builders
  app_spacing.dart      ← spacing scale + radii + icon sizes
  app_typography.dart   ← TextStyle getters via GoogleFonts.inter(...)
  app_theme.dart        ← builds light + dark ThemeData (only file that creates ThemeData)
lib/src/core/theme/
  theme_store.dart      ← domain interface (ThemeMode read/write)
  theme_cubit.dart      ← HydratedCubit<ThemeMode> implementing ThemeStore

Key rules

  • google_fonts: x.y.z (exact pin, no ^) in pubspec.yaml.
  • All AppTypography members are static TextStyle get getters — never static const TextStyle (Google Fonts returns non-const objects).
  • textTheme uses GoogleFonts.interTextTheme(const TextTheme(...)). Inner TextTheme args stay const.
  • app_theme.dart is the only file that builds ThemeData.
  • All non-textTheme styles in component themes use the file-level _t() helper — sets inherit: false, explicit color, textBaseline: TextBaseline.alphabetic.
  • Both light and dark must define the same set of component themes.
  • No hardcoded Color(0xFF...), magic-number padding, or inline TextStyle(fontSize: ...) anywhere outside app_theme.dart.
  • Widgets read colors via Theme.of(context).colorScheme or AppColors constants — never inline hex.
  • ThemeStore is the domain interface; ThemeCubit implements it. Data layer injects ThemeStore; presentation layer resolves ThemeCubit.

Co-load with

  • flutter-diThemeCubit/ThemeStore registration
  • flutter-localization — no hardcoded strings alongside theme
Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 39 lines · 76 tokens per session scan A 7886535634be

Subscribe to this mod's changes

flutter-theme is a skill published in the GitHub repository yendangn/flutter-app-builder (5 stars, last pushed 2mo ago), licensed MIT. It adds 76 tokens to every session and 498 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

wear-compose-m3

Expert guidance for working with Wear OS Compose Material3. Use this skill when creating, updating, or migrating Wear OS projects. This includes the androidx.wear.compose.material3, androidx.wear.compose.foundation, and androidx.wear.compose.navigation3 libraries. Also working with core components such as AppScaffold…

android/skills · 101 tokens

expo-design-system

Framework (OSS). Build and maintain a design system inside an Expo app - a reusable theme of design tokens (color, spacing, typography, radius, shadow, motion), reusable component structure with variant/size/state prop conventions, and rules for when to extract a repeated view into a shared component. Use when…

expo/skills · 181 tokens

mobile-principles

Mobile-specific UX principles - touch targets, hover-less doctrine, thumb zones, safe areas, gestures, mobile perf budgets. Cross-platform (web mobile, iOS, Android).

Jwuthri/Tracely-ai · 40 tokens

ios-hig-design

Design native iOS interfaces following Apple Human Interface Guidelines. Use when the user mentions "iPhone app", "iPad layout", "SwiftUI", "UIKit", "Dynamic Island", "safe areas", "HIG compliance", "SF Symbols", "haptic feedback", "iOS accessibility", "make my app feel native", or "follow Apple design guidelines".…

wondelai/skills · 145 tokens

add-component

Add a SwiftUI component from ShipSwift. Use when the user says "add component", "add a view", "add X view", "I need a chart", "add animation", or wants a specific UI element.

signerlabs/ShipSwift · 48 tokens

ui-prototyping

Explore multiple divergent UI directions for a screen as named Swift.

rshankras/claude-code-apple-skills · 21 tokens