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

feat: Expose token generating function #29849

Open
3 tasks done
tanishqmanuja opened this issue Sep 9, 2024 · 0 comments
Open
3 tasks done

feat: Expose token generating function #29849

tanishqmanuja opened this issue Sep 9, 2024 · 0 comments
Labels

Comments

@tanishqmanuja
Copy link

tanishqmanuja commented Sep 9, 2024

Prerequisites

Describe the Feature Request

Currently it is very tedious to theme ionic dynamically at runtime using for example a seed color. The functions required to do so are already there and used in the docs.

Describe the Use Case

This is very common use-case as material design 3 (material you) has taken over android design system. Still ionic lacks behind for many years now, #24282 was opened almost 3 years ago.

Describe Preferred Solution

No response

Describe Alternatives

For a while a have been using a hacky custom made lib - https://github.com/tanishqmanuja/ionic-color-injector. But an official alternative would allow for wider use cases.

Also then bridging the remaining gap using https://www.npmjs.com/package/@material/material-color-utilities would be awesome for users.

Related Code

No response

Additional Information

3 Categories of color token in ionic:

Source: https://github.com/ionic-team/ionic-docs/tree/main/src/components/page/theming
Core Functionality: https://github.com/ionic-team/ionic-docs/tree/main/src/components/page/theming/_utils

@ionitron-bot ionitron-bot bot added the triage label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant