-
Notifications
You must be signed in to change notification settings - Fork 49
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
[Feature request] New Default Theme for VuePress 2 #121
Comments
the new theme should support https://theme-hope.vuejs.press/guide/layout/sidebar.html#generate-sidebar-from-file-structure |
Implemented in the new theme. |
Q1Why is some contents being removed in templateBuild, when darkmode is meant to be enabled, won't the screen flash? |
It does not flicker, when the for other values, it will be inserted differently: ;(() => {
const preference = localStorage.getItem('vuepress-color-scheme') || fallbackPreference
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches
if (!preference || preference === 'auto' ? prefersDark : preference === 'dark')
document.documentElement.classList.add('dark')
})() see |
If the default theme is based on CSS, then we can try if we can use lightning CSS. |
While I would like to use |
This issue is marked as |
Clear and concise description of the problem
We are in the process of creating a new default theme for the VuePress 2, which will replace the old default theme, with the old theme being renamed to
@vuepress/theme-legacy
.We will list the updated content in this issue, discussing the differences between old and new themes, compatibility solutions, and other updates related to vuepress upstream and downstream.
Features
The new theme will follow the same style as the default theme of VitePress.
Differences
Configuration
SiteTtitle and logo: delete
home / logo / logoDark / logoAlt
, usesiteTitle / logo / logoLink
instead.Nav:
NavItem[]
,children
was deprecated, useitems
insteadrepo
, usesocialLinks
insteadcolorMode / colorModeSwitch
, useappearance
insteadSidebar:
auto
tostructure
children
was deprecated, useitems
insteadDocFooter:
latestUpdated
support lastUpdatedFormatOptionsCode Block: Use
shiki
as the default highlighting. supportline highlighting
,colors diff
errors and warning
focus
containers: support
tip / info / warning / danger / important
, and github alerts.Frontmatter
layout
withpageLayout
in VitePress, aslayout
is already used for other purposes in VuePress.outline
to control the display levels of theTOC
within the page. etc.[2, 3]
Note
More content will continue to be added during the development period.
Suggested solution
Currently working on vuepress/ecosystem branch:theme-default .
Alternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: