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

dynamic switching between light theme and dark theme #5791

Closed
1 task done
zhibuba opened this issue Jul 9, 2022 · 2 comments
Closed
1 task done

dynamic switching between light theme and dark theme #5791

zhibuba opened this issue Jul 9, 2022 · 2 comments

Comments

@zhibuba
Copy link

zhibuba commented Jul 9, 2022

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

The library provide multiple official theme css files, but no convinent way to switch between them during runtime. Switching between light and dark themes by user is a common need.

What does the proposed API look like?

const theme = useTheme()
theme.value = 'dark'

@github-actions
Copy link

github-actions bot commented Jul 9, 2022

Hello @zhibuba, we use GitHub issues to trace bugs or discuss plans of Ant Design Vue. So, please don't ask usage questions here. You can try to open a new discussion in antdv discussions, select Q&A to ask questions, also can ask questions on Stack Overflow or Segment Fault.

你好 @zhibuba,Ant Design Vue Issue 板块是用于 bug 反馈与需求讨论的地方。请勿询问如何使用的问题,你可以试着在 antdv discussions 新开一个 discussion,选择 Q&A 类别进行提问,也可以在 Stack Overflow 或者 Segment Fault 中提问。

@github-actions github-actions bot closed this as completed Jul 9, 2022
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants