You can choose a theme by adding this to your config file.
theme = "theme_name"- Catppuccin
- Latte
- Frappe
- Macchiato
- Mocha
- Dracula
- Alucard
- Dracula
- gruvbox
Adding a theme for RustyPage is pretty simple; it just requires some basic knowledge about CSS and a tiny bit of Rust.
Note
If you want to just handle the css side, feel free to open an issue and ask for help. I don't mind doing the little bit of Rust there is for this.
- First create a file in src/themes/ with the name of your theme.
- Add your file to the theme mod file.
- Add a doc comment (
//!at the top) at the top of your file saying what your theme is. Make sure to give credit! - Create a const &str with the name of your theme or variation, if applicable.
(
pub(crate) const YOUR_THEME: &str = "";) - Add the required variables to
:root. - Add your theme to the match statement used for selecting the theme.
It is in the
impl Homepagenew function. - Test it out.
- Open a pull request!