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

Extending/Mimicing default components in custom theme #912

Closed
4 tasks done
EtzBetz opened this issue Jul 3, 2022 · 2 comments
Closed
4 tasks done

Extending/Mimicing default components in custom theme #912

EtzBetz opened this issue Jul 3, 2022 · 2 comments
Labels
enhancement New feature or request theme Related to the theme

Comments

@EtzBetz
Copy link

EtzBetz commented Jul 3, 2022

Is your feature request related to a problem? Please describe.

I want to use the existing structure of VitePress, with kind of the same Layout, but different styling. I was thinking I would just build a custom theme, but it seems like I cannot access e.g. the navbar configs. Or at least I wouldnt know how?

Describe the solution you'd like

I would like to know how I can build my own custom theme, using all the default data that i would provide otherwise using the default theme.

Describe alternatives you've considered

Using the default theme but changing it up, but I doubt that it's flexible enough. another thing would be to just for vitepress and implementing my own default theme, but I doubt that it's thought to be done like that.

Additional context

No response

Validations

@brc-dd brc-dd added enhancement New feature or request theme Related to the theme labels Jul 8, 2022
@brc-dd
Copy link
Member

brc-dd commented Jul 8, 2022

Yeah we probably should allow this.

Regarding custom theme, you can get the data you need using useData.

If it is just the styles, you can easily override them I suppose.

@brc-dd
Copy link
Member

brc-dd commented Jul 8, 2022

Duplicate of #235

@brc-dd brc-dd marked this as a duplicate of #235 Jul 8, 2022
@brc-dd brc-dd closed this as not planned Won't fix, can't repro, duplicate, stale Jul 8, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request theme Related to the theme
Projects
None yet
Development

No branches or pull requests

2 participants