2026-01-28 13:58:35 -05:00
|
|
|
# Themes Example
|
|
|
|
|
|
|
|
|
|
This is an example of a Gemini CLI extension that adds a custom theme.
|
|
|
|
|
|
|
|
|
|
## How to use
|
|
|
|
|
|
|
|
|
|
1. Link this extension:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
gemini extensions link packages/cli/src/commands/extensions/examples/themes-example
|
|
|
|
|
```
|
|
|
|
|
|
2026-02-16 14:58:48 -05:00
|
|
|
2. Set the theme in your settings file (`~/.gemini/settings.json`):
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"ui": {
|
|
|
|
|
"theme": "shades-of-green (themes-example)"
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-01-28 13:58:35 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Alternatively, you can set it through the UI by running `gemini` and then
|
|
|
|
|
typing `/theme` and pressing Enter.
|
|
|
|
|
|
|
|
|
|
3. **Observe the Changes:**
|
|
|
|
|
|
|
|
|
|
After setting the theme, you should see the changes reflected in the Gemini
|
|
|
|
|
CLI's UI. The background will be a dark green, the primary text a lighter
|
|
|
|
|
green, and various other UI elements will display different shades of green,
|
|
|
|
|
as defined in this extension's `gemini-extension.json` file.
|