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(theme): add utility functions #20535

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

johnleider
Copy link
Member

@johnleider johnleider commented Sep 29, 2024

Description:

This pull request introduces new methods to theme.ts for enhanced theme management and updates theme.md to document these changes. The added methods will allow developers to better manage and switch themes at runtime.

Changes Made:

theme.ts:

  • get: Retrieve the current or a specified theme by name.
  • update: Update the current color within a theme or a specified theme by name.
  • register: Register a new theme with custom properties.
  • set: Change the global theme.

@johnleider johnleider added T: feature A new feature E: theme Theme composable labels Sep 29, 2024
@johnleider johnleider self-assigned this Sep 29, 2024
@johnleider johnleider added this to the v3.8.0 (Andromeda) milestone Sep 30, 2024
@johnleider johnleider changed the base branch from master to dev September 30, 2024 00:53
@johnleider johnleider marked this pull request as ready for review September 30, 2024 00:54
@KaelWD
Copy link
Member

KaelWD commented Sep 30, 2024

I feel like this doesn't really add anything more useful than just making useTheme return a reactive(theme) instead would.

@johnleider
Copy link
Member Author

I feel like this doesn't really add anything more useful than just making useTheme return a reactive(theme) instead would.

Open to suggestions. The current process for working with themes directly is quite cumbersome; some form of update is necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E: theme Theme composable T: feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants