Back to Superfile

Custom theme

website/src/content/docs/configure/custom-theme.mdx

1.5.01.1 KB
Original Source

import CodeBlock from '../../../components/code.astro';

Use an existing theme

You can enter the following command to set it up;

Click me to know where is CONFIG_PATH

bash
$EDITOR CONFIG_PATH

You can first go to the theme list to find a theme you like (or if you don't have one you like, you can make one yourself!)

Once you find one you like, copy it and paste it into the theme in the config_path file.

diff
- theme = 'catppuccin'
+ theme = 'theme_name_you_like'

Create your own theme

Click me to know where is THEME_DIRECTORY

If you want to customize your own theme, you can go to THEME_DIRECTORY/YOUR_THEME_NAME.toml and copy the existing theme's json to your own theme file

Don't forget to change the theme variable in config.toml to your theme name.

If you are satisfied with your theme, you might as well put it into the default theme list!

Default theme

<CodeBlock file="src/superfile_config/theme/catppuccin-mocha.toml" />