CSS variables
π§ Still under development
Rspress exposes some commonly used CSS variables. Compared to overriding Rspress's built-in React components, overriding CSS variables for customization is simpler and more maintainable.
You can edit and preview in real-time on this page, and copy to theme/index.css to override styles. Here is a simple example of style overriding:
Below are some CSS variables provided by Rspress and their default values:
Brand colors
Codeblock - shiki theme
Codeblock - outer title and container
foo.ts