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

[Feature]: Add the option to init a barebone template #1468

Open
YanPes opened this issue Oct 12, 2024 · 5 comments
Open

[Feature]: Add the option to init a barebone template #1468

YanPes opened this issue Oct 12, 2024 · 5 comments

Comments

@YanPes
Copy link

YanPes commented Oct 12, 2024

What problem does this feature solve?

When setting up a new rspress page, there is a lot of predefined styling with high specificity. Although this can be good in some use cases, it is cumbersome if you want to fully customize the styling. This needs either overriding predefined styles or creating all elements with custom MDX components.

I would like to have the option to select if I want the default init or a barebone init which strips away all the branding.

What does the proposed API look like?

An additional step when starting the CLI wizard with npm create rspress@latest

Choose your template:

  • default (ready to go, including default look and feel)
  • custom (core functionality without branding and styling)
@Timeless0911
Copy link
Collaborator

Timeless0911 commented Oct 14, 2024

This is impossible due to the default theme, you can customize it by yourself.

We will consider more pluggable designs in future about theme designs.

@chenjiahan
Copy link
Member

@Timeless0911 I believe this is a reasonable proposal, currently create-rspress only provides one template, which is not enough. We can refactor create-rspress with https://github.com/rspack-contrib/create-rstack and provide more templates for different use cases.

@Timeless0911
Copy link
Collaborator

custom (core functionality without branding and styling)

What is without branding and styling mean? Do you want to not use any UI capabilities?

@YanPes
Copy link
Author

YanPes commented Oct 14, 2024

Thank you for your fast replies.

The idea of adding multiple theming options would already help a lot for different scenarios.

My initial idea was treating the theming of rspress a bit like chadcn-ui look and feel. Very minimalistic and basic, almost like a high fidelity wireframe mock.

In the end it is all about improving the DX for the consumers so I really resonate with the idea of adding create-rstack as step wizard.

@Timeless0911
Copy link
Collaborator

Thanks for your detailed explanation, we will enrich more templates for users in different scenarios in the future.

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

No branches or pull requests

3 participants