We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
冒昧的问一下, 我个人不是很会前端
如何自定义元素的背景颜色, 以致于可适配不同主题的切换
background-color: var(--bgColor-default, var(--color-canvas-default));
修改--bgColor-default, 或者是--color-canvas-default的值切换主题都会出现问题, 我太菜了
--bgColor-default
--color-canvas-default
The text was updated successfully, but these errors were encountered:
你可以使用 @media (prefers-color-scheme: light)的方式来定义颜色变量 ,或者可以直接使用primer.css里面的不同主题对应的颜色变量也行
@media (prefers-color-scheme: light)
Sorry, something went wrong.
我是直接修改primer.css
增加了@media响应dark模式
@media
实际换到dark主题还是未生效
No branches or pull requests
冒昧的问一下, 我个人不是很会前端
如何自定义元素的背景颜色, 以致于可适配不同主题的切换
background-color: var(--bgColor-default, var(--color-canvas-default));
修改
--bgColor-default
, 或者是--color-canvas-default
的值切换主题都会出现问题,我太菜了The text was updated successfully, but these errors were encountered: