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

Can the default theme adopt vitepress? #147

Open
duxphp opened this issue Jul 5, 2023 · 1 comment
Open

Can the default theme adopt vitepress? #147

duxphp opened this issue Jul 5, 2023 · 1 comment

Comments

@duxphp
Copy link

duxphp commented Jul 5, 2023

vitepress nextjs are the same theme, support dark mode, want to customize the theme of vite-pages, but found that it is not as easy as the documentation says, too much logic associated with the request can use the theme by default

@csr632
Copy link
Member

csr632 commented Jul 6, 2023

too much logic associated with the request can use the theme by default

Do you mean some of the vite-pages feature can only used by the official theme? That is not true because vite-pages core doesn't provide any feature that is "official-theme-only". vite-plugin-react-pages doesn't know anything about vite-pages-theme-doc, it just provide some features and the official theme use them. You can checkout how the official theme render MDX and providing Demo and
TsInfo features:

. Other themes can do that too!

Nevertheless, I admit that it is difficult to build another complex theme like the default theme. Because it means building a fully extensible website framwork!

Currently I am focusing on making the official theme (and core use cases) better. Could you tell me what kind of feature do you want from vitepress? For example, dark mode? We can bring that to the official theme too :)

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

No branches or pull requests

2 participants