Skip to content

Experiment: expanded theming API#937

Draft
Pante wants to merge 2 commits intomainfrom
experiment/expanded-themes
Draft

Experiment: expanded theming API#937
Pante wants to merge 2 commits intomainfrom
experiment/expanded-themes

Conversation

@Pante
Copy link
Copy Markdown
Member

@Pante Pante commented Mar 23, 2026

Describe the changes

  • Move predefined color schemes to static constants on FColors (e.g. FColors.zinc, FColors.neutral)
  • Add FColors.withPrimary and FPrimaryColors for accent color composition
  • Remove FThemes class in favor of direct FColors access
  • Add doc improvements with withPrimary examples

Looking for feedback on API design.

Checklist

  • I have read the CONTRIBUTING.md.
  • I have included the relevant unit/golden tests.
  • I have included the relevant samples.
  • I have updated the documentation accordingly.
  • I have added the required flutters_hook for widget controllers.
  • I have updated the CHANGELOG.md if necessary.

@auto-maid
Copy link
Copy Markdown
Contributor

auto-maid bot commented Mar 23, 2026

Documentation Preview

Latest Commit SHA 0798102
Preview URL https://03a94a80-forui-docs-dev.duobase.workers.dev/docs

You're seeing this because the docs/samples were updated.

- Move predefined color schemes to static constants on FColors (e.g. FColors.zinc, FColors.neutral)
- Add FColors.withPrimary and FPrimaryColors for accent color composition
- Remove FThemes class in favor of direct FColors access
- Add FColors doc improvements with withPrimary examples
- Update all consumers (tests, docs_snippets, demo, CLI tools)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Pante Pante force-pushed the experiment/expanded-themes branch from 1ddccc5 to 3550a7f Compare March 23, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant