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

Add useTheme composable function #16

Closed
innocenzi opened this issue Mar 15, 2020 · 1 comment
Closed

Add useTheme composable function #16

innocenzi opened this issue Mar 15, 2020 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@innocenzi
Copy link
Owner

innocenzi commented Mar 15, 2020

Add a useTheme composable function, usable with the Vue Composition API, that will allow to keep track of the currently used theme, set a theme, or manually get the current theme, for an element.

The theme.config.js would be given to the use function (or detected), or some options would be passable to it.

The current theme on an element would be detected according to the detected strategy, the default theme in the configuration, and the current prefers-color-scheme.

A theme would be changeable, the use function would detected the strategy and update it accordingly.

@innocenzi innocenzi added the enhancement New feature or request label Mar 15, 2020
@innocenzi innocenzi added this to the v3.0 milestone May 1, 2020
@innocenzi
Copy link
Owner Author

See #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant