vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
13.31k stars 2.15k forks source link

I need help to customize vitepress #4102

Open jacktheartist14 opened 3 months ago

jacktheartist14 commented 3 months ago

Describe the bug

Hello! I've been using VitePress for a few months, and I need to customize some parts of the UI. For example, I want to make changes to the header, such as centering the nav (I attach an image). I've searched online for different ways to achieve this without success. I also tried to find information in the docs, but it’s not very clear for me. I also tried to achieve this using CSS but was unsuccessful. Currently, I’m using the default theme.

On the other hand, I needed to add a mini banner above the header and I was able to achieve this with js, inserting a div before the header and adding margins to the header and sidebar, but I would like to know if Vitepress has an easier way to do this.

I would really appreciate any help with this! Thanks!

image

Reproduction

-

Expected behavior

-

System Info

-

Additional context

No response

Validations