Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Documentation for TokenResolver feature #536

Open
5 tasks
tilucasoli opened this issue Nov 29, 2024 · 3 comments
Open
5 tasks

Create Documentation for TokenResolver feature #536

tilucasoli opened this issue Nov 29, 2024 · 3 comments

Comments

@tilucasoli
Copy link
Collaborator

tilucasoli commented Nov 29, 2024

Description:

Develop comprehensive documentation for TokenResolver feature. This documentation should explain the purpose and usage of these classes, providing clarity for developers on how they function and can be extended or utilized effectively.

User Story:

As a developer using the framework,
I want to understand the functionality and usage of TokenResolver classes,
so that I can confidently work use these classes in my projects.

Acceptance Criteria:

  • Identify and list all classes that implement WithTokenResolver.
  • Document the purpose of this feature and how it impacts the theme creation
  • Include inline comments in the codebase where necessary for developers.
  • Publish the documentation to the official developer documentation site or repository.

Related Work Items

@lvsecoto
Copy link

lvsecoto commented Dec 4, 2024

Yes! We also need to Resolve token as SVG-icon, string resource...

This is the greatest Style System . I have used it in my company new UI-Framework(Not a Material-like theme)!

@tilucasoli
Copy link
Collaborator Author

Yes! We also need to Resolve token as SVG-icon, string resource...

This is the greatest Style System . I have used it in my company new UI-Framework(Not a Material-like theme)!

Could you please create an issue with the example needed? We require a bit more detail to assist you.

@lvsecoto
Copy link

lvsecoto commented Dec 5, 2024

Yes! We also need to Resolve token as SVG-icon, string resource...
This is the greatest Style System . I have used it in my company new UI-Framework(Not a Material-like theme)!

Could you please create an issue with the example needed? We require a bit more detail to assist you.

Hi~

For now there fixed type of token can be passed to MixThemeData :

  const MixThemeData.raw({
    required this.textStyles,
    required this.colors,
    required this.breakpoints,
    required this.radii,
    required this.spaces,
    this.defaultOrderOfModifiers,
  });

But may be we need these type's examples like:

StyledTokens<MixToken<Svg>, Svg> svgs,
StyledTokens<MixToken<String>, String> stringResources,

I would like to design my own token type. Thank!

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

No branches or pull requests

2 participants